예제 #1
0
        public static Container RegisterEasyNetQ(this Container container, string connectionString)
        {
            if (container == null)
            {
                throw new ArgumentNullException(nameof(container));
            }

            return(container.RegisterEasyNetQ(c => c.Resolve <IConnectionStringParser>().Parse(connectionString)));
        }
예제 #2
0
        public static Container RegisterEasyNetQ(this Container container, Func <IServiceResolver, ConnectionConfiguration> connectionConfigurationFactory)
        {
            if (container == null)
            {
                throw new ArgumentNullException(nameof(container));
            }

            return(container.RegisterEasyNetQ(connectionConfigurationFactory, c => { }));
        }