C# Класс DataServer.FileStore

Показать файл Открыть проект

Открытые методы

Метод Описание
AppendString ( string p, string fileName, string s ) : void
CreateFolder ( string folder ) : void
Empty ( ) : bool
FileStore ( ) : System
FolderExists ( string folder ) : bool
GetBytes ( string folder, string id, bool hash = false ) : Byte[]
GetLocalUrl ( string folder, string Id, bool hash = false ) : string
GetQueue ( ) : void
GetString ( string folder, string id, bool hash = false ) : Task
GetString ( string id ) : string
HasFile ( string id, bool hash = false ) : bool
HasFile ( string folder, string id, bool hash = false ) : bool
Init ( Service s ) : void
LoadBytesFromWeb ( string url ) : Task
LoadImage ( byte imageData, BaseContent c ) : void
LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
LoadPhoto ( byte imageData ) : BitmapImage
QueueBytes ( string id ) : void
ReadAllLines ( string id ) : string[]
SaveBytes ( string file, Byte image, bool hash = false ) : bool
SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
SaveString ( string folder, string id, string value, bool hash = false ) : bool

Приватные методы

Метод Описание
Copy ( string fileName, string newName ) : void
Delete ( string bck ) : void
FileExists ( string file ) : bool
GetFiles ( string folder, string p ) : List
GetFolders ( string folder ) : List
GetLocalFolder ( ) : string
Move ( string fileName, string newName ) : void

Описание методов

AppendString() публичный Метод

public AppendString ( string p, string fileName, string s ) : void
p string
fileName string
s string
Результат void

CreateFolder() публичный статический Метод

public static CreateFolder ( string folder ) : void
folder string
Результат void

Empty() публичный Метод

public Empty ( ) : bool
Результат bool

FileStore() публичный Метод

public FileStore ( ) : System
Результат System

FolderExists() публичный статический Метод

public static FolderExists ( string folder ) : bool
folder string
Результат bool

GetBytes() публичный Метод

public GetBytes ( string folder, string id, bool hash = false ) : Byte[]
folder string
id string
hash bool
Результат Byte[]

GetLocalUrl() публичный Метод

public GetLocalUrl ( string folder, string Id, bool hash = false ) : string
folder string
Id string
hash bool
Результат string

GetQueue() публичный Метод

public GetQueue ( ) : void
Результат void

GetString() публичный Метод

public GetString ( string folder, string id, bool hash = false ) : Task
folder string
id string
hash bool
Результат Task

GetString() публичный Метод

public GetString ( string id ) : string
id string
Результат string

HasFile() публичный Метод

public HasFile ( string id, bool hash = false ) : bool
id string
hash bool
Результат bool

HasFile() публичный Метод

public HasFile ( string folder, string id, bool hash = false ) : bool
folder string
id string
hash bool
Результат bool

Init() публичный Метод

public Init ( Service s ) : void
s Service
Результат void

LoadBytesFromWeb() публичный статический Метод

public static LoadBytesFromWeb ( string url ) : Task
url string
Результат Task

LoadImage() публичный статический Метод

public static LoadImage ( byte imageData, BaseContent c ) : void
imageData byte
c BaseContent
Результат void

LoadImage() публичный статический Метод

public static LoadImage ( byte imageData, System.Windows.Media.Imaging.BitmapSource &picture ) : void
imageData byte
picture System.Windows.Media.Imaging.BitmapSource
Результат void

LoadPhoto() публичный статический Метод

public static LoadPhoto ( byte imageData ) : BitmapImage
imageData byte
Результат System.Windows.Media.Imaging.BitmapImage

QueueBytes() публичный Метод

public QueueBytes ( string id ) : void
id string
Результат void

ReadAllLines() публичный Метод

public ReadAllLines ( string id ) : string[]
id string
Результат string[]

SaveBytes() публичный Метод

public SaveBytes ( string file, Byte image, bool hash = false ) : bool
file string
image Byte
hash bool
Результат bool

SaveBytes() публичный Метод

public SaveBytes ( string folder, string id, Byte image, bool hash = false ) : bool
folder string
id string
image Byte
hash bool
Результат bool

SaveString() публичный статический Метод

public static SaveString ( string folder, string id, string value, bool hash = false ) : bool
folder string
id string
value string
hash bool
Результат bool