Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to tell self-created NuGet package that something changed in application?

$
0
0

We have created a simple NuGet Package which wraps our most used Request functions ( basically sending API-Requests with HttpClient) so we do not have to implement them in each project again. We use a class called RequestService, which handles the requests and holds the instance of HttpClient. Now in one app, I can set my API-URL dynamically in the settings, so I want to tell the RequestService that there were some changes in the config of the HttpClient.

I thought of raising an event at the time the settings are changed, but as the RequestService NuGet does not know about the app, it seems to be not the cleanest solution for me. Is there a nice solution on how to tell a NuGet package that there has something changed in my code?


Viewing all articles
Browse latest Browse all 3067

Trending Articles