-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wip] add cancellation token support (#1242)
* add cancellation token support * suggestion from JM * update xml comments
- Loading branch information
Showing
7 changed files
with
218 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
src/Microsoft.Identity.Web/TokenCacheProviders/CacheSerializerHints.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System.Threading; | ||
|
||
namespace Microsoft.Identity.Web.TokenCacheProviders | ||
{ | ||
/// <summary> | ||
/// Set of properties that the token cache serialization implementations might use to optimize the cache. | ||
/// </summary> | ||
public class CacheSerializerHints | ||
{ | ||
/// <summary> | ||
/// CancellationToken enabling cooperative cancellation between threads, thread pool, or Task objects. | ||
/// </summary> | ||
public CancellationToken CancellationToken { get; set; } | ||
} | ||
} |
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
Oops, something went wrong.