![]() |
Nabû 1.0.0
Standardizing .NET developments with abstractions
|
Public Member Functions | |||||||
LocalStorageManager (T storageInfo) | |||||||
async Task | DeleteFile (string id) | ||||||
remove file with provided id
| |||||||
async Task< bool > | IsFileExists (string id) | ||||||
return true if file exists elsewhere return false
| |||||||
async Task< Stream > | ReadFile (string id) | ||||||
read data from file with provided id
| |||||||
async Task | ReadFile (string id, Stream outputStream) | ||||||
read data from file with provided id and wrote it into the output Stream
| |||||||
async Task | WriteFile (string id, Stream data, long length=-1) | ||||||
replace all data for file with provided id with those from the stream
| |||||||
![]() |
Properties | |
T | StorageInfo [get] |
![]() |
async Task Nabu.Storage.Local.LocalStorageManager< T >.DeleteFile | ( | string | id | ) |
async Task< bool > Nabu.Storage.Local.LocalStorageManager< T >.IsFileExists | ( | string | id | ) |
return true if file exists elsewhere return false
id | |
storageInfo |
Implements Nabu.Storage.IStorageManager< T >.
async Task< Stream > Nabu.Storage.Local.LocalStorageManager< T >.ReadFile | ( | string | id | ) |
read data from file with provided id
id |
Implements Nabu.Storage.IStorageManager< T >.
async Task Nabu.Storage.Local.LocalStorageManager< T >.ReadFile | ( | string | id, |
Stream | outputStream ) |
read data from file with provided id and wrote it into the output Stream
id | |
outputStream |
Implements Nabu.Storage.IStorageManager< T >.
async Task Nabu.Storage.Local.LocalStorageManager< T >.WriteFile | ( | string | id, |
Stream | data, | ||
long | length = -1 ) |
replace all data for file with provided id with those from the stream
data | |
id | |
length |
Implements Nabu.Storage.IStorageManager< T >.
|
get |
Implements Nabu.Storage.IStorageManager< T >.