Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/MappedFileQueues/CrossPlatformProcessLock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
private class MutexProcessLock(string name) : IProcessLock
{
private Mutex? _mutex;

// Global\ Make the mutex available across sessions
private readonly string _name = $@"Global\{name}";

Expand Down Expand Up @@ -90,7 +91,7 @@
{
_lockFileStream = new FileStream(lockFilePath, FileMode.OpenOrCreate,
FileAccess.ReadWrite, FileShare.ReadWrite);
_lockFileStream.Lock(0, 0);

Check warning on line 94 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Lock(long, long)' is unsupported on: 'macOS/OSX'.

Check warning on line 94 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Lock(long, long)' is unsupported on: 'macOS/OSX'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 94 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Lock(long, long)' is unsupported on: 'macOS/OSX'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
return;
}
catch (IOException)
Expand All @@ -103,7 +104,7 @@

public void Release()
{
_lockFileStream?.Unlock(0, 0);

Check warning on line 107 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Unlock(long, long)' is unsupported on: 'macOS/OSX'.

Check warning on line 107 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Unlock(long, long)' is unsupported on: 'macOS/OSX'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 107 in src/MappedFileQueues/CrossPlatformProcessLock.cs

View workflow job for this annotation

GitHub Actions / dotnet-build

This call site is reachable on all platforms. 'FileStream.Unlock(long, long)' is unsupported on: 'macOS/OSX'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
_lockFileStream?.Dispose();
}

Expand Down
Loading