979. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:42 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.

979.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM\trunk\Workflows WorkFlowActivityBase.cs Tue Dec 20 19:50:59 2016 UTC
2 Wed Feb 1 19:57:42 2017 UTC

979.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 321

979.3 Comparison options

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

979.4 Active regular expressions

No regular expressions were active.

979.5 Comparison detail

1   // <copyri ght file=" WorkFlowAc tivityBase .cs" compa ny="Micros oft Servic es UK">        
2   // Copyrig ht (c) 201 6 All Righ ts Reserve d        
3   // </copyr ight>        
4   // <author >Microsoft  Services  UK</author >        
5   // <date>1 1/28/2016  6:45:32 PM </date>        
6   // <summar y>Implemen ts the Wor kFlowActiv ityBase Wo rkflow Act ivity.</su mmary>        
7   // <auto-g enerated>        
8   //     Thi s code was  generated  by a tool .        
9   //     Run time Versi on:4.0.303 19.1        
10   // </auto- generated>        
11          
12   using Syst em;        
13   using Syst em.Collect ions.Gener ic;        
14   using Syst em.Collect ions.Objec tModel;        
15   using Syst em.Globali zation;        
16   using Syst em.Linq;        
17   using Syst em.Text;        
18   using Syst em.Service Model;        
19   using Syst em.Threadi ng.Tasks;        
20   using Syst em.Activit ies;        
21   using Micr osoft.Xrm. Sdk;        
22   using Micr osoft.Xrm. Sdk.Workfl ow;        
23   using Syst em.Runtime .Serializa tion;        
24          
25   namespace  BTSSS.Crm. Contact.Wo rkflows        
26   {        
27       public  abstract  class Work FlowActivi tyBase : C odeActivit y        
28       {        
29          
30           pu blic seale d class Lo calWorkflo wContext        
31           {        
32                internal  IServiceP rovider Se rviceProvi der        
33                {        
34                    get;        
35          
36                    priv ate set;        
37                }        
38          
39                internal  IOrganiza tionServic e Organiza tionServic e        
40                {        
41                    get;        
42          
43                    priv ate set;        
44                }        
45          
46                internal  IWorkflow Context Wo rkflowExec utionConte xt        
47                {        
48                    get;        
49          
50                    priv ate set;        
51                }        
52          
53                internal  ITracingS ervice Tra cingServic e        
54                {        
55                    get;        
56          
57                    priv ate set;        
58                }        
59          
60                private  LocalWorkf lowContext ()        
61                {        
62                }        
63          
64                internal  LocalWork flowContex t(CodeActi vityContex t executio nContext)        
65                {        
66                    if ( executionC ontext ==  null)        
67                    {        
68                         throw new  ArgumentNu llExceptio n("service Provider") ;        
69                    }        
70          
71                    // O btain the  execution  context se rvice from  the servi ce provide r.        
72                    this .WorkflowE xecutionCo ntext = (I WorkflowCo ntext)exec utionConte xt.GetExte nsion<IWor kflowConte xt>();        
73          
74                    // O btain the  tracing se rvice from  the servi ce provide r.        
75                    this .TracingSe rvice = (I TracingSer vice)execu tionContex t.GetExten sion<ITrac ingService >();        
76          
77                    // O btain the  Organizati on Service  factory s ervice fro m the serv ice provid er        
78                    IOrg anizationS erviceFact ory factor y = (IOrga nizationSe rviceFacto ry)executi onContext. GetExtensi on<IOrgani zationServ iceFactory >();        
79          
80                    // U se the fac tory to ge nerate the  Organizat ion Servic e.        
81                    this .Organizat ionService  = factory .CreateOrg anizationS ervice(thi s.Workflow ExecutionC ontext.Use rId);        
82                }        
83          
84                internal  void Trac e(string m essage)        
85                {        
86                    if ( string.IsN ullOrWhite Space(mess age) || th is.Tracing Service ==  null)        
87                    {        
88                         return;        
89                    }        
90          
91                    if ( this.Workf lowExecuti onContext  == null)        
92                    {        
93                         this.Traci ngService. Trace(mess age);        
94                    }        
95                    else        
96                    {        
97                         this.Traci ngService. Trace(        
98                             "{0},  Correlatio n Id: {1},  Initiatin g User: {2 }",        
99                             messag e,        
100                             this.W orkflowExe cutionCont ext.Correl ationId,        
101                             this.W orkflowExe cutionCont ext.Initia tingUserId );        
102                    }        
103                }        
104           }        
105          
106           pr otected ov erride voi d Execute( CodeActivi tyContext  context)        
107           {        
108                if (cont ext == nul l)        
109                {        
110                    thro w new Argu mentNullEx ception("s erviceProv ider");        
111                }        
112          
113                // Const ruct the L ocal plug- in context .        
114                LocalWor kflowConte xt localco ntext = ne w LocalWor kflowConte xt(context );        
115          
116                //localc ontext.Tra ce(string. Format(Cul tureInfo.I nvariantCu lture, "En tered {0}. Execute()" , this.Chi ldClassNam e));        
117          
118                try        
119                {        
120                    ////  Iterate o ver all of  the expec ted regist ered event s to ensur e that the  plugin        
121                    ////  has been  invoked by  an expect ed event        
122                    ////  For any g iven plug- in event a t an insta nce in tim e, we woul d expect a t most 1 r esult to m atch.        
123                    //Ac tion<Local WorkflowCo ntext> ent ityAction  =        
124                    //     (from a  in this.Re gisteredEv ents        
125                    //      where (        
126                    //      a.Item1  == localc ontext.Plu ginExecuti onContext. Stage &&        
127                    //      a.Item2  == localc ontext.Plu ginExecuti onContext. MessageNam e &&        
128                    //      (string .IsNullOrW hiteSpace( a.Item3) ?  true : a. Item3 == l ocalcontex t.PluginEx ecutionCon text.Prima ryEntityNa me)        
129                    //      )        
130                    //      select  a.Item4).F irstOrDefa ult();        
131          
132                    //if  (entityAc tion != nu ll)        
133                    //{        
134                    //     localcon text.Trace (string.Fo rmat(        
135                    //         Cult ureInfo.In variantCul ture,        
136                    //         "{0}  is firing  for Entit y: {1}, Me ssage: {2} ",        
137                    //         this .ChildClas sName,        
138                    //         loca lcontext.P luginExecu tionContex t.PrimaryE ntityName,        
139                    //         loca lcontext.P luginExecu tionContex t.MessageN ame));        
140          
141                    //     entityAc tion.Invok e(localcon text);        
142          
143                    //     // now e xit - if t he derived  plug-in h as incorre ctly regis tered over lapping ev ent regist rations,        
144                    //     // guard  against m ultiple ex ecutions.        
145                    //     return;        
146                    //}        
147                    Exec uteCRMWork FlowActivi ty(context , localcon text);        
148          
149                }        
150                catch (F aultExcept ion<Organi zationServ iceFault>  e)        
151                {        
152                    loca lcontext.T race(strin g.Format(C ultureInfo .Invariant Culture, " Exception:  {0}", e.T oString()) );        
153          
154                    // H andle the  exception.        
155                    thro w;        
156                }        
157                finally        
158                {        
159                    //lo calcontext .Trace(str ing.Format (CultureIn fo.Invaria ntCulture,  "Exiting  {0}.Execut e()", this .ChildClas sName));        
160                }        
161           }        
162          
163           pu blic virtu al void Ex ecuteCRMWo rkFlowActi vity(CodeA ctivityCon text conte xt, LocalW orkflowCon text crmWo rkflowCont ext)        
164           {        
165                // Do no thing.         
166           }        
167          
168          
169          
170          
171          
172           // public IWo rkflowCont ext Parent Context        
173           // {        
174           //   get { th row new No tImplement edExceptio n(); }        
175           // }        
176          
177           // public str ing StageN ame        
178           // {        
179           //       get  { throw ne w NotImple mentedExce ption(); }        
180           //  }        
181          
182           // public int  WorkflowC ategory        
183           // {        
184           //      get {  throw new  NotImplem entedExcep tion(); }        
185           //  }        
186          
187           // public int  WorkflowM ode        
188           // {        
189           //      get {  throw new  NotImplem entedExcep tion(); }        
190           // }        
191          
192           // public Gui d Business UnitId        
193           // {        
194           //     get {  throw new  NotImpleme ntedExcept ion(); }        
195           // }        
196          
197           // public Gui d Correlat ionId        
198           // {        
199           //     get {  throw new  NotImpleme ntedExcept ion(); }        
200           // }        
201          
202           // public int  Depth        
203           // {        
204           //     get {  throw new  NotImpleme ntedExcept ion(); }        
205           // }        
206          
207           // public Gui d Initiati ngUserId        
208           // {        
209           //     get {  throw new  NotImpleme ntedExcept ion(); }        
210           // }        
211          
212           // public Par ameterColl ection Inp utParamete rs        
213           // {        
214           //     get {  throw new  NotImpleme ntedExcept ion(); }        
215           // }        
216          
217           // public boo l IsExecut ingOffline        
218           // {        
219           //    get { t hrow new N otImplemen tedExcepti on(); }        
220           // }        
221          
222           // public boo l IsInTran saction        
223           // {        
224           //     get {  throw new  NotImpleme ntedExcept ion(); }        
225           // }        
226          
227           // public boo l IsOfflin ePlayback        
228           // {        
229           //     get {  throw new  NotImpleme ntedExcept ion(); }        
230           // }        
231          
232           // public int  Isolation Mode        
233           // {        
234           //     get {  throw new  NotImpleme ntedExcept ion(); }        
235           // }        
236          
237           // public str ing Messag eName        
238           // {        
239           //     get {  throw new  NotImpleme ntedExcept ion(); }        
240           // }        
241          
242           // public int  Mode        
243           // {        
244           //     get {  throw new  NotImpleme ntedExcept ion(); }        
245           // }        
246          
247           // public Dat eTime Oper ationCreat edOn        
248           // {        
249           //     get {  throw new  NotImpleme ntedExcept ion(); }        
250           // }        
251          
252           // public Gui d Operatio nId        
253           // {        
254           //     get {  throw new  NotImpleme ntedExcept ion(); }        
255           // }        
256          
257           // public Gui d Organiza tionId        
258           // {        
259           //     get {  throw new  NotImpleme ntedExcept ion(); }        
260           // }        
261          
262           // public str ing Organi zationName        
263           // {        
264           //     get {  throw new  NotImpleme ntedExcept ion(); }        
265           // }        
266          
267           // public Par ameterColl ection Out putParamet ers        
268           // {        
269           //     get {  throw new  NotImpleme ntedExcept ion(); }        
270           // }        
271          
272           // public Ent ityReferen ce OwningE xtension        
273           // {        
274           //     get {  throw new  NotImpleme ntedExcept ion(); }        
275           // }        
276          
277           // public Ent ityImageCo llection P ostEntityI mages        
278           // {        
279           //     get {  throw new  NotImpleme ntedExcept ion(); }        
280           // }        
281          
282           // public Ent ityImageCo llection P reEntityIm ages        
283           // {        
284           //     get {  throw new  NotImpleme ntedExcept ion(); }        
285           // }        
286          
287           // public Gui d PrimaryE ntityId        
288           // {        
289           //     get {  throw new  NotImpleme ntedExcept ion(); }        
290           // }        
291          
292           // public str ing Primar yEntityNam e        
293           // {        
294           //     get {  throw new  NotImpleme ntedExcept ion(); }        
295           // }        
296          
297           // public Gui d? Request Id        
298           // {        
299           //     get {  throw new  NotImpleme ntedExcept ion(); }        
300           // }        
301          
302           // public str ing Second aryEntityN ame        
303           // {        
304           //     get {  throw new  NotImpleme ntedExcept ion(); }        
305           // }        
306          
307           // public Par ameterColl ection Sha redVariabl es        
308           // {        
309           //     get {  throw new  NotImpleme ntedExcept ion(); }        
310           // }        
311          
312           // public Gui d UserId        
313           // {        
314           //     get {  throw new  NotImpleme ntedExcept ion(); }        
315           // }        
316           // protected  override v oid Execut e(CodeActi vityContex t context)        
317           // {        
318           //     throw  new NotImp lementedEx ception();        
319           // }        
320       }        
321   }