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