public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse) { if (null != this.onPrintFailure) { this.onPrintFailure(printResponse); } }
public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse) { if (false == this.NotifyEvent(printJobId, printResponse)) { if (false == this.PublishFailedEvent(printJobId, printResponse)) { this.notify.NotifyHandlerNotFound(printResponse); } } }
public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse) { PrintResponse printServiceResponse; if (true == this.printResponseDictionary.TryRemove(printJobId, out printServiceResponse)) { printServiceResponse.OnPrintFailed(printJobId, printResponse); } else { this.NotifyHandlerNotFound(printResponse); } }
private bool PublishFailedEvent(PrintJobId printJobId, IPrintErrorResult result) { bool eventPublished = false; IPrintManagerNotificationHandler handler; if (this.TryGetNotificationHandler(printJobId, out handler)) { handler.OnPrintFailed(printJobId, result); eventPublished = true; } return(eventPublished); }
private bool PublishFailedEvent(PrintJobId printJobId, IPrintErrorResult result) { bool eventPublished = false; IPrintManagerNotificationHandler handler; if (this.TryGetNotificationHandler(printJobId, out handler)) { handler.OnPrintFailed(printJobId, result); eventPublished = true; } return eventPublished; }