private void OnReconnect(object sender, ClientConnectionEventArgs clientConnectionEventArgs)
 {
     if (Verbose) Log.Debug("Catch-up Subscription to {0}: recovering after reconnection.");
     if (Verbose) Log.Debug("Catch-up Subscription to {0}: unhooking from connection.Connected.");
     _connection.Connected -= OnReconnect;
     RunSubscription();
 }
Пример #2
0
 static void singleInstanceConnection_Disconnected(object sender, ClientConnectionEventArgs e)
 {
     Console.WriteLine("Diconnected from {0}", e);
 }
 private static void EventStoreConnDisconnected(object sender, ClientConnectionEventArgs e)
 {
 }
 protected virtual void OnDisconnected(ClientConnectionEventArgs e)
 {
     var handler = Disconnected;
     if (handler != null) handler(this, e);
 }
 public void OnConnected(ClientConnectionEventArgs e)
 {
     var handler = Connected;
     if (handler != null) handler(this, e);
 }
Пример #6
0
 public static ClientConnectionEventArgs ToRdEventArgs(this ES.ClientConnectionEventArgs args, IStreamStoreConnection conn)
 {
     return(new ClientConnectionEventArgs(conn, args.RemoteEndPoint));
 }
 private void EventStoreClientOnDisconnected(object sender, ClientConnectionEventArgs clientConnectionEventArgs)
 {
     _logger.Error(
         $"Event Store disconnected from endpoint {clientConnectionEventArgs.RemoteEndPoint.Address}:{clientConnectionEventArgs.RemoteEndPoint.Port}");
 }
 private void EventStoreClientOnConnected(object sender, ClientConnectionEventArgs clientConnectionEventArgs)
 {
     _logger.Info(
         $"Event Store connected {clientConnectionEventArgs.RemoteEndPoint.Address}:{clientConnectionEventArgs.RemoteEndPoint.Port}");
 }
 private void ConnOnConnected(object sender, ES.ClientConnectionEventArgs clientConnectionEventArgs)
 {
     Connected(sender, clientConnectionEventArgs.ToRdEventArgs(this));
 }
Пример #10
0
 private static void EventStoreClientOnDisconnected(object sender, ClientConnectionEventArgs clientConnectionEventArgs)
 {
     Console.WriteLine(
         $"Event Store disconnected from endpoint {clientConnectionEventArgs.RemoteEndPoint.Address}:{clientConnectionEventArgs.RemoteEndPoint.Port}");
 }