Exemplo n.º 1
0
 public static ServiceProxyServer Serve <T>(this T service, HostPrefix[] hostPrefixes, ILogger logger = null, BamConf conf = null)
 {
     CoreServices.ServiceRegistry reg = new CoreServices.ServiceRegistry();
     reg.For <T>().Use(service);
     return(reg.Serve(hostPrefixes, logger, conf));
 }
Exemplo n.º 2
0
 public static ServiceProxyServer Serve <T>(this T service, ILogger logger = null, string hostName = "localhost", int port = 8080, bool ssl = false, BamConf conf = null) where T : ProxyableService
 {
     CoreServices.ServiceRegistry reg = new CoreServices.ServiceRegistry();
     reg.For <T>().Use(service);
     return(reg.Serve(logger, hostName, port, ssl, conf));
 }