Esempio n. 1
0
 public HtcServer(HtcServerOptions serverOptions)
 {
     ServerOptions     = serverOptions;
     HtcLogger         = new HtcLogger(Logger);
     ConnectionManager = new ConnectionManager(HtcLogger, ServerOptions.Limits.MaxConcurrentUpgradedConnections);
     HeartbeatManager  = new HeartbeatManager(ConnectionManager);
     Heartbeat         = new Heartbeat(new IHeartbeatHandler[] { dateHeaderValueManager, heartbeatManager }, new SystemClock(), DebuggerWrapper.Singleton, trace);
     HttpCharacters.Initialize();
 }
Esempio n. 2
0
 internal HtcConfigurationLoader(HtcServerOptions options)
 {
     Options = options ?? throw new ArgumentNullException(nameof(options));
 }