|
|
@@ -17,13 +17,7 @@ public class RefreshYarp : BackgroundService
|
|
|
|
|
|
var clusters = new List<ClusterConfig>();
|
|
|
var routes = new List<RouteConfig>();
|
|
|
- var services = new ServiceCollection();
|
|
|
- services.AddNacosV2Naming(x =>
|
|
|
- {
|
|
|
- InternalApp.Configuration.GetSection("NacosConfig").Bind(x);
|
|
|
- });
|
|
|
- var sp = services.BuildServiceProvider();
|
|
|
- var naming = sp.GetRequiredService<INacosNamingService>();
|
|
|
+ var naming = App.ServiceProvider.GetRequiredService<INacosNamingService>();
|
|
|
|
|
|
var options = App.OptionsSetting;
|
|
|
foreach(var service in options.Services)
|