예제 #1
0
        static void Main(string[] args)
        {
            var services = new ServiceCollection();

            IoCSettings.InitIoC(services);

            var     serviceResolver = services.BuildServiceProvider();
            UserBus userBus         = serviceResolver.GetService <UserBus>();

            userBus?.Start();

            //Console.Write("Press <Enter> to exit... ");
            //while (Console.ReadKey().Key != ConsoleKey.Enter) { }
        }