Exemple #1
0
 /// <summary>
 /// Initialize default work
 /// </summary>
 internal DefaultWork()
 {
     WorkId             = Guid.NewGuid().ToString();
     DomainEventManager = new DomainEventManager();
     WorkManager.TriggerCreateWorkEvent(this);
     WorkManager.Current = this;
 }
Exemple #2
0
 /// <summary>
 /// Initialize default work
 /// </summary>
 internal DefaultWork()
 {
     WorkId        = Guid.NewGuid().ToString();
     allowTraceLog = SwitchManager.ShouldTraceFramework(sw =>
     {
         allowTraceLog = SwitchManager.ShouldTraceFramework();
     });
     DomainEventManager = new DomainEventManager();
     WorkManager.TriggerCreateWorkEvent(this);
     WorkManager.Current = this;
 }