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
        }
示例#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
 }
 public static void AddService <T>(BamServer server)
 {
     server.AddCommonService <T>();
 }
示例#4
0
 private static void AddService <T>(BamServer server)
 {
     server.AddCommonService <T>();
 }