public StyxHost(Uri location, IHostConfiguration hostConfiguration = null, ILogger logger = null, IBootstrapper bootstrapper = null) { if (location == null) throw new ArgumentNullException("location"); hostConfiguration = hostConfiguration ?? new HostConfiguration(); hostConfiguration.Port = location.Port; hostConfiguration.Scheme = location.Scheme; logger = logger ?? new DebuggerLogger(); bootstrapper = bootstrapper ?? new TinyIoCBootstrapper(hostConfiguration, logger); _hostConfiguration = bootstrapper.HostConfiguration; _logger = bootstrapper.Logger; _engine = bootstrapper.Engine; _routeRegister = bootstrapper.RouteRegister; _listenerSocket = bootstrapper.SocketListener; }
public SecureSocketStyxEngine(ILogger logger, IStyxEngine styxEngine, IHostConfiguration hostConfiguration) { _logger = logger; _styxEngine = styxEngine; _hostConfiguration = hostConfiguration; }