Exemplo n.º 1
0
 /// <summary>
 /// Конструтор класса.
 /// </summary>
 /// <param name="activityContext">Контекст выполнения действия процесса.</param>
 public Context(CodeActivityContext activityContext)
 {
     SourceActivityContext = activityContext;
     _context        = new Lazy <IWorkflowContext>(() => SourceActivityContext.GetContext());
     _service        = new Lazy <IOrganizationService>(() => SourceActivityContext.GetService());
     _systemService  = new Lazy <IOrganizationService>(() => SourceActivityContext.GetService(null));
     _tracingService = new Lazy <ITracingService>(() => SourceActivityContext.GetTracingService());
 }