public OrderPlacedEventConsumer(VerizonSettings verizonSettings, IPluginFinder pluginFinder, IOrderService orderService) { this._verizonSettings = verizonSettings; this._pluginFinder = pluginFinder; this._orderService = orderService; }
public SmsVerizonController(VerizonSettings verizonSettings, ISettingService settingService, IPluginFinder pluginFinder, ILocalizationService localizationService) { this._verizonSettings = verizonSettings; this._settingService = settingService; this._pluginFinder = pluginFinder; this._localizationService = localizationService; }
public VerizonSmsProvider(VerizonSettings verizonSettings, IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService, ILogger logger, ISettingService settingService, IStoreContext storeContext, EmailAccountSettings emailAccountSettings) { this._verizonSettings = verizonSettings; this._queuedEmailService = queuedEmailService; this._emailAccountService = emailAccountService; this._logger = logger; this._settingService = settingService; this._storeContext = storeContext; this._emailAccountSettings = emailAccountSettings; }
/// <summary> /// Install plugin /// </summary> public override void Install() { //settings var settings = new VerizonSettings() { Email = "*****@*****.**", }; _settingService.SaveSetting(settings); //locales this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestFailed", "Test message sending failed"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.TestSuccess", "Test message was sent (queued)"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled", "Enabled"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Enabled.Hint", "Check to enable SMS provider"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email", "Email"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.Email.Hint", "Verizon email address(e.g. [email protected])"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage", "Message text"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.Fields.TestMessage.Hint", "Text of the test message"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest", "Send"); this.AddOrUpdatePluginLocaleResource("Plugins.Sms.Verizon.SendTest.Hint", "Send test message"); base.Install(); }