コード例 #1
0
 public PrintManagerAsyncProvider(
     PrintManagerChannelFactory printManagerChannelFactory,
     IPrintServiceNotificationProvider printServiceNotificationProvider,
     IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.printManagerChannelFactory = printManagerChannelFactory;
     this.printManagerNotificationHandler = printManagerNotificationHandler;
     this.printServiceNotificationProvider = printServiceNotificationProvider;
 }
コード例 #2
0
 public PrintManagerAsyncProvider(
     PrintManagerChannelFactory printManagerChannelFactory,
     IPrintServiceNotificationProvider printServiceNotificationProvider,
     IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.printManagerChannelFactory       = printManagerChannelFactory;
     this.printManagerNotificationHandler  = printManagerNotificationHandler;
     this.printServiceNotificationProvider = printServiceNotificationProvider;
 }
コード例 #3
0
        protected override bool TryGetNotificationHandler(PrintJobId printJobId, out IPrintManagerNotificationHandler handler)
        {
            bool itemFound = false;
            handler = null;
            if (this.printJobIds.ContainsKey(printJobId))
            {
                handler = this.handler;
                itemFound = true;
            }

            return itemFound;
        }
コード例 #4
0
        protected override bool TryGetNotificationHandler(PrintJobId printJobId, out IPrintManagerNotificationHandler handler)
        {
            bool itemFound = false;

            handler = null;
            if (this.printJobIds.ContainsKey(printJobId))
            {
                handler   = this.handler;
                itemFound = true;
            }

            return(itemFound);
        }
コード例 #5
0
 protected abstract bool TryGetNotificationHandler(PrintJobId printJobId, out IPrintManagerNotificationHandler handler);
コード例 #6
0
 protected abstract void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler);
コード例 #7
0
 public void AddSubscription(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.AddSubscriptionImpl(printJobId, printManagerNotificationHandler);
 }
コード例 #8
0
 public PrintManagerCallback(IPrintManagerNotificationHandler handler)
 {
     this.handler = handler;
 }
コード例 #9
0
 protected override void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.printJobIds[printJobId] = 0;
 }
コード例 #10
0
 public PrintServerSingleNotificationProvider(IPrintManagerNotificationHandler handler, IPrintServiceNotify notify)
     : base(notify)
 {
     this.handler = handler;
     this.printJobIds = new ConcurrentDictionary<PrintJobId, byte>();
 }
コード例 #11
0
 protected abstract bool TryGetNotificationHandler(PrintJobId printJobId, out IPrintManagerNotificationHandler handler);
コード例 #12
0
 protected abstract void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler);
コード例 #13
0
 public void AddSubscription(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.AddSubscriptionImpl(printJobId, printManagerNotificationHandler);
 }
コード例 #14
0
 public PrintManagerCallback(IPrintManagerNotificationHandler handler)
 {
     this.handler = handler;
 }
コード例 #15
0
 protected override void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler)
 {
     this.printJobIds[printJobId] = 0;
 }
コード例 #16
0
 public PrintServerSingleNotificationProvider(IPrintManagerNotificationHandler handler, IPrintServiceNotify notify)
     : base(notify)
 {
     this.handler     = handler;
     this.printJobIds = new ConcurrentDictionary <PrintJobId, byte>();
 }