C# Class Unipluss.TransactionService.DAL.MvaTokenRepository

Inheritance: IMvaTokenRepository
ファイルを表示 Open project: unipluss/invoicetransactions Class Usage Examples

Private Properties

Property Type Description
FillCacheAsync System.Threading.Tasks.Task
TryGetTokenFromCache bool

Public Methods

Method Description
AddMvaToken ( MvaToken mvaToken ) : MvaToken
DeleteMvaToken ( int mvanumber ) : void
EnsureStorageCreated ( ) : System.Threading.Tasks.Task
GenerateNewKey ( ) : string
GetAllMvaTokens ( ) : IEnumerable
GetAllMvaTokensAsync ( ) : Task>
GetTokenForMvaNumber ( int mvanumber ) : string

First tries to load token from cache. If cache is not available, a query is done directly to table storage.

Private Methods

Method Description
FillCacheAsync ( ) : System.Threading.Tasks.Task
TryGetTokenFromCache ( int mvanumber, string &token ) : bool

Method Details

AddMvaToken() public method

public AddMvaToken ( MvaToken mvaToken ) : MvaToken
mvaToken MvaToken
return MvaToken

DeleteMvaToken() public method

public DeleteMvaToken ( int mvanumber ) : void
mvanumber int
return void

EnsureStorageCreated() public method

public EnsureStorageCreated ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

GenerateNewKey() public static method

public static GenerateNewKey ( ) : string
return string

GetAllMvaTokens() public method

public GetAllMvaTokens ( ) : IEnumerable
return IEnumerable

GetAllMvaTokensAsync() public method

public GetAllMvaTokensAsync ( ) : Task>
return Task>

GetTokenForMvaNumber() public method

First tries to load token from cache. If cache is not available, a query is done directly to table storage.
public GetTokenForMvaNumber ( int mvanumber ) : string
mvanumber int
return string