public ClusterCommandProcessor( IConfigStore configStore, string configSectionName, IFabricClientWrapper fabricClientWrapper, CommandParameterGenerator commandParameterGenerator, NodeStatusManager nodeStatusManager, JsonSerializer jsonSerializer) { configStore.ThrowIfNull(nameof(configStore)); configSectionName.ThrowIfNullOrWhiteSpace(nameof(configSectionName)); fabricClientWrapper.ThrowIfNull(nameof(fabricClientWrapper)); commandParameterGenerator.ThrowIfNull(nameof(commandParameterGenerator)); nodeStatusManager.ThrowIfNull(nameof(nodeStatusManager)); jsonSerializer.ThrowIfNull(nameof(jsonSerializer)); this.configStore = configStore; this.configSectionName = configSectionName; this.fabricClientWrapper = fabricClientWrapper; this.commandParameterGenerator = commandParameterGenerator; this.nodeStatusManager = nodeStatusManager; this.serializer = jsonSerializer; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyManagementClientWrapper"/> class. /// </summary> public PropertyManagementClientWrapper(IFabricClientWrapper fabricClientWrapper) { _propertyManagementClient = fabricClientWrapper.FabricClient.PropertyManager; }
public HealthClientWrapper(IFabricClientWrapper fabricClientWrapper) { _healthClient = fabricClientWrapper.FabricClient.HealthManager; }
public CommandParameterGenerator(IFabricClientWrapper fabricClientWrapper) { this.fabricClientWrapper = fabricClientWrapper; this.clusterManifestSerializer = new XmlSerializer(typeof(ClusterManifestType)); this.continousNullClusterHealthCount = 0; }
/// <summary> /// Initializes a new instance of the <see cref="ServiceManagementClientWrapper"/> class. /// Wraps QueryManager, PropertyManager and ServiceManager SF SDK. /// </summary> public ServiceManagementClientWrapper(IFabricClientWrapper fabricClientWrapper) { _serviceManagementClient = fabricClientWrapper.FabricClient.ServiceManager; }
/// <summary> /// Initializes a new instance of the <see cref="QueryClientWrapper"/> class. /// </summary> public QueryClientWrapper(ILogger <QueryClientWrapper> logger, IFabricClientWrapper fabricClientWrapper) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _queryClient = fabricClientWrapper.FabricClient.QueryManager; }