Class ServiceDiscovey
Service discovery background service.
Namespace: Neon.SignalR
Assembly: Neon.SignalR.dll
Syntax
public class ServiceDiscovey : BackgroundService
Constructors
ServiceDiscovey(ProxyConfig, IDnsCache, ILookupClient, ILogger<ServiceDiscovey>)
Constructor.
Declaration
public ServiceDiscovey(ProxyConfig config, IDnsCache dnsCache, ILookupClient lookupClient, ILogger<ServiceDiscovey> logger = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ProxyConfig | config | |
| IDnsCache | dnsCache | |
| ILookupClient | lookupClient | |
| ILogger<ServiceDiscovey> | logger |
Methods
ExecuteAsync(CancellationToken)
Executes the service.
Declaration
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | stoppingToken |
Returns
| Type | Description |
|---|---|
| Task |