C# Class Junior.Route.Routing.AntiCsrf.NonceRepositories.MemoryCacheNonceRepository

Inheritance: IAntiCsrfNonceRepository
Exibir arquivo Open project: nathan-alden/junior-route

Public Methods

Method Description
AddAsync ( System.Guid sessionId, System.Guid nonce, System.DateTime createdUtcTimestamp, System.DateTime expiresUtcTimestamp ) : System.Threading.Tasks.Task
ExistsAsync ( System.Guid sessionId, System.Guid nonce, System.DateTime currentUtcTimestamp ) : Task
MemoryCacheNonceRepository ( IAntiCsrfConfiguration configuration ) : System

Private Methods

Method Description
GetCacheKey ( System.Guid sessionId, System.Guid nonce ) : string

Method Details

AddAsync() public method

public AddAsync ( System.Guid sessionId, System.Guid nonce, System.DateTime createdUtcTimestamp, System.DateTime expiresUtcTimestamp ) : System.Threading.Tasks.Task
sessionId System.Guid
nonce System.Guid
createdUtcTimestamp System.DateTime
expiresUtcTimestamp System.DateTime
return System.Threading.Tasks.Task

ExistsAsync() public method

public ExistsAsync ( System.Guid sessionId, System.Guid nonce, System.DateTime currentUtcTimestamp ) : Task
sessionId System.Guid
nonce System.Guid
currentUtcTimestamp System.DateTime
return Task

MemoryCacheNonceRepository() public method

public MemoryCacheNonceRepository ( IAntiCsrfConfiguration configuration ) : System
configuration IAntiCsrfConfiguration
return System