/// <summary> /// Creates and adds new 'Forward To Host' action to UserMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">Host name or IP where to forward message.</param> /// <param name="port">Destination host port.</param> public UserMessageRuleAction_ForwardToHost Add_ForwardToHost(string description, string host, int port) { UserMessageRuleAction_ForwardToHost action = new UserMessageRuleAction_ForwardToHost( m_pRule, this, Guid.NewGuid().ToString(), description, host, port ); // Add action to rule Add(action); m_pActions.Add(action); return(action); }
/// <summary> /// Creates and adds new 'Forward To Host' action to UserMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">Host name or IP where to forward message.</param> /// <param name="port">Destination host port.</param> public UserMessageRuleAction_ForwardToHost Add_ForwardToHost(string description,string host,int port) { UserMessageRuleAction_ForwardToHost action = new UserMessageRuleAction_ForwardToHost( m_pRule, this, Guid.NewGuid().ToString(), description, host, port ); // Add action to rule Add(action); m_pActions.Add(action); return action; }