Esempio n. 1
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);
        }
Esempio n. 2
0
 Task IFilterObserver.SendFault <T>(T context, Exception exception)
 {
     return(ConsumeObserverConverterCache.ConsumeFault(typeof(T), _observer, context, exception));
 }