public HttpServerTransactionDelegateWrapper(IHttpServerTransactionDelegate realDelegate, IConnectionWatcher connectionWatcher, ISocket socket) { _realDelegate = realDelegate; _connectionWatcher = connectionWatcher; _socket = socket; }
public static IConnectionWatcher OnRemoved(this IConnectionWatcher watcher, Action <ITrafficRow> onRemoved) { if (onRemoved is null) { return(watcher); } watcher.ConnectionListChanged += (sender, e) => onRemoved?.Invoke((e as ConnectionListRemovedEventArgs).Removed); return(watcher); }
public static ClientHolderState CreateActive( Lazy <ZooKeeperNetExClient> client, IConnectionWatcher connectionWatcher, ConnectionState connectionState, string connectionString, ZooKeeperClientSettings settings) => new ClientHolderState( false, connectionState.IsConnected(settings.CanBeReadOnly), client, connectionWatcher, connectionState, connectionString, TimeBudget.StartNew(settings.Timeout));
private ClientHolderState( bool isSuspended, bool isConnected, Lazy <ZooKeeperNetExClient> client, IConnectionWatcher connectionWatcher, ConnectionState connectionState, string connectionString, TimeBudget timeBeforeReset) { IsSuspended = isSuspended; IsConnected = isConnected; lazyClient = client; ConnectionWatcher = connectionWatcher; ConnectionState = connectionState; ConnectionString = connectionString; TimeBeforeReset = timeBeforeReset; }
public static IConnectionWatcher OnUpdated(this IConnectionWatcher watcher, Action <(ITrafficRow Origin, ITrafficRow Updated)> onUpdated)
public IosHttpServerDelegate(IHttpRequestDelegate requestDelegate, IConnectionWatcher connWatcher) { this.requestDelegate = requestDelegate; this.responseFactory = new HttpResponseDelegateFactory(); this.connWatcher=connWatcher; }
public IosHttpServerFactory(IServerFactory serverFactory, IConnectionWatcher connWatcher) { this.serverFactory = serverFactory; this.connWatcher = connWatcher; }
public static IServer CreateIosHttp(this IServerFactory factory, IHttpRequestDelegate channel, IConnectionWatcher connWatcher, IScheduler scheduler) { var f = new IosHttpServerFactory(factory, connWatcher); return f.Create(channel, scheduler); }
public IosHttpServerDelegate(IHttpRequestDelegate requestDelegate, IConnectionWatcher connWatcher) { this.requestDelegate = requestDelegate; this.responseFactory = new HttpResponseDelegateFactory(); this.connWatcher = connWatcher; }
public static IServer CreateIosHttp(this IServerFactory factory, IHttpRequestDelegate channel, IConnectionWatcher connWatcher, IScheduler scheduler) { var f = new IosHttpServerFactory(factory, connWatcher); return(f.Create(channel, scheduler)); }