/// <summary> /// Creates a management endpoint which can be used by controllable filters on a bus intance /// </summary> /// <param name="configurator"></param> /// <param name="host">The service bus host</param> /// <param name="configure"></param> /// <returns></returns> public static IManagementEndpointConfigurator ManagementEndpoint(this IServiceBusBusFactoryConfigurator configurator, IServiceBusHost host, Action <IReceiveEndpointConfigurator> configure = null) { var queueName = host.GetTemporaryQueueName("manage-"); var specification = new ServiceBusReceiveEndpointSpecification(host, queueName) { AutoDeleteOnIdle = TimeSpan.FromMinutes(5), EnableExpress = true, }; configure?.Invoke(specification); configurator.AddReceiveEndpointSpecification(specification); var managementEndpointConfigurator = new ManagementEndpointConfigurator(specification); return(managementEndpointConfigurator); }