Example #1
0
        static void Main(string[] args)
        {
            ConfigInjector.InjectDllNameToBL();

            var products  = BusinessLogic.Instance.GetAllProducts();
            var producers = BusinessLogic.Instance.GetAllProducers();

            DisplayAllProducts(products);
            DisplayAllProducers(producers);
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            ConfigInjector.InjectDllNameToBL();

            var products  = BusinessLogic.Instance.GetAllProducts();
            var producers = BusinessLogic.Instance.GetAllProducers();

            Console.WriteLine(products);
        }
Example #3
0
        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}");
                }
            }
        }
Example #4
0
        public MainWindow()
        {
            ConfigInjector.InjectDllNameToBL();

            InitializeComponent();
        }