public void SubscriptionEventError(SubscriptionEventContext context, Exception exception)
 {
     for (var i = 0; i < _listeners.Length; i++)
     {
         _listeners[i].SubscriptionEventError(context, exception);
     }
 }
 public void SubscriptionEventResult(SubscriptionEventContext context, IQueryResult result)
 {
     for (var i = 0; i < _listeners.Length; i++)
     {
         _listeners[i].SubscriptionEventResult(context, result);
     }
 }
        public IDisposable OnSubscriptionEvent(SubscriptionEventContext context)
        {
            var scopes = new IDisposable[_listeners.Length];

            for (var i = 0; i < _listeners.Length; i++)
            {
                scopes[i] = _listeners[i].OnSubscriptionEvent(context);
            }

            return(new AggregateActivityScope(scopes));
        }
Example #4
0
 public void SubscriptionEventError(SubscriptionEventContext context, Exception exception)
 {
 }
Example #5
0
 public void SubscriptionEventResult(SubscriptionEventContext context, IQueryResult result)
 {
 }
Example #6
0
 public IDisposable OnSubscriptionEvent(SubscriptionEventContext context) => this;
Example #7
0
 /// <inheritdoc />
 public virtual IActivityScope OnSubscriptionEvent(
     SubscriptionEventContext context) =>
 EmptyScope;
Example #8
0
 /// <inheritdoc />
 public virtual IDisposable OnSubscriptionEvent(
     SubscriptionEventContext context)
 => EmptyScope;
Example #9
0
 public IActivityScope OnSubscriptionEvent(SubscriptionEventContext context) => this;