Nabû 1.0.0
Standardizing .NET developments with abstractions
Nabu.Storage.Local.LocalStorageManager< T > Class Template Reference
+ Inheritance diagram for Nabu.Storage.Local.LocalStorageManager< T >:

Public Member Functions

 LocalStorageManager (T storageInfo)
 
async Task DeleteFile (string id)
 remove file with provided id
Parameters
id
Returns

 
async Task< bool > IsFileExists (string id)
 return true if file exists elsewhere return false
Parameters
id
storageInfo
Returns

 
async Task< Stream > ReadFile (string id)
 read data from file with provided id
Parameters
id
Returns

 
async Task ReadFile (string id, Stream outputStream)
 read data from file with provided id and wrote it into the output Stream
Parameters
id
outputStream
Returns

 
async Task WriteFile (string id, Stream data, long length=-1)
 replace all data for file with provided id with those from the stream
Parameters
data
id
length
Returns

 
- Public Member Functions inherited from Nabu.Storage.IStorageManager< T >

Properties

StorageInfo [get]
 
- Properties inherited from Nabu.Storage.IStorageManager< T >

Member Function Documentation

◆ DeleteFile()

async Task Nabu.Storage.Local.LocalStorageManager< T >.DeleteFile ( string id)

remove file with provided id

Parameters
id
Returns

Implements Nabu.Storage.IStorageManager< T >.

◆ IsFileExists()

async Task< bool > Nabu.Storage.Local.LocalStorageManager< T >.IsFileExists ( string id)

return true if file exists elsewhere return false

Parameters
id
storageInfo
Returns

Implements Nabu.Storage.IStorageManager< T >.

◆ ReadFile() [1/2]

async Task< Stream > Nabu.Storage.Local.LocalStorageManager< T >.ReadFile ( string id)

read data from file with provided id

Parameters
id
Returns

Implements Nabu.Storage.IStorageManager< T >.

◆ ReadFile() [2/2]

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

Parameters
id
outputStream
Returns

Implements Nabu.Storage.IStorageManager< T >.

◆ WriteFile()

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

Parameters
data
id
length
Returns

Implements Nabu.Storage.IStorageManager< T >.

Property Documentation

◆ StorageInfo