コード例 #1
0
        public static UnsubscribeAction ConnectEndpoint(this IMessagePipeline pipeline, Type messageType, IEndpoint endpoint)
        {
            object sink = FastActivator.Create(typeof(EndpointMessageSink <>).MakeGenericType(messageType),
                                               new object[] { endpoint });

            return(pipeline.FastInvoke <IMessagePipeline, UnsubscribeAction>("ConnectToRouter", sink));
        }