예제 #1
0
        public Class1()
        {
            _databaseCore = new DatabaseCore();

            var serviceCollection = new ServiceCollection();

            _databaseCore.OnResourceStartHandler(() =>
            {
                _serviceProvider = serviceCollection
                                   .AddSingleton(ContextFactory.Instance)
                                   .BuildServiceProvider();
                LoadServices();
            });
        }