Exemple #1
0
 private void UnregisterSubscriber(IOrderStatusCallback subscriber)
 {
     subscribers.Remove(subscriber);
     Trace.WriteLine("Subscriber is removed.");
 }
Exemple #2
0
 private bool IsSubscriberRegistered(IOrderStatusCallback subscriber)
 {
     return(subscribers.Contains(subscriber));
 }
Exemple #3
0
 private void RegisterSubscriber(IOrderStatusCallback subscriber)
 {
     subscribers.Add(subscriber);
     Trace.WriteLine("Subscriber is added.");
 }
        public OrderNotificationClient(IOrderStatusCallback callback)
        {
            var endpointConfigurationName = ConfigurationManager.AppSettings.Get(this.GetType().Name);

            this.adapter = new ServiceAdapter <IOrderStatusService>(endpointConfigurationName, new InstanceContext(callback));
        }