Exemple #1
0
        public void Execute(Action callback)
        {
            _connectionHandler.Connect();

            _policyChain.Pop(this);
            _policyChain.Next(callback);
        }
Exemple #2
0
        public void Execute(Action callback)
        {
            _connectionHandler.Disconnect();

            if (_reconnectDelay > TimeSpan.Zero)
            {
                Thread.Sleep(_reconnectDelay);
            }

            _connectionHandler.Connect();

            _policyChain.Pop(this);
            _policyChain.Next(callback);
        }
Exemple #3
0
 public void Execute(Action callback)
 {
     callback();
     _policyChain.Pop(this);
     _policyChain.Next(callback);
 }