상속: System.EventArgs
        bool InvokeHandler(Exception error)
        {
            ConditionalGetEventArgs args = new ConditionalGetEventArgs()
            {
                SendError = error
            };

            return(InvokeHandler(args));
        }
        bool InvokeHandler(HttpResponseMessage response)
        {
            ConditionalGetEventArgs args = new ConditionalGetEventArgs()
            {
                Response = response
            };

            return(InvokeHandler(args));
        }
        void InvokeHandlerCore(object state)
        {
            ConditionalGetEventArgs args = (ConditionalGetEventArgs)state;
            var handler = this.ResourceChanged;

            if (handler != null)
            {
                handler(this, args);
            }
        }
 bool InvokeHandler(ConditionalGetEventArgs args)
 {
     if (this.syncContext != null)
     {
         this.syncContext.Send(new SendOrPostCallback(this.InvokeHandlerCore), args);
     }
     else
     {
         this.InvokeHandlerCore(args);
     }
     return(args.StopPolling);
 }
예제 #5
0
 bool InvokeHandler(ConditionalGetEventArgs args)
 {
     if (this.syncContext != null)
     {
         this.syncContext.Send(new SendOrPostCallback(this.InvokeHandlerCore), args);
     }
     else
     {
         this.InvokeHandlerCore(args);
     }
     return args.StopPolling;
 }
예제 #6
0
 bool InvokeHandler(Exception error)
 {
     ConditionalGetEventArgs args = new ConditionalGetEventArgs() { SendError = error };
     return InvokeHandler(args);
 }
예제 #7
0
 bool InvokeHandler(HttpResponseMessage response)
 {
     ConditionalGetEventArgs args = new ConditionalGetEventArgs() { Response = response };
     return InvokeHandler(args);
 }