Very inexperienced with Asp.Net, and I have a class that I want to be able to instantiate and use across some controllers, and I'm not really sure how to get arguments to my constructor.
I have a data type that I would like to use as a service called Watcher which has a constructor signature of Watcher(string _path, bool _DeletionPolicy = false) this provides a path to watch files, and sets the default deletion policy. (False is do nothing after expiration, a file "expires" after 90 days.)
I understand that I need to register the service with MVC in ConfigureServices(), but how would I go about instantiating those two (or one required) parameter?