internal HostBuilder(int port, ServerBuilder parent) { builder = parent; Result = new SimpleServerHost(); Result.Endpoint = new SimpleServerEndpoint { Scope = IPAddress.Loopback, Port = port }; }
public HandlerManager With(SimpleServerHost host, params IHandler[] handlers) { foreach (var handler in handlers) { Add(host, handler); } return(this); }
public SimpleServerHost GetWildcardHost() { SimpleServerHost result = null; Hosts.ForEach(x => { if (x.FQDN == "*" || x.AliasFQDNs.Contains("*")) { result = x; } }); return(result); }
public void Add(SimpleServerHost host, IHandler handler) { handlers.Add(handler); }
internal static ILog GetLogger(SimpleServerHost host) { SimpleServer.Initialize(); return(new Log(host.FQDN)); }