public MemoryTransport(TransportAbstraction.IHost host, NetheriteOrchestrationServiceSettings settings, ILogger logger) { this.host = host; this.settings = settings; TransportConnectionString.Parse(settings.ResolvedTransportConnectionString, out _, out _); this.numberPartitions = (uint)settings.PartitionCount; this.logger = logger; }
/// <summary> /// Creates an instance of the scaling monitor, with the given parameters. /// </summary> /// <param name="storageConnectionString">The storage connection string.</param> /// <param name="eventHubsConnectionString">The connection string for the transport layer.</param> /// <param name="partitionLoadTableName">The name of the storage table with the partition load information.</param> /// <param name="taskHubName">The name of the taskhub.</param> public ScalingMonitor(string storageConnectionString, string eventHubsConnectionString, string partitionLoadTableName, string taskHubName) { this.storageConnectionString = storageConnectionString; this.eventHubsConnectionString = eventHubsConnectionString; this.partitionLoadTableName = partitionLoadTableName; this.taskHubName = taskHubName; TransportConnectionString.Parse(eventHubsConnectionString, out _, out this.configuredTransport); this.table = new AzureLoadMonitorTable(storageConnectionString, partitionLoadTableName, taskHubName); }