Will the following IOC registration work with static extension calls to Flurl? The switch to injecting FlurlClient
is project wide, so I'm wondering if there is a way to register the MyFlurlClientFactory
by IOC
services.AddSingleton<IHttpClientFactory, MyFlurlClientFactory>();
Sample static extension call to Flurl.
string text = await "http://example.com/readme.txt".GetStringAsync();