Esempio n. 1
0
        /// <summary>
        /// Disconnects a specific client by name
        /// </summary>
        public void Disconnect(string name)
        {
            RenderNode node = GetNodeByName(name);

            if (node == null)
            {
                throw new ArgumentException($"Node does not exist with name {name}");
            }
            node.Disconnect();
        }
Esempio n. 2
0
        public void RemoveNode(string name)
        {
            RenderNode node = GetNodeByName(name);

            if (node != null)
            {
                Nodes.Remove(node);
                node.Disconnect();
                OnNodeRemoved?.Invoke(this, node);
            }
        }