/// <summary> /// Creates and adds new 'Store To FTP Folder' action to UserMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">FTP server where to store message.</param> /// <param name="port">FTP server port.</param> /// <param name="userName">FTP server user name.</param> /// <param name="password">FTP server user password.</param> /// <param name="folder">FTP folder where to store message.</param> public UserMessageRuleAction_StoreToFtp Add_StoreToFtp(string description, string host, int port, string userName, string password, string folder) { UserMessageRuleAction_StoreToFtp action = new UserMessageRuleAction_StoreToFtp( m_pRule, this, Guid.NewGuid().ToString(), description, host, port, userName, password, folder ); // Add action to rule Add(action); m_pActions.Add(action); return(action); }
/// <summary> /// Creates and adds new 'Store To FTP Folder' action to UserMessageRuleActionCollection collection. /// </summary> /// <param name="description">Action description text.</param> /// <param name="host">FTP server where to store message.</param> /// <param name="port">FTP server port.</param> /// <param name="userName">FTP server user name.</param> /// <param name="password">FTP server user password.</param> /// <param name="folder">FTP folder where to store message.</param> public UserMessageRuleAction_StoreToFtp Add_StoreToFtp(string description,string host,int port,string userName,string password,string folder) { UserMessageRuleAction_StoreToFtp action = new UserMessageRuleAction_StoreToFtp( m_pRule, this, Guid.NewGuid().ToString(), description, host, port, userName, password, folder ); // Add action to rule Add(action); m_pActions.Add(action); return action; }