public SendMessageQueueManager(IDatabase database, IMessageSender emailMessageSender = null, IMessageSender textMessageSender = null, string sendMessageTableName = "send_message")
 {
     this.database = database;
     this.emailSendMessageEngine = emailMessageSender == null ? null : new SendMessageEngine(SendMessageType.Email, emailMessageSender, database, sendMessageTableName);
     this.textSendMessageEngine  = textMessageSender == null ? null : new SendMessageEngine(SendMessageType.Text, textMessageSender, database, sendMessageTableName);
     this.sendMessageTableName   = sendMessageTableName;
 }
        public SendMessageQueueManager(IDatabase database, IMessageSender emailMessageSender = null, IMessageSender textMessageSender = null, string sendMessageTableName = "send_message", string sendVerifyTableName = "send_verify", int verifyCodeExpiresSeconds = 3600, SendMessage verifyEmailSendMessage = null, SendMessage verifyTextSendMessage = null, string verifyCodeFormat = "###-###")
        {
            this.database = database;
            this.emailSendMessageEngine   = emailMessageSender == null ? null : new SendMessageEngine(SendMessageType.Email, emailMessageSender, database, sendMessageTableName);
            this.textSendMessageEngine    = textMessageSender == null ? null : new SendMessageEngine(SendMessageType.Text, textMessageSender, database, sendMessageTableName);
            this.sendMessageTableName     = sendMessageTableName;
            this.sendVerifyTableName      = sendVerifyTableName;
            this.verifyCodeExpiresSeconds = verifyCodeExpiresSeconds;

            this.verifyEmailSendMessage = verifyEmailSendMessage;
            this.verifyTextSendMessage  = verifyTextSendMessage;
            this.verifyCodeFormat       = verifyCodeFormat;
        }