Produced by Araxis Merge on 2/1/2017 2:56:18 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\Azure\AzureAwareWorkflowActivity | Activity.cs | Tue Dec 20 19:51:42 2016 UTC |
| 2 | Wed Feb 1 19:56:18 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 0 | 0 |
| Removed | 1 | 60 |
| 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 AzureAware WorkflowAc tivity> | |||||
| 17 | // This na mespace is found in the System .Activitie s.dll asse mbly. | |||||
| 18 | using Syst em.Activit ies; | |||||
| 19 | ||||||
| 20 | // This na mespace is found in the Micros oft.Xrm.Sd k.dll asse mbly | |||||
| 21 | // located in the SD K\bin fold er of the SDK downlo ad. | |||||
| 22 | using Micr osoft.Xrm. Sdk; | |||||
| 23 | ||||||
| 24 | // This na mespace is found in the Micros oft.Xrm.Sd k.Workflow .dll assem bly | |||||
| 25 | // located in the SD K\bin fold er of the SDK downlo ad. | |||||
| 26 | using Micr osoft.Xrm. Sdk.Workfl ow; | |||||
| 27 | ||||||
| 28 | namespace Microsoft. Crm.Sdk.Sa mples | |||||
| 29 | { | |||||
| 30 | /// <s ummary> | |||||
| 31 | /// Th is class i s able to post the e xecution c ontext to the Window s Azure | |||||
| 32 | /// Se rvice Bus. | |||||
| 33 | /// </ summary> | |||||
| 34 | public class Azu reAwareWor kflowActiv ity : Code Activity | |||||
| 35 | { | |||||
| 36 | // / <summary > | |||||
| 37 | // / This met hod is cal led when t he workflo w executes . | |||||
| 38 | // / </summar y> | |||||
| 39 | // / <param n ame="execu tionContex t">The dat a for the event trig gering | |||||
| 40 | // / the work flow.</par am> | |||||
| 41 | pr otected ov erride voi d Execute( CodeActivi tyContext executionC ontext) | |||||
| 42 | { | |||||
| 43 | IWorkflo wContext c ontext = e xecutionCo ntext.GetE xtension<I WorkflowCo ntext>(); | |||||
| 44 | ||||||
| 45 | IService EndpointNo tification Service en dpointServ ice = | |||||
| 46 | execution Context.Ge tExtension <IServiceE ndpointNot ificationS ervice>(); | |||||
| 47 | endpoint Service.Ex ecute(Serv iceEndpoin t.Get(exec utionConte xt), conte xt); | |||||
| 48 | } | |||||
| 49 | ||||||
| 50 | // / <summary > | |||||
| 51 | // / Enables the servic e endpoint to be pro vided when this acti vity is ad ded as a | |||||
| 52 | // / step in a workflow . | |||||
| 53 | // / </summar y> | |||||
| 54 | [R equiredArg ument] | |||||
| 55 | [R eferenceTa rget("serv iceendpoin t")] | |||||
| 56 | [I nput("Inpu t id")] | |||||
| 57 | pu blic InArg ument<Enti tyReferenc e> Service Endpoint { get; set; } | |||||
| 58 | } | |||||
| 59 | } | |||||
| 60 | //</snippe tAzureAwar eWorkflowA ctivity> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.