Exemple #1
0
        Task IFilterObserver.PostSend <T>(T context)
        {
            if (typeof(T).ClosesType(typeof(ConsumeContext <>)))
            {
                return(ConsumeObserverConverterCache.PostConsume(typeof(T).GetClosingArguments(typeof(ConsumeContext <>)).Single(), _observer, context));
            }

            return(TaskUtil.Completed);
        }
Exemple #2
0
        Task IFilterObserver.SendFault <T>(T context, Exception exception)
        {
            if (typeof(T).ClosesType(typeof(ConsumeContext <>)))
            {
                return(ConsumeObserverConverterCache.ConsumeFault(typeof(T).GetClosingArguments(typeof(ConsumeContext <>)).Single(), _observer, context,
                                                                  exception));
            }

            return(TaskUtil.Completed);
        }
Exemple #3
0
 Task IFilterObserver.SendFault <T>(T context, Exception exception)
 {
     return(ConsumeObserverConverterCache.ConsumeFault(typeof(T), _observer, context, exception));
 }
Exemple #4
0
 Task IFilterObserver.PostSend <T>(T context)
 {
     return(ConsumeObserverConverterCache.PostConsume(typeof(T), _observer, context));
 }