Esempio n. 1
0
        //private Guid _OperationId;
        //private Guid _ExecutionId;
#if false
        public MediatorContext()
        {
            this._ActivityCompletion = new ActivityCompletion <IActivityResponse>();
            this._ActivityEvents     = new AtomicReference <ImmutableList <IActivityEvent> >(
                ImmutableList <IActivityEvent> .Empty
                );
        }
Esempio n. 2
0
 protected override void UpdateActivity(GameTime gameTime)
 {
     try
     {
         base.UpdateActivity(gameTime);
     }
     catch (Exception ex)
     {
         ActivityCompletion.TrySetException(ex);
     }
 }
Esempio n. 3
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;
 }
Esempio n. 4
0
 protected override void DrawActivity(GameTime gameTime)
 {
     try
     {
         base.DrawActivity(gameTime);
         if (FadeColor != Color.Transparent)
         {
             SpriteBatch.Begin();
             SpriteBatch.Draw(_fadeTexture, new Rectangle(0, 0, Viewport.Width, Viewport.Height), FadeColor.Value);
             SpriteBatch.End();
         }
     }
     catch (Exception ex)
     {
         ActivityCompletion.TrySetException(ex);
     }
 }