コード例 #1
0
ファイル: PrintResponse.cs プロジェクト: kriznaraj/Code
 public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse)
 {
     if (null != this.onPrintFailure)
     {
         this.onPrintFailure(printResponse);
     }
 }
コード例 #2
0
ファイル: PrintResponse.cs プロジェクト: krishnarajv/Code
 public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse)
 {
     if (null != this.onPrintFailure)
     {
         this.onPrintFailure(printResponse);
     }
 }
コード例 #3
0
 public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse)
 {
     if (false == this.NotifyEvent(printJobId, printResponse))
     {
         if (false == this.PublishFailedEvent(printJobId, printResponse))
         {
             this.notify.NotifyHandlerNotFound(printResponse);
         }
     }
 }
コード例 #4
0
 public void OnPrintFailed(PrintJobId printJobId, IPrintErrorResult printResponse)
 {
     if (false == this.NotifyEvent(printJobId, printResponse))
     {
         if (false == this.PublishFailedEvent(printJobId, printResponse))
         {
             this.notify.NotifyHandlerNotFound(printResponse);
         }
     }
 }
コード例 #5
0
ファイル: PrintService.cs プロジェクト: krishnarajv/Code
 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);
     }
 }
コード例 #6
0
        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);
        }
コード例 #7
0
ファイル: PrintService.cs プロジェクト: kriznaraj/Code
        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);
            }
        }
コード例 #8
0
        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;
        }