public void DisableThreadComObjectEagerCleanupTest() { if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { return; } OcDispatcher dispatcher = new OcDispatcher(); dispatcher.DisableThreadComObjectEagerCleanup(); dispatcher.Dispose(); }