TokenReplayCache.AddOrUpdate(String, SecurityToken, DateTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, attempts to add a new entry or update and existing entry.
public:
abstract void AddOrUpdate(System::String ^ key, System::IdentityModel::Tokens::SecurityToken ^ securityToken, DateTime expirationTime);
public abstract void AddOrUpdate (string key, System.IdentityModel.Tokens.SecurityToken securityToken, DateTime expirationTime);
abstract member AddOrUpdate : string * System.IdentityModel.Tokens.SecurityToken * DateTime -> unit
Public MustOverride Sub AddOrUpdate (key As String, securityToken As SecurityToken, expirationTime As DateTime)
Parameters
- key
- String
The key to use when adding the item.
- securityToken
- SecurityToken
The token to add to the cache, can be null
.
- expirationTime
- DateTime
The time at which the entry expires.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.