Ejemplo n.º 1
0
        public static void StartTestServer <T1, T2>(out string baseAddress, out BamServer server)
        {
            InjectTestConfiguration();
            // Test server to catch calls
            CreateServer(out baseAddress, out server);
            server.AddCommonService <T1>();
            server.AddCommonService <T2>();

            server.Start(true);
            // /end- Test server to catch calls
        }
Ejemplo n.º 2
0
 private static void StartTestServer <T>(ILogger logger, out string baseAddress, out BamServer server)
 {
     InjectTestConfiguration();
     // Test server to catch calls
     CreateServer(out baseAddress, out server);
     server.MainLogger = logger;
     server.AddCommonService <T>();
     Servers.Add(server);
     server.Start();
     // /end- Test server to catch calls
 }
Ejemplo n.º 3
0
 public static void AddService <T>(BamServer server)
 {
     server.AddCommonService <T>();
 }
Ejemplo n.º 4
0
 private static void AddService <T>(BamServer server)
 {
     server.AddCommonService <T>();
 }