Beispiel #1
0
 internal MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings, TimeSpan timeToWaitBeforeTriggeringTheCircuitBreaker)
 {
     this.topologySectionManager = topologySectionManager;
     this.container             = container;
     localAddress               = settings.LocalAddress();
     timeToWaitBeforeTriggering = timeToWaitBeforeTriggeringTheCircuitBreaker;
 }
 void ApplyDefaults(SettingsHolder settings)
 {
     new DefaultConfigurationValues().Apply(settings);
     // ensures settings are present/correct
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Composition.Strategy, typeof(FlatComposition));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Individualization.Strategy, typeof(CoreIndividualization));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Partitioning.Strategy, typeof(SingleNamespacePartitioning));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Sanitization.Strategy, typeof(ThrowOnFailedValidation));
     topologySectionManager = new EndpointOrientedTopologySectionManager(settings, container);
 }
 void ApplyDefaults(SettingsHolder settings)
 {
     new DefaultConfigurationValues().Apply(settings);
     // ensures settings are present/correct
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Composition.Strategy, typeof(FlatComposition));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Individualization.Strategy, typeof(CoreIndividualization));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Partitioning.Strategy, typeof(SingleNamespacePartitioning));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Addressing.Sanitization.Strategy, typeof(ThrowOnFailedValidation));
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Bundling.NumberOfEntitiesInBundle, 2);
     settings.SetDefault(WellKnownConfigurationKeys.Topology.Bundling.BundlePrefix, "bundle-");
     topologySectionManager = new ForwardingTopologySectionManager(settings, container);
 }
Beispiel #4
0
 public TransportResourcesCreator(ICreateTopology topologyCreator, ITopologySectionManager sections)
 {
     this.topologyCreator = topologyCreator;
     this.sections        = sections;
 }
 public Batcher(ITopologySectionManager topologySectionManager, ReadOnlySettings settings)
 {
     this.topologySectionManager  = topologySectionManager;
     messageSizePaddingPercentage = settings.Get <int>(WellKnownConfigurationKeys.Connectivity.MessageSenders.MessageSizePaddingPercentage);
 }
Beispiel #6
0
 public MessagePump(ITopologySectionManager topologySectionManager, ITransportPartsContainer container, ReadOnlySettings settings) : this(topologySectionManager, container, settings, TimeSpan.FromSeconds(30))
 {
 }
 public SubscriptionManager(ITopologySectionManager topologySectionManager, IOperateTopology topologyOperator, ICreateTopology topologyCreator)
 {
     this.topologySectionManager = topologySectionManager;
     this.topologyOperator       = topologyOperator;
     this.topologyCreator        = topologyCreator;
 }