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

Public Member Functions

Task DeleteFile (string id)
 remove file with provided id
 
Task< bool > IsFileExists (string id)
 return true if file exists elsewhere return false
 
Task< Stream > ReadFile (string id)
 read data from file with provided id
 
Task ReadFile (string id, Stream outputStream)
 read data from file with provided id and wrote it into the output Stream
 
Task WriteFile (string id, Stream data, long length=-1)
 replace all data for file with provided id with those from the stream
 

Properties

StorageInfo [get]
 

Member Function Documentation

◆ DeleteFile()

Task Nabu.Storage.IStorageManager< T >.DeleteFile ( string id)

◆ IsFileExists()

Task< bool > Nabu.Storage.IStorageManager< T >.IsFileExists ( string id)

return true if file exists elsewhere return false

Parameters
id
storageInfo
Returns

Implemented in Nabu.Storage.LiteDb.LiteDbStorageManager< T >, Nabu.Storage.Local.LocalStorageManager< T >, and Nabu.Storage.Minio.MinioStorageManager< T >.

◆ ReadFile() [1/2]

Task< Stream > Nabu.Storage.IStorageManager< T >.ReadFile ( string id)

◆ ReadFile() [2/2]

Task Nabu.Storage.IStorageManager< T >.ReadFile ( string id,
Stream outputStream )

read data from file with provided id and wrote it into the output Stream

Parameters
id
outputStream
Returns

Implemented in Nabu.Storage.LiteDb.LiteDbStorageManager< T >, Nabu.Storage.Local.LocalStorageManager< T >, and Nabu.Storage.Minio.MinioStorageManager< T >.

◆ WriteFile()

Task Nabu.Storage.IStorageManager< 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

Implemented in Nabu.Storage.LiteDb.LiteDbStorageManager< T >, Nabu.Storage.Local.LocalStorageManager< T >, and Nabu.Storage.Minio.MinioStorageManager< T >.

Property Documentation

◆ StorageInfo