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));
        }
Exemple #4
0
 public void SubscriptionEventError(SubscriptionEventContext context, Exception exception)
 {
 }
Exemple #5
0
 public void SubscriptionEventResult(SubscriptionEventContext context, IQueryResult result)
 {
 }
Exemple #6
0
 public IDisposable OnSubscriptionEvent(SubscriptionEventContext context) => this;
Exemple #7
0
 /// <inheritdoc />
 public virtual IActivityScope OnSubscriptionEvent(
     SubscriptionEventContext context) =>
 EmptyScope;
Exemple #8
0
 /// <inheritdoc />
 public virtual IDisposable OnSubscriptionEvent(
     SubscriptionEventContext context)
 => EmptyScope;
Exemple #9
0
 public IActivityScope OnSubscriptionEvent(SubscriptionEventContext context) => this;