public async Task StopAsync(CancellationToken cancellationToken) { if (!UraganoSettings.IsDevelopment) { await ServiceDiscovery.DeregisterAsync(UraganoSettings.ServiceDiscoveryClientConfiguration, UraganoSettings.ServiceRegisterConfiguration.Id, cancellationToken); } }
public async Task StopAsync(CancellationToken cancellationToken) { if (ServerSettings == null) { return; } await ServiceDiscovery.DeregisterAsync(); }