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