C# Class MetroPass.WP8.UI.DataModel.DatabaseInfoRepository

Inheritance: IDatabaseInfoRepository
显示文件 Open project: TheAngryByrd/MetroPass Class Usage Examples

Public Methods

Method Description
DatabaseInfoRepository ( ) : System
DeleteKeyFile ( DatabaseInfo databaseInfo ) : System.Threading.Tasks.Task
GetDatabaseInfo ( string databaseName ) : Task
GetDatabaseInfo ( ) : Task>
GetInfo ( IStorageFolder folder ) : Task
SaveDatabaseFromDatasouce ( string databaseName, string cloudprovider, string cloudPath, Stream database ) : System.Threading.Tasks.Task
SaveInfo ( IStorageFolder folder, Info info ) : System.Threading.Tasks.Task
SaveKeyFileFromDatasouce ( string databaseName, string keyFileName, Stream keyFile ) : System.Threading.Tasks.Task

Private Methods

Method Description
CreateDatabaseInfo ( StorageFolder folder ) : Task
GetDatabaseRoot ( ) : Task
WriteFile ( string fileName, IStorageFolder folder, Stream data ) : System.Threading.Tasks.Task

Method Details

DatabaseInfoRepository() public method

public DatabaseInfoRepository ( ) : System
return System

DeleteKeyFile() public method

public DeleteKeyFile ( DatabaseInfo databaseInfo ) : System.Threading.Tasks.Task
databaseInfo DatabaseInfo
return System.Threading.Tasks.Task

GetDatabaseInfo() public method

public GetDatabaseInfo ( string databaseName ) : Task
databaseName string
return Task

GetDatabaseInfo() public method

public GetDatabaseInfo ( ) : Task>
return Task>

GetInfo() public method

public GetInfo ( IStorageFolder folder ) : Task
folder IStorageFolder
return Task

SaveDatabaseFromDatasouce() public method

public SaveDatabaseFromDatasouce ( string databaseName, string cloudprovider, string cloudPath, Stream database ) : System.Threading.Tasks.Task
databaseName string
cloudprovider string
cloudPath string
database Stream
return System.Threading.Tasks.Task

SaveInfo() public method

public SaveInfo ( IStorageFolder folder, Info info ) : System.Threading.Tasks.Task
folder IStorageFolder
info Info
return System.Threading.Tasks.Task

SaveKeyFileFromDatasouce() public method

public SaveKeyFileFromDatasouce ( string databaseName, string keyFileName, Stream keyFile ) : System.Threading.Tasks.Task
databaseName string
keyFileName string
keyFile Stream
return System.Threading.Tasks.Task