static OutboundMessageInterceptor ConfigureInterceptor( Func<IPipelineSink<ISendContext>, IPipelineSink<ISendContext>> insertAfter, IOutboundMessageInterceptor messageInterceptor) { if (insertAfter == null) throw new PipelineException("Unable to insert filter into pipeline for message type " + typeof (object).FullName); var interceptor = new OutboundMessageInterceptor(insertAfter, messageInterceptor); return interceptor; }
static OutboundMessageInterceptor ConfigureInterceptor( Func <IPipelineSink <ISendContext>, IPipelineSink <ISendContext> > insertAfter, IOutboundMessageInterceptor messageInterceptor) { if (insertAfter == null) { throw new PipelineException("Unable to insert filter into pipeline for message type " + typeof(object).FullName); } var interceptor = new OutboundMessageInterceptor(insertAfter, messageInterceptor); return(interceptor); }
public bool Inspect(OutboundMessageInterceptor element) { Append(string.Format("Interceptor")); return(true); }