public AddMessageWorker() { dependency = new Dependency(); serviceProvider = dependency.Dependencies(); queueClient = serviceProvider.GetRequiredService <IQueueClient>(); smtpClient = serviceProvider.GetRequiredService <ISmtp>(); }
public SendSmsWorker() { encode = new Encode(); dependency = new Dependency(); serviceProvider = dependency.Dependencies(); queueClient = serviceProvider.GetRequiredService <IQueueClient>(); smtpClient = serviceProvider.GetRequiredService <ISmtp>(); }