示例#1
0
        public AddMessageWorker()
        {
            dependency = new Dependency();

            serviceProvider = dependency.Dependencies();

            queueClient = serviceProvider.GetRequiredService <IQueueClient>();
            smtpClient  = serviceProvider.GetRequiredService <ISmtp>();
        }
示例#2
0
        public SendSmsWorker()
        {
            encode     = new Encode();
            dependency = new Dependency();

            serviceProvider = dependency.Dependencies();

            queueClient = serviceProvider.GetRequiredService <IQueueClient>();
            smtpClient  = serviceProvider.GetRequiredService <ISmtp>();
        }