public PurchaseController(DefaultConfigProvider provider, ILogger <PurchaseController> logger, EmailBodyBuilder messageBuilder) { this.provider = provider; this._logger = logger; this._messageBuilder = messageBuilder; }
private static void Run() { ConfigureLogging(); string baseDir = AppDomain.CurrentDomain.BaseDirectory; var catalog = new AggregateCatalog(); catalog.Catalogs.Add(new DirectoryCatalog(baseDir)); string path = System.IO.Path.Combine(baseDir, "config.json"); var provider = new DefaultConfigProvider(path); var container = new CompositionContainer(catalog); var manager = container.GetExportedValue<PluginManager>(); var pluginHost = container.GetExportedValue<IPluginHost>(); var collectd = new Collectd(provider, manager, pluginHost); collectd.Init(); collectd.RunLoops(); collectd.Shutdown(); }