public void Execute(Action callback) { _connectionHandler.Connect(); _policyChain.Pop(this); _policyChain.Next(callback); }
public void Execute(Action callback) { _connectionHandler.Disconnect(); if (_reconnectDelay > TimeSpan.Zero) { Thread.Sleep(_reconnectDelay); } _connectionHandler.Connect(); _policyChain.Pop(this); _policyChain.Next(callback); }
public void Execute(Action callback) { callback(); _policyChain.Pop(this); _policyChain.Next(callback); }