public ConnectionHandlerImpl(T connection) { _bindings = new HashSet <ConnectionBinding <T> >(); _connection = connection; _policyChain = new ConnectionPolicyChainImpl(this); _policyChain.Push(new ConnectOnFirstUsePolicy(this, _policyChain)); }
public void ForceReconnect(TimeSpan reconnectDelay) { _policyChain.Push(new ReconnectPolicy(this, _policyChain, reconnectDelay)); }