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;
		}
예제 #2
0
        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);
        }
예제 #3
0
        public bool Inspect(OutboundMessageInterceptor element)
        {
            Append(string.Format("Interceptor"));

            return(true);
        }