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