public void AddSubscriberTest()
 {
     PublisherClient target = new PublisherClient();
     SubscriberData subscriber = new SubscriberData { Name = "Test subscriber", Url = "http://localhost:8002/Subscriber" };
     target.AddSubscriber(subscriber);
 }
Ejemplo n.º 2
0
 private NotificationAsyncState Notify(string message, string activityId, SubscriberData subscriber, NotificationAsyncState state)
 {
     Action<string, string> action = new Action<string, string>(new SubscriberProxy(subscriber).Notify);
     state = new NotificationAsyncState { Message = message, Subscriber = subscriber, ActivityId = activityId };
     action.BeginInvoke(message, activityId, new AsyncCallback(HandleNotificationResult), state);
     return state;
 }
Ejemplo n.º 3
0
 internal SubscriberProxy(SubscriberData data)
 {
     this.subscriberData = data;
 }
Ejemplo n.º 4
0
 public void AddSubscriber(SubscriberData subscriber)
 {
     ErrorTrap.AddRaisableAssertion<ArgumentNullException>(subscriber != null, "subscriber != null");
     subscribers.Add(subscriber.Name, subscriber);
 }