Пример #1
0
 public void NotifyHandlerNotFound(IPrintResult printResponse)
 {
     if (null != this.OnResponseHandlerNotFound)
     {
         this.OnResponseHandlerNotFound(printResponse);
     }
 }
Пример #2
0
 public void NotifyHandlerNotFound(IPrintResult printResponse)
 {
     if (null != this.OnResponseHandlerNotFound)
     {
         this.OnResponseHandlerNotFound(printResponse);
     }
 }
        private bool NotifyEvent(PrintJobId printJobId, IPrintResult result)
        {
            bool eventNotified = false;
            AutoResetEvent resetEvent;
            if (this.printJobResetEvent.TryGetValue(printJobId, out resetEvent))
            {
                eventNotified = true;
                this.resultDictionary[printJobId] = result;
                resetEvent.Set();
            }

            return eventNotified;
        }
        private bool NotifyEvent(PrintJobId printJobId, IPrintResult result)
        {
            bool           eventNotified = false;
            AutoResetEvent resetEvent;

            if (this.printJobResetEvent.TryGetValue(printJobId, out resetEvent))
            {
                eventNotified = true;
                this.resultDictionary[printJobId] = result;
                resetEvent.Set();
            }

            return(eventNotified);
        }