nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
43 stars 11 forks source link

Support pass host through serviceProvider.GetOptions #400

Closed Kingmidas74 closed 2 years ago

Kingmidas74 commented 2 years ago

I want to pass host and other options like

services.AddNClient(serviceProvider = > { var options = services.GetOptions<NClientOptions>(); return new NClient(options.Host); }