4 implementations of IConnection
System.ServiceModel (4)
System\ServiceModel\Channels\Connection.cs (2)
60abstract class DelegatingConnection : IConnection 547class StreamConnection : IConnection
System\ServiceModel\Channels\PipeConnection.cs (1)
32sealed class PipeConnection : IConnection
System\ServiceModel\Channels\SocketConnection.cs (1)
22class SocketConnection : IConnection
177 references to IConnection
System.ServiceModel (177)
System\ServiceModel\Channels\BufferedConnection.cs (5)
21public BufferedConnection(IConnection connection, TimeSpan flushTimeout, int writeBufferSize) 316public IConnection Connect(Uri uri, TimeSpan timeout) 326public IConnection EndConnect(IAsyncResult result) 361public IConnection EndAccept(IAsyncResult result) 363IConnection connection = connectionListener.EndAccept(result);
System\ServiceModel\Channels\Connection.cs (22)
47IConnection Connect(Uri uri, TimeSpan timeout); 49IConnection EndConnect(IAsyncResult result); 57IConnection EndAccept(IAsyncResult result); 62IConnection connection; 64protected DelegatingConnection(IConnection connection) 85protected IConnection Connection 175public PreReadConnection(IConnection innerConnection, byte[] initialData) 180public PreReadConnection(IConnection innerConnection, byte[] initialData, int initialOffset, int initialSize) 258IConnection connection; 261public ConnectionStream(IConnection connection, IDefaultCommunicationTimeouts defaultTimeouts) 270public IConnection Connection 444IConnection connection; 446protected IOAsyncResult(IConnection connection, AsyncCallback callback, object state) 462protected abstract void HandleIO(IConnection connection); 493public ReadAsyncResult(IConnection connection, byte[] buffer, int offset, int count, TimeSpan timeout, 509protected override void HandleIO(IConnection connection) 524public WriteAsyncResult(IConnection connection, byte[] buffer, int offset, int count, bool immediate, TimeSpan timeout, AsyncCallback callback, object state) 535protected override void HandleIO(IConnection connection) 882IConnection connection; 884public ConnectionMessageProperty(IConnection connection) 894public IConnection Connection 902internal static void CloseNoThrow(IConnection connection, TimeSpan timeout)
System\ServiceModel\Channels\ConnectionAcceptor.cs (2)
16delegate void ConnectionAvailableCallback(IConnection connection, Action connectionDequeuedCallback); 161IConnection connection = null;
System\ServiceModel\Channels\ConnectionDemuxer.cs (6)
87ConnectionModeReader SetupModeReader(IConnection connection, bool isCached) 122public void ReuseConnection(IConnection connection, TimeSpan closeTimeout) 191void OnConnectionAvailable(IConnection connection, Action connectionDequeuedCallback) 320void OnSingletonConnection(IConnection connection, Action connectionDequeuedCallback, 438void OnDuplexConnection(IConnection connection, Action connectionDequeuedCallback, 554IConnection upgradedConnection = this.serverSingletonPreambleReader.EndCompletePreamble(result);
System\ServiceModel\Channels\ConnectionModeReader.cs (1)
24public ConnectionModeReader(IConnection connection, ConnectionModeCallback callback, ConnectionClosedCallback closedCallback)
System\ServiceModel\Channels\ConnectionPool.cs (25)
621abstract class ConnectionPool : IdlingCommunicationPool<string, IConnection> 640protected override void AbortItem(IConnection item) 645protected override void CloseItem(IConnection item, TimeSpan timeout) 650protected override void CloseItemAsync(IConnection item, TimeSpan timeout) 682IConnection rawConnection; 685IConnection upgradedConnection; 713protected abstract IConnection AcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper); 714protected abstract IAsyncResult BeginAcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper, 716protected abstract IConnection EndAcceptPooledConnection(IAsyncResult result); 725public IConnection EndEstablishConnection(IAsyncResult result) 730IConnection TakeConnection(TimeSpan timeout) 735public IConnection EstablishConnection(TimeSpan timeout) 738IConnection localRawConnection = null; 739IConnection localUpgradedConnection = null; 850void SnapshotConnection(IConnection upgradedConnection, IConnection rawConnection, bool isConnectionFromPool) 890IConnection localUpgradedConnection; 891IConnection localRawConnection; 938IConnection currentConnection; 939IConnection rawConnection; 988public static IConnection End(IAsyncResult result) 1007IConnection connection = parent.TakeConnection(timeoutHelper.RemainingTime()); 1071IConnection connection = parent.TakeConnection(timeoutHelper.RemainingTime()); 1159void TrackConnection(IConnection connection)
System\ServiceModel\Channels\FramingChannels.cs (26)
22IConnection connection; 48protected IConnection Connection 249IConnection SendPreamble(IConnection connection, ArraySegment<byte> preamble, ref TimeoutHelper timeoutHelper) 300IAsyncResult BeginSendPreamble(IConnection connection, ArraySegment<byte> preamble, ref TimeoutHelper timeoutHelper, 306IConnection EndSendPreamble(IAsyncResult result) 313IConnection connection; 354void AcceptConnection(IConnection connection) 404protected override IAsyncResult BeginAcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper, AsyncCallback callback, object state) 409protected override IConnection EndAcceptPooledConnection(IAsyncResult result) 414protected override IConnection AcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper) 423IConnection connection; 437IConnection connection, ArraySegment<byte> preamble, bool flowIdentity, 484public static IConnection End(IAsyncResult result) 886IConnection connection; 939public static IAsyncResult BeginDecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, 951public static void DecodeFramingFault(ClientFramingDecoder decoder, IConnection connection, 990IConnection connection, ClientFramingDecoder decoder, 998public static IConnection EndInitiateUpgrade(IAsyncResult result) 1003public static bool InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, ref IConnection connection, 1092IConnection connection; 1098public DecodeFailedUpgradeAsyncResult(ClientFramingDecoder decoder, IConnection connection, 1195IConnection connection; 1209IConnection connection, 1319public static IConnection End(IAsyncResult result)
System\ServiceModel\Channels\InitialServerConnectionReader.cs (13)
26IConnection connection; 31protected InitialServerConnectionReader(IConnection connection, ConnectionClosedCallback closedCallback) 37protected InitialServerConnectionReader(IConnection connection, ConnectionClosedCallback closedCallback, int maxViaSize, int maxContentTypeSize) 55public IConnection Connection 146IConnection connection = this.connection; 235internal static void SendFault(IConnection connection, string faultString, byte[] drainBuffer, TimeSpan sendTimeout, int maxRead) 307public static IAsyncResult BeginUpgradeConnection(IConnection connection, StreamUpgradeAcceptor upgradeAcceptor, 313public static IConnection EndUpgradeConnection(IAsyncResult result) 319public static IConnection UpgradeConnection(IConnection connection, StreamUpgradeAcceptor upgradeAcceptor, IDefaultCommunicationTimeouts defaultTimeouts) 340IConnection connection; 343public UpgradeConnectionAsyncResult(IConnection connection, 366public static IConnection End(IAsyncResult result)
System\ServiceModel\Channels\PipeConnection.cs (7)
1650public IConnection Connect(Uri remoteUri, TimeSpan timeout) 1657IConnection connection = null; 1769public IConnection EndConnect(IAsyncResult result) 1799IConnection TryConnect(Uri remoteUri, string resolvedAddress, BackoffTimeoutHelper backoffHelper) 1890IConnection connection; 1923public static IConnection End(IAsyncResult result) 2025public IConnection EndAccept(IAsyncResult result)
System\ServiceModel\Channels\SessionConnectionReader.cs (16)
44IConnection rawConnection; 47public ServerSessionPreambleConnectionReader(IConnection connection, Action connectionDequeuedCallback, 76public IConnection RawConnection 344IConnection rawConnection; 373IConnection localConnection = null; 447IConnection connectionToUpgrade = this.Connection; 501void AcceptUpgradedConnection(IConnection upgradedConnection) 801IConnection connectionToUpgrade = channel.Connection; 988IConnection rawConnection; 1105IConnection connection; 1121IConnection rawConnection; 1123protected SessionConnectionReader(IConnection connection, IConnection rawConnection, 1178public IConnection GetRawConnection() 1180IConnection result = null; 1512public ClientDuplexConnectionReader(ClientFramingDuplexSessionChannel channel, IConnection connection, ClientDuplexDecoder decoder,
System\ServiceModel\Channels\SharedConnectionListener.cs (11)
192IConnection IConnectionListener.EndAccept(IAsyncResult result) 704IConnection BuildDuplicatedNamedPipeConnection(NamedPipeDuplicateContext duplicateContext, int connectionBufferSize) 747IConnection BuildDuplicatedTcpConnection(TcpDuplicateContext duplicateContext, int connectionBufferSize, bool alreadyHoldingLock) 1014public NamedPipeValidatingConnection(IConnection connection, SharedListenerProxy listenerProxy) 1050public TcpValidatingConnection(IConnection connection, SharedListenerProxy listenerProxy) 1271void SendFault(IConnection connection, string faultCode) 1336IConnection connection = BuildConnectionFromData(duplicateContext, ConnectionOrientedTransportDefaults.ConnectionBufferSize, true); 1359IConnection BuildConnectionFromData(DuplicateContext duplicateContext, int connectionBufferSize, bool alreadyHoldingLock) 1459IConnection connection; 1460public DuplicateConnectionAsyncResult(IConnection connection, AsyncCallback callback, object state) 1472public IConnection Connection
System\ServiceModel\Channels\SingletonConnectionReader.cs (20)
41IConnection rawConnection; 51public ServerSingletonPreambleConnectionReader(IConnection connection, Action connectionDequeuedCallback, 89public IConnection RawConnection 304public IConnection EndCompletePreamble(IAsyncResult result) 309class CompletePreambleAsyncResult : TypedAsyncResult<IConnection> 319IConnection currentConnection; 505IConnection connectionToUpgrade = this.currentConnection; 955IConnection rawConnection; 960IConnection upgradedConnection, ConnectionDemuxer connectionDemuxer) 1040IConnection connection; 1053protected SingletonConnectionReader(IConnection connection, int offset, int size, SecurityMessageProperty security, 1064protected IConnection Connection 1224IConnection singletonConnection = this.connection; 1313IConnection connection; 1380public SingletonInputConnectionStream(SingletonConnectionReader reader, IConnection connection, 1610public static void WriteMessage(Message message, IConnection connection, bool isRequest, 1661public static IAsyncResult BeginWriteMessage(Message message, IConnection connection, bool isRequest, 1678public StreamingOutputConnectionStream(IConnection connection, IDefaultCommunicationTimeouts timeouts) 1713IConnection connection; 1727public WriteMessageAsyncResult(Message message, IConnection connection, bool isRequest,
System\ServiceModel\Channels\SocketConnection.cs (4)
1576IConnection CreateConnection(Socket socket) 1681public IConnection Connect(Uri uri, TimeSpan timeout) 1762public IConnection EndConnect(IAsyncResult result) 2047public IConnection EndAccept(IAsyncResult result)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (12)
88IConnection SendPreamble(IConnection connection, ref TimeoutHelper timeoutHelper, 182protected override IConnection AcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper) 188protected override IAsyncResult BeginAcceptPooledConnection(IConnection connection, ref TimeoutHelper timeoutHelper, AsyncCallback callback, object state) 194protected override IConnection EndAcceptPooledConnection(IAsyncResult result) 202IConnection connection; 214public SendPreambleAsyncResult(StreamedFramingRequestChannel channel, IConnection connection, 237public static IConnection End(IAsyncResult result, out SecurityMessageProperty remoteSecurity) 493public ClientSingletonConnectionReader(IConnection connection, StreamedConnectionPoolHelper connectionPoolHelper, 541IConnection connection; 619IConnection connection;
System\ServiceModel\Channels\TracingConnection.cs (2)
19public TracingConnection(IConnection connection, ServiceModelActivity activity) 25public TracingConnection(IConnection connection, bool inheritCurrentActivity)
System\ServiceModel\Channels\TracingConnectionInitiator.cs (3)
29public IConnection Connect(Uri uri, TimeSpan timeout) 33IConnection retval = this.connectionInitiator.Connect(uri, timeout); 53public IConnection EndConnect(IAsyncResult result)
System\ServiceModel\Channels\TracingConnectionListener.cs (2)
75public IConnection EndAccept(IAsyncResult result) 90IConnection innerConnection = this.listener.EndAccept(result);