Пример #1
0
 private void UnsubscribeForActivity(ActivityExecutionContext context)
 {
     if (this.ActivitySubscribed)
     {
         CorrelationService.Unsubscribe(context, this, this.InterfaceType, this.MethodName, this);
         this.ActivitySubscribed = false;
     }
 }
 void IEventActivity.Unsubscribe(ActivityExecutionContext parentContext, IActivityEventListener <QueueEventArgs> parentEventHandler)
 {
     if (parentContext == null)
     {
         throw new ArgumentNullException("parentContext");
     }
     if (parentEventHandler == null)
     {
         throw new ArgumentNullException("parentEventHandler");
     }
     CorrelationService.Unsubscribe(parentContext, this, this.InterfaceType, this.EventName, parentEventHandler);
 }