Beispiel #1
0
        /// <summary>
        /// Adds new node to cluster
        /// </summary>
        /// <param name="connectionString">Nodes's connection string</param>
        public void AddNode(string connectionString)
        {
            var node = new Node(Guid.NewGuid(), connectionString);

            try
            {
                nodeRepository.AddToken(node);
                ClusterManager.AddNode(node);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }