diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs index a7ad4912de..57655ec861 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/WindowsRuntime/WindowsRuntimeMarshal.cs @@ -135,12 +135,6 @@ namespace System.Runtime.InteropServices.WindowsRuntime restTokens = null; } - internal EventRegistrationTokenList(EventRegistrationTokenList list) - { - firstToken = list.firstToken; - restTokens = list.restTokens; - } - // Push a new token into this list // Returns true if you need to copy back this list into the dictionary (so that you // don't lose change outside the dictionary). false otherwise. @@ -1203,42 +1197,6 @@ namespace System.Runtime.InteropServices.WindowsRuntime return activationFactory; } -#if FEATURE_COMINTEROP_WINRT_DESKTOP_HOST - // Currently we use only a single class activator since we have a requirement that all class activations come from the same - // app base and we haven't sorted through the various code sharing implications of spinning up multiple AppDomains. This - // holds the IWinRTClassActivator* that is used for the process - private static IntPtr s_pClassActivator = IntPtr.Zero; - - internal static IntPtr GetClassActivatorForApplication(string appBase) - { - if (s_pClassActivator == IntPtr.Zero) - { - AppDomainSetup hostDomainSetup = new AppDomainSetup() - { - ApplicationBase = appBase, - }; - - AppDomain hostDomain = AppDomain.CreateDomain(Environment.GetResourceString("WinRTHostDomainName", appBase), null, hostDomainSetup); - WinRTClassActivator activator = (WinRTClassActivator)hostDomain.CreateInstanceAndUnwrap(typeof(WinRTClassActivator).Assembly.FullName, typeof(WinRTClassActivator).FullName); - IntPtr pActivator = activator.GetIWinRTClassActivator(); - - if (Interlocked.CompareExchange(ref s_pClassActivator, pActivator, IntPtr.Zero) != IntPtr.Zero) - { - Marshal.Release(pActivator); - activator = null; - - try - { - AppDomain.Unload(hostDomain); - } - catch (CannotUnloadAppDomainException) { } - } - } - - Marshal.AddRef(s_pClassActivator); - return s_pClassActivator; - } -#endif // FEATURE_COMINTEROP_WINRT_DESKTOP_HOST #endif // FEATURE_COMINTEROP_WINRT_MANAGED_ACTIVATION |