コード例 #1
0
        public static IEndpoint New(Action<IEndpointConfigurator> action)
        {
            var configurator = new MsmqEndpointConfigurator();

            action(configurator);

            return configurator.Create();
        }
コード例 #2
0
        public static IEndpoint New(Action <IEndpointConfigurator> action)
        {
            var configurator = new MsmqEndpointConfigurator();

            action(configurator);

            return(configurator.Create());
        }
コード例 #3
0
        public static IEndpoint ConfigureEndpoint(Uri uri, Action <IEndpointConfigurator> configurator)
        {
            if (uri.Scheme.ToLowerInvariant() == "msmq")
            {
                IEndpoint endpoint = MsmqEndpointConfigurator.New(x =>
                {
                    x.SetUri(uri);

                    configurator(x);
                });

                return(endpoint);
            }

            return(null);
        }