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))); }
public static Container RegisterEasyNetQ(this Container container, Func <IServiceResolver, ConnectionConfiguration> connectionConfigurationFactory) { if (container == null) { throw new ArgumentNullException(nameof(container)); } return(container.RegisterEasyNetQ(connectionConfigurationFactory, c => { })); }