C# Class VelocityDBExtensions.AzureSession

Prototype for using Windows Azure API and Steams directly. Currently running into Stream related issues. Possibly related to positioning within stream not always working correctly Instead of using AzureSession, use other session classes with shared Azure drive See https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/ example : net use z: \\samples.file.core.windows.net\logs /u:samples
Inheritance: SessionNoServer
Mostrar archivo Open project: VelocityDB/VelocityDB Class Usage Examples

Public Methods

Method Description
AzureSession ( string connectionString, string shareName, string systemDir, int waitForLockMilliseconds = 5000, bool optimisticLocking = true, bool enableCache = true, CacheEnum objectCachingDefaultPolicy = CacheEnum.Yes ) : Microsoft.WindowsAzure.Storage
ContainsDatabase ( DatabaseLocation location, UInt32 dbNum, string extension = ".odb" ) : bool
CreateDirectory ( string path ) : bool
DatabaseStillExist ( Database db ) : bool
DeleteFile ( FileInfo fileInfo ) : void
FileOpen ( Database db, FileAccess fileAccess, string &errorMessage, FileMode fileMode = FileMode.Open, bool excusiveAccess = false, int waitOverride = -1, bool signalError = true ) : Stream
FileOpen ( FileInfo fileInfo, FileAccess fileAccess, string &errorMessage, FileShare fileShare, FileMode fileMode, int waitForLockMilliseconds, bool useExternalStorage, bool signalError = true ) : Stream
OpenAllDatabases ( bool update = false ) : List

Protected Methods

Method Description
MoveFile ( Database db, string newPath ) : void
reopenDatabaseForUpdate ( Database dbReadOnly, Schema schema, bool &updated, bool forceReplace = false ) : Database

Method Details

AzureSession() public method

public AzureSession ( string connectionString, string shareName, string systemDir, int waitForLockMilliseconds = 5000, bool optimisticLocking = true, bool enableCache = true, CacheEnum objectCachingDefaultPolicy = CacheEnum.Yes ) : Microsoft.WindowsAzure.Storage
connectionString string
shareName string
systemDir string
waitForLockMilliseconds int
optimisticLocking bool
enableCache bool
objectCachingDefaultPolicy CacheEnum
return Microsoft.WindowsAzure.Storage

ContainsDatabase() public method

public ContainsDatabase ( DatabaseLocation location, UInt32 dbNum, string extension = ".odb" ) : bool
location DatabaseLocation
dbNum System.UInt32
extension string
return bool

CreateDirectory() public method

public CreateDirectory ( string path ) : bool
path string
return bool

DatabaseStillExist() public method

public DatabaseStillExist ( Database db ) : bool
db Database
return bool

DeleteFile() public method

public DeleteFile ( FileInfo fileInfo ) : void
fileInfo System.IO.FileInfo
return void

FileOpen() public method

public FileOpen ( Database db, FileAccess fileAccess, string &errorMessage, FileMode fileMode = FileMode.Open, bool excusiveAccess = false, int waitOverride = -1, bool signalError = true ) : Stream
db Database
fileAccess FileAccess
errorMessage string
fileMode FileMode
excusiveAccess bool
waitOverride int
signalError bool
return Stream

FileOpen() public method

public FileOpen ( FileInfo fileInfo, FileAccess fileAccess, string &errorMessage, FileShare fileShare, FileMode fileMode, int waitForLockMilliseconds, bool useExternalStorage, bool signalError = true ) : Stream
fileInfo System.IO.FileInfo
fileAccess FileAccess
errorMessage string
fileShare FileShare
fileMode FileMode
waitForLockMilliseconds int
useExternalStorage bool
signalError bool
return Stream

MoveFile() protected method

protected MoveFile ( Database db, string newPath ) : void
db Database
newPath string
return void

OpenAllDatabases() public method

public OpenAllDatabases ( bool update = false ) : List
update bool
return List

reopenDatabaseForUpdate() protected method

protected reopenDatabaseForUpdate ( Database dbReadOnly, Schema schema, bool &updated, bool forceReplace = false ) : Database
dbReadOnly Database
schema Schema
updated bool
forceReplace bool
return Database