コード例 #1
0
        public ConnectionHandlerImpl(T connection)
        {
            _bindings = new HashSet <ConnectionBinding <T> >();

            _connection  = connection;
            _policyChain = new ConnectionPolicyChainImpl(this);

            _policyChain.Push(new ConnectOnFirstUsePolicy(this, _policyChain));
        }
コード例 #2
0
 public void ForceReconnect(TimeSpan reconnectDelay)
 {
     _policyChain.Push(new ReconnectPolicy(this, _policyChain, reconnectDelay));
 }