//private Guid _OperationId; //private Guid _ExecutionId; #if false public MediatorContext() { this._ActivityCompletion = new ActivityCompletion <IActivityResponse>(); this._ActivityEvents = new AtomicReference <ImmutableList <IActivityEvent> >( ImmutableList <IActivityEvent> .Empty ); }
protected override void UpdateActivity(GameTime gameTime) { try { base.UpdateActivity(gameTime); } catch (Exception ex) { ActivityCompletion.TrySetException(ex); } }
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; }
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); } }