/// <summary> /// Initializes a new instance of the <see cref="ClusterState"/> class. /// </summary> public ClusterState(IClusterOptions options, string clusterName, string clientName, Partitioner partitioner, ILoggerFactory loggerFactory) { Options = options; ClusterName = clusterName; ClientName = clientName; Partitioner = partitioner; LoggerFactory = loggerFactory; _stateChangeQueue = new StateChangeQueue(loggerFactory); }
/// <summary> /// Initializes a new instance of the <see cref="ClusterState"/> class. /// </summary> public ClusterState(IClusterOptions options, string clusterName, string clientName, Partitioner partitioner, ILoggerFactory loggerFactory) { Options = options; ClusterName = clusterName; ClientName = clientName; Partitioner = partitioner; LoggerFactory = loggerFactory; _stateChangeQueue = new StateChangeQueue(loggerFactory); HConsole.Configure(x => x.Configure <ClusterState>().SetPrefix("CLUST.STATE")); }