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();
            }
Example #3
0
            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();
            }
Example #4
0
 public void OnNext(IClosedContext context)
 {
 }
Example #5
0
 public void OnNext(IClosedContext context)
 {
     CheckMsgOrder(context);
     // noop
 }
Example #6
0
 public async Task DispatchClosedContextEvent(IClosedContext closedContextEvent)
 {
     await DispatchAsync(_closedContextDispatcher, closedContextEvent);
 }
Example #7
0
 public void OnNext(IClosedContext value)
 {
     throw new Exception(UnexpectedClosedContext);
 }