-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
@edward-a commented on Wed Jan 22 2020
We weren't able to migrate our WPF app to .NET Core 3.1 because MutexRights wasn't available. Hope it gets implemented soon.
Unsupported (per Portability Analyzer):
M:System.Threading.Mutex.TryOpenExisting(System.String,System.Security.AccessControl.MutexRights,System.Threading.Mutex@)
@weltkante commented on Thu Jan 23 2020
This requests is not WPF-specific and probably belongs to corefx (now in the dotnet/runtime repo)
That said as far as I can tell MutexRights still exists and is public. The TryOpenExisting method seems to have moved and the functionality now be covered by MutexAcl.Create or Mutex.OpenExisting if you don't need the rights check and just want to open a cross process mutex.
@edward-a commented on Thu Jan 23 2020
This requests is not WPF-specific and probably belongs to corefx (now in the dotnet/runtime repo)
That said as far as I can tell
MutexRightsstill exists and is public. TheTryOpenExistingmethod seems to have moved and the functionality now be covered byMutexAcl.CreateorMutex.OpenExistingif you don't need the rights check and just want to open a cross process mutex.
I posted this feature request here because it was related to migrating WPF app to .NET Core.
As for MutexRights, it's not there and we need to specify MutexRights.Synchronize.