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); } }
public StreamedFramingRequest(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel) { this.channel = channel; this.connectionPoolHelper = new Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.StreamedConnectionPoolHelper(channel); }
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); }
public StreamedConnectionPoolHelper(Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel channel) : base(channel.connectionPool, channel.connectionInitiator, channel.Via) { this.channel = channel; }