Esempio n. 1
0
        protected override IAsyncResult OnBeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state)
        {
            if (this.replyChannel.IsValueCreated)
            {
                Thread.Sleep(-1);
            }

            return(CompletedAsyncResult.Create(callback, state));
        }
 protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) => CompletedAsyncResult.Create(callback, state);