private static async Task TestApiRestFromClient(ServiceProvider provider) { var test = provider.GetService <TestFromApi>(); await test.Execute(); }