Commands: GetKeyAsync
GetKeyAsync is used to retrieve an object stored as a configuration item in RavenFS.
Syntax
Task<T> GetKeyAsync<T>(string key);
Parameters | ||
---|---|---|
key | string | The configuration name |
Return Value | |
---|---|
Task<T> | A task that represents the asynchronous operation. The task result is the deserialized object of type T. |
Example
FileDescription desc = await store
.AsyncFilesCommands
.Configuration
.GetKeyAsync<FileDescription>("descriptions/intro.avi");