public static void SetCounterRefValue(IntPtr counterInstanceHandle, int id, IntPtr counterAddress) { #if !DotNetCoreClrLinux Utility.WrapNativeSyncInvokeInMTA(() => { NativeCommon.FabricPerfCounterSetPerformanceCounterRefValue(counterInstanceHandle, id, counterAddress); }, "PerformanceCountersInterop.SetCounterRefValue"); #endif }