Exemple #1
0
        public void Remove(UserMessageRuleActionBase action)
        {
            Guid.NewGuid().ToString();
            this.m_pRule.Owner.VirtualServer.Server.TCP_Client.TcpStream.WriteLine(string.Concat(new string[]
            {
                "DeleteUserMessageRuleAction ",
                this.m_pRule.Owner.VirtualServer.VirtualServerID,
                " ",
                TextUtils.QuoteString(this.m_pRule.Owner.Owner.UserID),
                " ",
                TextUtils.QuoteString(this.m_pRule.ID),
                " ",
                TextUtils.QuoteString(action.ID)
            }));
            string text = this.m_pRule.Owner.VirtualServer.Server.ReadLine();

            if (!text.ToUpper().StartsWith("+OK"))
            {
                throw new Exception(text);
            }
            this.m_pActions.Remove(action);
        }
Exemple #2
0
 private void Add(UserMessageRuleActionBase action)
 {
     this.Add(action.ID, action.Description, action.ActionType, action.Serialize(), false);
 }