HostReceiveEndpointHandle ConnectSubscriptionEndpoint(IServiceBusSubscriptionEndpointConfiguration configuration) { LogContext.Debug?.Log("Connect subscription endpoint: {Topic}/{SubscriptionName}", configuration.Settings.Path, configuration.Settings.Name); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(this); return(ReceiveEndpoints.Start(configuration.Settings.Path)); }
public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IActiveMqReceiveEndpointConfigurator> configure = null) { if (ReceiveEndpointFactory == null) { throw new ConfigurationException("The receive endpoint factory was not specified"); } ReceiveEndpointFactory.CreateReceiveEndpoint(queueName, configure); return(ReceiveEndpoints.Start(queueName)); }
HostReceiveEndpointHandle CreateSubscriptionEndpoint(Action <IServiceBusSubscriptionEndpointConfigurator> configure, SubscriptionEndpointSettings settings) { var configuration = _hostConfiguration.CreateSubscriptionEndpointConfiguration(settings); configure?.Invoke(configuration.Configurator); BusConfigurationResult.CompileResults(configuration.Validate()); return(ReceiveEndpoints.Start(settings.Path)); }
public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IActiveMqReceiveEndpointConfigurator> configure = null) { var configuration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName); configure?.Invoke(configuration.Configurator); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(); return(ReceiveEndpoints.Start(queueName)); }
public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IServiceBusReceiveEndpointConfigurator> configure = null) { LogContext.SetCurrentIfNull(DefaultLogContext); LogContext.Debug?.Log("Connect receive endpoint: {Queue}", queueName); var configuration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName, configure); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(this); return(ReceiveEndpoints.Start(configuration.Settings.Path)); }
public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IAmazonSqsReceiveEndpointConfigurator> configure = null) { LogContext.SetCurrentIfNull(DefaultLogContext); var configuration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName, configure); BusConfigurationResult.CompileResults(configuration.Validate()); TransportLogMessages.ConnectReceiveEndpoint(configuration.InputAddress); configuration.Build(this); return(ReceiveEndpoints.Start(queueName)); }
HostReceiveEndpointHandle ConnectSubscriptionEndpoint(SubscriptionEndpointSettings settings, Action <IServiceBusSubscriptionEndpointConfigurator> configure) { LogContext.SetCurrentIfNull(DefaultLogContext); LogContext.Debug?.Log("Connect subscription endpoint: {Topic}/{SubscriptionName}", settings.Path, settings.Name); var configuration = _hostConfiguration.CreateSubscriptionEndpointConfiguration(settings, configure); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(this); return(ReceiveEndpoints.Start(configuration.Settings.Path)); }
HostReceiveEndpointHandle ConnectSubscriptionEndpoint(SubscriptionEndpointSettings settings, Action <IServiceBusSubscriptionEndpointConfigurator> configure) { LogContext.SetCurrentIfNull(DefaultLogContext); var configuration = _hostConfiguration.CreateSubscriptionEndpointConfiguration(settings, configure); TransportLogMessages.ConnectSubscriptionEndpoint(configuration.InputAddress, settings.Name); BusConfigurationResult.CompileResults(configuration.Validate()); configuration.Build(this); return(ReceiveEndpoints.Start(configuration.Settings.Path)); }