Skip to content

Commit

Permalink
* Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Apr 18, 2022
1 parent 2b36f9a commit 9d23a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Install-Package deadlock-dotnet-sdk
To find all the `FileLocker` objects that are locking a file, you can make use of the `FindLockingProcesses` method:
```c#
string path = @"C:\...\file.txt";
var lockers = DeadLock.FindLockingProcesses(path);
List<FileLocker> lockers = DeadLock.FindLockingProcesses(path);
```

You can also run the code asynchronously by calling the `FindLockingProcessesAsync` method`:
```c#
string path = @"C:\...\file.txt";
var lockers = await DeadLock.FindLockingProcessesAsync(path);
List<FileLocker> lockers = await DeadLock.FindLockingProcessesAsync(path);
```

### Unlocking a file
Expand Down

0 comments on commit 9d23a61

Please sign in to comment.