Produced by Araxis Merge on 2/1/2017 2:56:51 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\SDK\SampleCode\CS\Process\CustomWorkflowActivities\AddActivity | AddActivity.cs | Tue Dec 20 19:51:45 2016 UTC |
| 2 | Wed Feb 1 19:56:51 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 67 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 2 | // This f ile is par t of the M icrosoft D ynamics CR M SDK code samples. | |||||
| 3 | // | |||||
| 4 | // Copyri ght (C) Mi crosoft Co rporation. All righ ts reserve d. | |||||
| 5 | // | |||||
| 6 | // This s ource code is intend ed only as a supplem ent to Mic rosoft | |||||
| 7 | // Develo pment Tool s and/or o n-line doc umentation . See the se other | |||||
| 8 | // materi als for de tailed inf ormation r egarding M icrosoft c ode sample s. | |||||
| 9 | // | |||||
| 10 | // THIS C ODE AND IN FORMATION ARE PROVID ED "AS IS" WITHOUT W ARRANTY OF ANY | |||||
| 11 | // KIND, EITHER EXP RESSED OR IMPLIED, I NCLUDING B UT NOT LIM ITED TO TH E | |||||
| 12 | // IMPLIE D WARRANTI ES OF MERC HANTABILIT Y AND/OR F ITNESS FOR A | |||||
| 13 | // PARTIC ULAR PURPO SE. | |||||
| 14 | // ======= ========== ========== ========== ========== ========== ========== == | |||||
| 15 | ||||||
| 16 | //<snippet AddActivit y> | |||||
| 17 | using Syst em.Activit ies; | |||||
| 18 | ||||||
| 19 | // These n amespaces are found in the Mic rosoft.Xrm .Sdk.dll a ssembly | |||||
| 20 | // located in the SD K\bin fold er of the SDK downlo ad. | |||||
| 21 | using Micr osoft.Xrm. Sdk; | |||||
| 22 | ||||||
| 23 | // These n amespaces are found in the Mic rosoft.Xrm .Sdk.Workf low.dll as sembly | |||||
| 24 | // located in the SD K\bin fold er of the SDK downlo ad. | |||||
| 25 | using Micr osoft.Xrm. Sdk.Workfl ow; | |||||
| 26 | ||||||
| 27 | namespace Microsoft. Crm.Sdk.Sa mples | |||||
| 28 | { | |||||
| 29 | /// <s ummary> | |||||
| 30 | /// Pe rforms the addition of two sum mands and returns th e result. | |||||
| 31 | /// In put argume nts: | |||||
| 32 | /// "First sum mand". Typ e: Int. Is the first summand o f the addi tion. | |||||
| 33 | /// "Second su mmand". Ty pe: Int. I s the seco nd summand of the ad dition. | |||||
| 34 | /// Ou tput argum ent: | |||||
| 35 | /// "Result". Type: Int. Is the re sult of th e addition . | |||||
| 36 | /// </ summary> | |||||
| 37 | public sealed pa rtial clas s AddActiv ity : Code Activity | |||||
| 38 | { | |||||
| 39 | // / <summary > | |||||
| 40 | // / Performs the addit ion of two summands | |||||
| 41 | // / </summar y> | |||||
| 42 | pr otected ov erride voi d Execute( CodeActivi tyContext executionC ontext) | |||||
| 43 | { | |||||
| 44 | IWorkflo wContext c ontext = e xecutionCo ntext.GetE xtension<I WorkflowCo ntext>(); | |||||
| 45 | IOrganiz ationServi ceFactory serviceFac tory = | |||||
| 46 | exec utionConte xt.GetExte nsion<IOrg anizationS erviceFact ory>(); | |||||
| 47 | IOrganiz ationServi ce service = | |||||
| 48 | serv iceFactory .CreateOrg anizationS ervice(con text.UserI d); | |||||
| 49 | ||||||
| 50 | // Retri eve the su mmands and perform a ddition | |||||
| 51 | this.res ult.Set(ex ecutionCon text, | |||||
| 52 | this .firstSumm and.Get(ex ecutionCon text) + | |||||
| 53 | this .secondSum mand.Get(e xecutionCo ntext)); | |||||
| 54 | } | |||||
| 55 | ||||||
| 56 | // Define In put/Output Arguments | |||||
| 57 | [I nput("Firs t summand" )] | |||||
| 58 | pu blic InArg ument<int> firstSumm and { get; set; } | |||||
| 59 | ||||||
| 60 | [I nput("Seco nd summand ")] | |||||
| 61 | pu blic InArg ument<int> secondSum mand { get ; set; } | |||||
| 62 | ||||||
| 63 | [O utput("Res ult")] | |||||
| 64 | pu blic OutAr gument<int > result { get; set; } | |||||
| 65 | } | |||||
| 66 | } | |||||
| 67 | //</snippe tAddActivi ty> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.