示例#1
0
        static void Main(string[] args)
        {
            Console.Title = "Test";

            RunContainer.Build <TestService>(config, builder =>
            {
                builder.AddSingleton <ClientService>();
            });

            Console.ReadLine();
        }
示例#2
0
        static void Main(string[] args)
        {
            Console.Title = "Gateway";

            RunContainer.Build <GatewayService>(config, builder =>
            {
                builder.AddSingleton <ServerService>();
                builder.AddSingleton <GatewayHandler>();
                builder.AddSingleton <CrypterService>();
                builder.AddSingleton <MapperService>();
            });

            Console.ReadLine();
        }