コード例 #1
0
 public OrderPlacedEventConsumer(VerizonSettings verizonSettings,
                                 IPluginFinder pluginFinder,
                                 IOrderService orderService,
                                 ICommonServices services)
 {
     _verizonSettings = verizonSettings;
     _pluginFinder    = pluginFinder;
     _orderService    = orderService;
     _services        = services;
 }
コード例 #2
0
 public VerizonSmsProvider(VerizonSettings verizonSettings,
                           IQueuedEmailService queuedEmailService,
                           IEmailAccountService emailAccountService,
                           ILogger logger,
                           ICommonServices services)
 {
     _verizonSettings     = verizonSettings;
     _queuedEmailService  = queuedEmailService;
     _emailAccountService = emailAccountService;
     _logger   = logger;
     _services = services;
 }
コード例 #3
0
        /// <summary>
        /// Install plugin
        /// </summary>
        public override void Install()
        {
            var settings = new VerizonSettings
            {
                Email = "*****@*****.**",
            };

            _services.Settings.SaveSetting(settings);

            _services.Localization.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }