Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }