public PrintManagerAsyncProvider( PrintManagerChannelFactory printManagerChannelFactory, IPrintServiceNotificationProvider printServiceNotificationProvider, IPrintManagerNotificationHandler printManagerNotificationHandler) { this.printManagerChannelFactory = printManagerChannelFactory; this.printManagerNotificationHandler = printManagerNotificationHandler; this.printServiceNotificationProvider = printServiceNotificationProvider; }
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; }
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); }
protected abstract bool TryGetNotificationHandler(PrintJobId printJobId, out IPrintManagerNotificationHandler handler);
protected abstract void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler);
public void AddSubscription(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler) { this.AddSubscriptionImpl(printJobId, printManagerNotificationHandler); }
public PrintManagerCallback(IPrintManagerNotificationHandler handler) { this.handler = handler; }
protected override void AddSubscriptionImpl(PrintJobId printJobId, IPrintManagerNotificationHandler printManagerNotificationHandler) { this.printJobIds[printJobId] = 0; }
public PrintServerSingleNotificationProvider(IPrintManagerNotificationHandler handler, IPrintServiceNotify notify) : base(notify) { this.handler = handler; this.printJobIds = new ConcurrentDictionary<PrintJobId, byte>(); }
public PrintServerSingleNotificationProvider(IPrintManagerNotificationHandler handler, IPrintServiceNotify notify) : base(notify) { this.handler = handler; this.printJobIds = new ConcurrentDictionary <PrintJobId, byte>(); }