Host constructor

Host(
  1. ServiceProvider services,
  2. HostApplicationLifetime applicationLifetime,
  3. Logger logger,
  4. HostLifetime hostLifetime,
  5. Options<HostOptions> options,
)

Implementation

Host(
  ServiceProvider services,
  HostApplicationLifetime applicationLifetime,
  Logger logger,
  HostLifetime hostLifetime,
  Options<HostOptions> options,
)   : _services = services,
      _applicationLifetime = applicationLifetime as ApplicationLifetime,
      _logger = logger,
      _hostLifetime = hostLifetime,
      _options = options.value!;