public void Use(Action <T> callback)
        {
            _policyChain.Execute(() =>
            {
                if (!_connected)
                {
                    throw new InvalidConnectionException();
                }

                callback(_connection);
            });
        }
Esempio n. 2
0
 public void Use(Action <T> callback)
 {
     _policyChain.Execute(() => callback(_connection));
 }