Task IFilterObserver.PreSend <T>(T context) { if (typeof(T).ClosesType(typeof(ConsumeContext <>))) { return(ConsumeObserverConverterCache.PreConsume(typeof(T).GetClosingArguments(typeof(ConsumeContext <>)).Single(), _observer, context)); } return(TaskUtil.Completed); }
Task IFilterObserver.PreSend <T>(T context) { return(ConsumeObserverConverterCache.PreConsume(typeof(T), _observer, context)); }