Skip to content

Instantly share code, notes, and snippets.

View norritt's full-sized avatar
🎯
Focusing

Alexey norritt

🎯
Focusing
View GitHub Profile
// Originally refit is used:
// services
// .AddRefitClient<ISomething>(settingsFactory)) // we need settings factory for custom JsonSerializers
// .ConfigureHttpClient(
// (providers, client) =>
// {
// var endpoints = providers.GetRequiredService<IOptions<TOptions>>();
// client.BaseAddress = new Uri(urlExtractor(endpoints.Value));
// });
// and that stuff you should write for every interface even if they are on same server. boring