generated from JustArchiNET/ASF-PluginTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor PluginContext and SaveOptions methods
This commit makes the following changes: - Change the PluginContext from a readonly record struct to a sealed record class - Add a CancellationTokenChanger struct that implements IDisposable and temporarily changes the cancellation token of the PluginContext instance - Add a TemporaryChangeCancellationToken method that creates an instance of the CancellationTokenChanger struct - Change the SaveOptions method to return a string and use the TemporaryChangeCancellationToken method - Change the CollectGamesOnClock method to use the TemporaryChangeCancellationToken method - Add XML documentation comments to the PluginContext and its members
- Loading branch information
Showing
2 changed files
with
71 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters