C# Class WebmasterToolsApi.Caching.TokenCache

Mostra file Open project: alexandernyquist/WebmasterToolsApi

Public Methods

Method Description
GetToken ( string path, Func miss ) : string

Retrieves a token stored in a file

WriteToken ( string path, string token ) : void

Writes the token to cache

Method Details

GetToken() public static method

Retrieves a token stored in a file
public static GetToken ( string path, Func miss ) : string
path string Path to the file
miss Func Function invoked on a cache miss
return string

WriteToken() public static method

Writes the token to cache
public static WriteToken ( string path, string token ) : void
path string
token string
return void