Exemplo n.º 1
0
 /// <summary>
 /// Creates a new Context Container.
 /// </summary>
 /// <param name="inheritedContext">An optional <see cref="ContextContainer"/> which allows its contained context to be accessed via this container</param>
 public ContextContainer(ContextContainer inheritedContext = null)
 {
     _inheritedContext = inheritedContext;
 }
Exemplo n.º 2
0
 public MessageHandlerContext(CancellationToken cancellationToken)
 {
     Container         = new ContextContainer();
     CancellationToken = cancellationToken;
 }