コード例 #1
0
 internal MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings, TimeSpan timeToWaitBeforeTriggeringTheCircuitBreaker)
 {
     this.topologySectionManager = topologySectionManager;
     this.container             = container;
     localAddress               = settings.LocalAddress();
     timeToWaitBeforeTriggering = timeToWaitBeforeTriggeringTheCircuitBreaker;
 }
コード例 #2
0
 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;
 }
コード例 #5
0
 internal ForwardingTopology(ITransportPartsContainer container)
 {
     this.container = container;
 }
コード例 #6
0
 public MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings) : this(topologySectionManager, container, settings, TimeSpan.FromSeconds(30))
 {
 }
コード例 #7
0
 public EndpointOrientedTopologySectionManager(SettingsHolder settings, ITransportPartsContainer container)
 {
     this.settings  = settings;
     this.container = container;
 }
コード例 #8
0
 public TopologyOperator(ITransportPartsContainer container)
 {
     this.container = container;
 }