CreateConnectingTcpConnection() static private method

static private CreateConnectingTcpConnection ( IPEndPoint remoteEndPoint, EventStore.Transport.Tcp.TcpClientConnector connector, Action onConnectionEstablished, SocketError>.Action onConnectionFailed ) : TcpConnection
remoteEndPoint System.Net.IPEndPoint
connector EventStore.Transport.Tcp.TcpClientConnector
onConnectionEstablished Action
onConnectionFailed SocketError>.Action
return TcpConnection
コード例 #1
0
 public TcpConnection ConnectTo(IPEndPoint remoteEndPoint,
                                Action <TcpConnection> onConnectionEstablished         = null,
                                Action <TcpConnection, SocketError> onConnectionFailed = null)
 {
     if (remoteEndPoint == null)
     {
         throw new ArgumentNullException("remoteEndPoint");
     }
     return(TcpConnection.CreateConnectingTcpConnection(remoteEndPoint, this, onConnectionEstablished, onConnectionFailed));
 }
コード例 #2
0
 public ITcpConnection ConnectTo(Guid connectionId,
                                 IPEndPoint remoteEndPoint,
                                 TimeSpan connectionTimeout,
                                 Action <ITcpConnection> onConnectionEstablished         = null,
                                 Action <ITcpConnection, SocketError> onConnectionFailed = null,
                                 bool verbose = true)
 {
     Ensure.NotNull(remoteEndPoint, "remoteEndPoint");
     return(TcpConnection.CreateConnectingTcpConnection(connectionId, remoteEndPoint, this, connectionTimeout,
                                                        onConnectionEstablished, onConnectionFailed, verbose));
 }