internal void FireRetrying(RequestEventArgs args)
        {
            EventHandler <RequestEventArgs> handler = this.Retrying;

            if (handler != null)
            {
                handler(this, args);
            }

            EventHandler <RequestEventArgs> handlerStatic = OperationContext.GlobalRetrying;

            if (handlerStatic != null)
            {
                handlerStatic(this, args);
            }
        }
        internal void FireSendingRequest(RequestEventArgs args)
        {
            EventHandler <RequestEventArgs> handler = this.SendingRequest;

            if (handler != null)
            {
                handler(this, args);
            }

            EventHandler <RequestEventArgs> handlerStatic = OperationContext.GlobalSendingRequest;

            if (handlerStatic != null)
            {
                handlerStatic(this, args);
            }
        }