Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.Title = "Test";

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

            Console.ReadLine();
        }
Exemplo n.º 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();
        }