Beispiel #1
0
 public CreateActivityContextArguments(
     IMediatorService medaitorService,
     MediatorScopeService mediatorScopeService,
     ActivityId activityId
     )
 {
     this.MedaitorService      = medaitorService;
     this.MediatorScopeService = mediatorScopeService;
     this.ActivityId           = activityId;
 }
Beispiel #2
0
 public MediatorContext(CreateActivityContextArguments arguments, TRequest request)
 {
     this._ActivityCompletion = new ActivityCompletion <IActivityResponse>();
     this._ActivityEvents     = new AtomicReference <ImList <IActivityEvent> >(ImList <IActivityEvent> .Empty);
     this._Request            = request;
     this._LocalDisposables   = LocalDisposables.Create(this);
     //
     this.ActivityId            = arguments.ActivityId;
     this._MedaitorService      = arguments.MedaitorService;
     this._MediatorScopeService = arguments.MediatorScopeService;
     this.Status = ActivityStatus.Unknown;
 }