Skip to content

Static method Mutex.TryOpenExisting(String, MutexRights, Mutex) is not available in .NET Core #2117

@gomathip02

Description

@gomathip02

@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 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.

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions