internal MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings, TimeSpan timeToWaitBeforeTriggeringTheCircuitBreaker) { this.topologySectionManager = topologySectionManager; this.container = container; localAddress = settings.LocalAddress(); timeToWaitBeforeTriggering = timeToWaitBeforeTriggeringTheCircuitBreaker; }
public TopologyCreator(ITransportPartsContainer container, IManageNamespaceManagerLifeCycle namespaces) { this.container = container; this.namespaces = namespaces; hasManageRights = new AsyncLazy <bool>(async() => { var namespacesWithoutManageRights = await ManageRightsCheck.Run(namespaces, container.Resolve <ReadOnlySettings>()) .ConfigureAwait(false); namespacesWithoutManageRightsJoined = string.Join(", ", namespacesWithoutManageRights.Select(alias => $"`{alias}`")); return(namespacesWithoutManageRights.Count == 0); }); }
public ForwardingTopologySectionManager(SettingsHolder settings, ITransportPartsContainer container) { this.settings = settings; this.container = container; namespaceBundleConfigurations = new Lazy <NamespaceBundleConfigurations>(() => { var manageNamespaceManagerLifeCycle = container.Resolve <IManageNamespaceManagerLifeCycle>(); var namespaceConfigurations = settings.Get <NamespaceConfigurations>(WellKnownConfigurationKeys.Topology.Addressing.Namespaces); var bundlePrefix = settings.Get <string>(WellKnownConfigurationKeys.Topology.Bundling.BundlePrefix); var bundleConfigurations = NumberOfTopicsInBundleCheck.Run(manageNamespaceManagerLifeCycle, namespaceConfigurations, bundlePrefix).GetAwaiter().GetResult(); return(bundleConfigurations); }); }
internal EndpointOrientedTopology(ITransportPartsContainer container) { this.container = container; }
internal ForwardingTopology(ITransportPartsContainer container) { this.container = container; }
public MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings) : this(topologySectionManager, container, settings, TimeSpan.FromSeconds(30)) { }
public EndpointOrientedTopologySectionManager(SettingsHolder settings, ITransportPartsContainer container) { this.settings = settings; this.container = container; }
public TopologyOperator(ITransportPartsContainer container) { this.container = container; }