I have been working on a nuget-package that helps with sending information to Azure's READ-API. The package itself is done and works great, however I want to add some more optional functionality.In this specific case, I want to send emails when certain milestones are met.
I have made a new project, added my original nuget-package as a reference and went to work with partial classes. While I did succeed in adding some variables and functions, it seems like I cannot change the functionality of the original sendfile method.
I was wondering whether or not it's possible through some other way to either add a function that always executes after the sendfile function, or to change the functionality of it through an extension package?
My searches on the internet have lead me to the Decorator pattern, however this requires you to wrap the original class in another class, which is something I would like to avoid, because I want to make multiple extension packages.