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); }
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); }
Task IFilterObserver.SendFault <T>(T context, Exception exception) { return(ConsumeObserverConverterCache.ConsumeFault(typeof(T), _observer, context, exception)); }
Task IFilterObserver.PostSend <T>(T context) { return(ConsumeObserverConverterCache.PostConsume(typeof(T), _observer, context)); }