Exemplo n.º 1
0
            public ProducingConsumer(TaskCompletionSource <ProducingConsumer> consumerCreated, MyId myId)
            {
                MyId = myId;

                _received = TaskUtil.GetTask <ConsumeContext <SimpleMessageInterface> >();

                consumerCreated.TrySetResult(this);
            }
Exemplo n.º 2
0
 public ScopedFilter(TaskCompletionSource <MyId> taskCompletionSource, MyId myId)
 {
     _taskCompletionSource = taskCompletionSource;
     _myId = myId;
 }