/// <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);
        }
예제 #2
0
        /// <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"));
        }