internal AppNotifyServiceClientCallback(IExecutorService executorService, IAppNotifyServiceCallback callback)
     : base(executorService)
 {
     _callback = callback;
     _queue    = new BlockingBoundQueueUser <AppNotifyData>(executorService, -1);
     Extensions.CreateThreadAndStart(new ThreadStart(this.OnReceiveMessages), "AppNotifyServiceClientCallback_OnReceiveMessages_");
 }
 internal AppNotifyServiceClientCallback(IExecutorService executorService, IAppNotifyServiceCallback callback)
     : base(executorService)
 {
     _callback = callback;
     _queue = new BlockingBoundQueueUser<AppNotifyData>(executorService, -1);
     Extensions.CreateThreadAndStart(new ThreadStart(this.OnReceiveMessages), "AppNotifyServiceClientCallback_OnReceiveMessages_");
 }
        public void Subscribe()
        {
            ModuleProc PROC = new ModuleProc("AppNotifyService", "Subscribe");

            try
            {
                _callback = OperationContext.Current.GetCallbackChannel<IAppNotifyServiceCallback>();
                NotifyData += new EventHandler<AppNotifyDataEventArgs>(AppNotifyService_NotifyData);
            }
            catch (Exception ex)
            {
                Log.Exception(PROC, ex);
            }
        }
        public void Subscribe()
        {
            ModuleProc PROC = new ModuleProc("AppNotifyService", "Subscribe");

            try
            {
                _callback   = OperationContext.Current.GetCallbackChannel <IAppNotifyServiceCallback>();
                NotifyData += new EventHandler <AppNotifyDataEventArgs>(AppNotifyService_NotifyData);
            }
            catch (Exception ex)
            {
                Log.Exception(PROC, ex);
            }
        }