Example #1
0
 public ConnectionListenerHostedService(ILogger <ConnectionListenerHostedService> logger, IOptions <ServerApplicationOptions> options)
 {
     _logger        = logger;
     _serverOptions = options.Value;
 }
Example #2
0
 public ServerApplication(ILogger <ServerApplication> logger, IOptions <ServerApplicationOptions> options)
 {
     _logger        = logger;
     _serverOptions = options.Value;
 }