public async Task InitAsync() { foreach (var service in ProxiedServices) { await service.InitAsync(); } IRuntime runtime = container.Resolve <IRuntime>(); var context = runtime.CreateChildConfigurationContext("Commands"); await configuration.LoadAsync(context, new CommandProviderProxyConfig()); }
public void Init() { foreach (var service in ProxiedServices) { service.Init(); } IRuntime runtime = container.Resolve <IRuntime>(); var context = runtime.CreateChildConfigurationContext("Commands"); configuration.Load(context, new CommandProviderProxyConfig()); }