public void OnNext(IClosedContext value) { Logger.Log(Level.Info, "Second context is closed: " + value.Id); Assert.Equal(value.Id, ContextId2); Assert.Equal(value.ParentContext.Id, ContextId1); value.ParentContext.Dispose(); }
public void OnNext(IClosedContext value) { Logger.Log(Level.Info, ClosedContextValidationMessage); Assert.Equal(value.Id, ContextTwoId); Assert.True(value.ParentId.IsPresent()); Assert.Equal(value.ParentId.Value, ContextOneId); Assert.Equal(value.ParentContext.Id, ContextOneId); value.ParentContext.Dispose(); }
public void OnNext(IClosedContext value) { Logger.Log(Level.Info, ClosedContextValidationMessage); if (_contextTwoClosed == false) { Assert.Equal(value.Id, ContextTwoId); Assert.True(value.ParentId.IsPresent()); Assert.Equal(value.ParentId.Value, ContextOneId); Assert.Equal(value.ParentContext.Id, ContextOneId); _contextTwoClosed = true; } else { Assert.Equal(value.Id, ContextOneId); Assert.False(value.ParentId.IsPresent()); Assert.Equal(value.ParentContext, null); } value.ParentContext.Dispose(); }
public void OnNext(IClosedContext context) { }
public void OnNext(IClosedContext context) { CheckMsgOrder(context); // noop }
public async Task DispatchClosedContextEvent(IClosedContext closedContextEvent) { await DispatchAsync(_closedContextDispatcher, closedContextEvent); }
public void OnNext(IClosedContext value) { throw new Exception(UnexpectedClosedContext); }