How to specify AddIn process names?

I use the Microsoft AddIn Framework to download AddIn collections. I run them in my own process to separate them from the service. I do not like that each AddIn process is displayed as AddInProcess32.exe in the task manager. When using process isolation, how can we rename the name that appears in the task manager so that it describes more for users?

+6
source share
1 answer

Sorry, you canโ€™t.

The file name for this process is hardcoded in the private method GetProcessName (Platform Platform), which is called in the constructor of the System.AddIn.Hosting.AddInProcess class. And System.AddIn.Hosting.AddInProcess is a sealed class, so it cannot be inherited and this method cannot be overridden.

The only way to configure the process name for your add-in is to give up the idea of โ€‹โ€‹using System.AddIn and create your own.

Here is a good list of articles about creating a plugin architecture in C # with lots of examples: Creating a framework in C #: Resources .

+7
source

Source: https://habr.com/ru/post/902878/


All Articles