Skip to content

Commit

Permalink
Merge pull request #44 from maxisoft/dev
Browse files Browse the repository at this point in the history
Fix System.MissingMethodException occurring in trimmed ASF binary
  • Loading branch information
maxisoft authored Nov 7, 2023
2 parents 270eebb + 90e22dd commit febccf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ASFFreeGames/PluginContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal sealed record PluginContext(IReadOnlyCollection<Bot> Bots, IContextRegi
/// </summary>
public CancellationToken CancellationToken => CancellationTokenLazy.Value;

internal Lazy<CancellationToken> CancellationTokenLazy { private get; set; } = new(default(CancellationToken));
internal Lazy<CancellationToken> CancellationTokenLazy { private get; set; } = new(static () => default(CancellationToken));

/// <summary>
/// A struct that implements IDisposable and temporarily changes the cancellation token of the PluginContext instance.
Expand Down

0 comments on commit febccf0

Please sign in to comment.