This utility is mostly meant for the Veeam Software recruiting process. This program monitors a process that has been specified using a command line argument and kills the process, if it has lived for a specified certain amount of time (in minutes).
Open command prompt after publishing the application and open the .exe path.
Process name: the name of the program or application to be checked for
Maximum length: maximum length of the program's running time in minutes
Frequency: how often to check for specified process in minutes
Run the app by using the executable: WinProcessMonitor.exe [process name] [maximum length] [frequency]
Run the app by using the dotnet command: dotnet WinProcessMonitor.dll [process name] [maximum length] [frequency]
an example by using the executable: WinProcessMonitor.exe notepad 5 1