static void Main(string[] args) { ConfigInjector.InjectDllNameToBL(); var products = BusinessLogic.Instance.GetAllProducts(); var producers = BusinessLogic.Instance.GetAllProducers(); DisplayAllProducts(products); DisplayAllProducers(producers); }
public MainWindow() { InitializeComponent(); ConfigInjector.InjectDllNameToBL(); var products = BusinessLogic.Instance.GetAllProducts(); var producers = BusinessLogic.Instance.GetAllProducers(); Console.WriteLine(products); }
internal void ReloadConfigs() { var injector = new ConfigInjector(); foreach (var context in _contexts) { injector.Process(context); } foreach (var plugin in _plugins) { try { plugin.Translation.ReloadTranslations(); plugin.ReloadConfigs(); } catch (Exception e) { SynapseController.Server.Logger.Error($"Synapse-Loader: {plugin.Information.Name} Reload Config failed!!\n{e}"); } } }
public MainWindow() { ConfigInjector.InjectDllNameToBL(); InitializeComponent(); }