private void UnregisterSubscriber(IOrderStatusCallback subscriber) { subscribers.Remove(subscriber); Trace.WriteLine("Subscriber is removed."); }
private bool IsSubscriberRegistered(IOrderStatusCallback subscriber) { return(subscribers.Contains(subscriber)); }
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)); }