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); }
bool InvokeHandler(ConditionalGetEventArgs args) { if (this.syncContext != null) { this.syncContext.Send(new SendOrPostCallback(this.InvokeHandlerCore), args); } else { this.InvokeHandlerCore(args); } return args.StopPolling; }
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); }