/// <summary> /// Registers a management endpoint on the bus, which can be used to control /// filters and other management control points on the bus. /// </summary> /// <param name="configurator"></param> /// <param name="host">The host where the endpoint is to be created</param> /// <param name="configure">Configure additional values of the underlying receive endpoint</param> /// <returns></returns> public static IManagementEndpointConfigurator ManagementEndpoint(this IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host, Action <IActiveMqReceiveEndpointConfigurator> configure = null) { if (configurator == null) { throw new ArgumentNullException(nameof(configurator)); } if (host == null) { throw new ArgumentNullException(nameof(host)); } var queueName = host.Topology.CreateTemporaryQueueName("manage-"); IActiveMqReceiveEndpointConfigurator specification = null; configurator.ReceiveEndpoint(host, queueName, x => { x.AutoDelete = true; x.Durable = false; configure?.Invoke(x); specification = x; }); var managementEndpointConfigurator = new ManagementEndpointConfigurator(specification); return(managementEndpointConfigurator); }
public ActiveMqReceiveTransport(IActiveMqHost host, ReceiveSettings settings, IPipe <ConnectionContext> connectionPipe, ActiveMqReceiveEndpointContext receiveEndpointContext) { _host = host; _settings = settings; _receiveEndpointContext = receiveEndpointContext; _connectionPipe = connectionPipe; _inputAddress = receiveEndpointContext.InputAddress; }
public ActiveMqSessionContext(ConnectionContext connectionContext, ISession session, IActiveMqHost host, CancellationToken cancellationToken) : base(new PayloadCacheScope(connectionContext), cancellationToken) { _connectionContext = connectionContext; _session = session; _host = host; _taskScheduler = new LimitedConcurrencyLevelTaskScheduler(1); _messageProducerCache = new MessageProducerCache(); }
/// <summary> /// Declare a ReceiveEndpoint using a unique generated queue name. This queue defaults to auto-delete /// and non-durable. By default all services bus instances include a default receiveEndpoint that is /// of this type (created automatically upon the first receiver binding). /// </summary> /// <param name="configurator"></param> /// <param name="host"></param> /// <param name="definition"></param> /// <param name="configure"></param> public static void ReceiveEndpoint(this IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host, IEndpointDefinition definition, Action <IActiveMqReceiveEndpointConfigurator> configure = null) { configurator.ReceiveEndpoint(host, definition, DefaultEndpointNameFormatter.Instance, configure); }
public ReceiveSessionFilter(IPipe <SessionContext> pipe, IActiveMqHost host) { _pipe = pipe; _host = host; }
public ActiveMqSessionCache(IActiveMqHost host, IConnectionCache connectionCache) : base(new SessionContextFactory(connectionCache, host)) { }
protected override void ConfigureActiveMqBusHost(IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host) { configurator.ReceiveEndpoint(host, "input_queue_error", x => { x.BindMessageTopics = false; _errorHandler = Handled <PingMessage>(x); }); }
protected virtual void ConfigureActiveMqBusHost(IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host) { }
/// <summary> /// Declare a ReceiveEndpoint using a unique generated queue name. This queue defaults to auto-delete /// and non-durable. By default all services bus instances include a default receiveEndpoint that is /// of this type (created automatically upon the first receiver binding). /// </summary> /// <param name="configurator"></param> /// <param name="host"></param> /// <param name="configure"></param> public static void ReceiveEndpoint(this IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host, Action <IActiveMqReceiveEndpointConfigurator> configure) { var queueName = host.Topology.CreateTemporaryQueueName("receiveEndpoint-"); configurator.ReceiveEndpoint(host, queueName, x => { x.AutoDelete = true; x.Durable = false; configure(x); }); }
public SessionContextFactory(IConnectionCache connectionCache, IActiveMqHost host) { _connectionCache = connectionCache; _host = host; }
protected virtual IAgent <SessionContext> GetSessionAgent(IActiveMqHost host) { return(new ActiveMqSessionCache(host, host.ConnectionCache)); }
public void SetComplete(IActiveMqHost host) { _host = host; base.SetComplete(host); }
protected override void ConfigureActiveMqBusHost(IActiveMqBusFactoryConfigurator configurator, IActiveMqHost host) { base.ConfigureActiveMqBusHost(configurator, host); configurator.UseActiveMqMessageScheduler(); }
public bool TryGetHost(IActiveMqHost host, out IActiveMqHostConfiguration hostConfiguration) { return(_hosts.TryGetHost(host, out hostConfiguration)); }