예제 #1
0
        private void ScheduleOtpText(string phoneNumber, string otp)
        {
            var message = new StringBuilder();

            message.AppendLine($"Monivault OTP: {otp}");

            var smsJobArg = new SmsJobArgs
            {
                Message   = message.ToString(),
                Recipient = phoneNumber
            };

            _backgroundJobManager.EnqueueAsync <SmsJob, SmsJobArgs>(smsJobArg);
        }
예제 #2
0
        private void ScheduleWelcomeText(string phoneNumber, string accountIdentity)
        {
            var message = new StringBuilder();

            message.AppendLine("Welcome to Monivault.");
            message.AppendLine($"Your Account ID is {accountIdentity}.");

            Logger.Info($"user phone number: {phoneNumber}");

            var smsJobArg = new SmsJobArgs
            {
                Message   = message.ToString(),
                Recipient = phoneNumber
            };

            _backgroundJobManager.EnqueueAsync <SmsJob, SmsJobArgs>(smsJobArg);
        }