コード例 #1
0
                public SendPreambleAsyncResult(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel, Microsoft.ServiceBus.Channels.IConnection connection, ref Microsoft.ServiceBus.Common.TimeoutHelper timeoutHelper, Microsoft.ServiceBus.Channels.ClientFramingDecoder decoder, AsyncCallback callback, object state) : base(callback, state)
                {
                    this.channel       = channel;
                    this.connection    = connection;
                    this.timeoutHelper = timeoutHelper;
                    this.decoder       = decoder;
                    IAsyncResult asyncResult = connection.BeginWrite(channel.Preamble, 0, (int)channel.Preamble.Length, true, timeoutHelper.RemainingTime(), Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.StreamedConnectionPoolHelper.SendPreambleAsyncResult.onWritePreamble, this);

                    if (!asyncResult.CompletedSynchronously)
                    {
                        return;
                    }
                    if (this.HandleWritePreamble(asyncResult))
                    {
                        base.Complete(true);
                    }
                }
コード例 #2
0
 public StreamedFramingRequest(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel)
 {
     this.channel = channel;
     this.connectionPoolHelper = new Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.StreamedConnectionPoolHelper(channel);
 }
コード例 #3
0
 public StreamedFramingAsyncRequest(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel, AsyncCallback callback, object state) : base(callback, state)
 {
     this.channel = channel;
     this.connectionPoolHelper = new Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.StreamedConnectionPoolHelper(channel);
 }
コード例 #4
0
 public StreamedConnectionPoolHelper(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel) : base(channel.connectionPool, channel.connectionInitiator, channel.Via)
 {
     this.channel = channel;
 }