Inheritance: 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 bool InvokeHandler(Exception error)
 {
     ConditionalGetEventArgs args = new ConditionalGetEventArgs() { SendError = error };
     return InvokeHandler(args);
 }
Ejemplo n.º 7
0
 bool InvokeHandler(HttpResponseMessage response)
 {
     ConditionalGetEventArgs args = new ConditionalGetEventArgs() { Response = response };
     return InvokeHandler(args);
 }