renegadexx / T4.Helper

28 stars 25 forks source link

Obtain RCW #20

Closed Christopher-St closed 3 years ago

Christopher-St commented 6 years ago

GetService acquires a proxy through IServiceProvider, and causes serialization issues across app domain. For example, attempting to write to active VS Window through the DTE object creates exception.

The GetCOMService extension method returns RCW to marshal calls to the DTE COM object, and is the recommended method by Microsoft.