C# Class Microsoft.HockeyApp.Channel.Storage

Inheritance: BaseStorageService
Afficher le fichier Open project: bitstadium/HockeySDK-Windows

Private Properties

Свойство Type Description
CheckAccessPermissions void
Delete void
DeleteObsoleteFiles void
EnqueueAsync Task
GetApplicationFolder System.IO.DirectoryInfo
GetApplicationIdentity string
GetFiles IEnumerable
GetSHA1Hash string
Init void
IsStorageLimitsReached bool
LoadTransmissionFromFileAsync Task
Peek StorageTransmission
SaveTransmissionToFileAsync Task

Private Methods

Méthode Description
CheckAccessPermissions ( DirectoryInfo telemetryDirectory ) : void
Delete ( StorageTransmission item ) : void
DeleteObsoleteFiles ( ) : void

Enqueue is saving a transmission to a tmp file and after a successful write operation it renames it to a trn file. A file without a trn extension is ignored by Storage.Peek(), so if a process is taken down before rename happens it will stay on the disk forever. This method deletes files with the tmp extension that exists on disk for more than 5 minutes.

EnqueueAsync ( Transmission transmission ) : Task
GetApplicationFolder ( ) : DirectoryInfo
GetApplicationIdentity ( ) : string
GetFiles ( string filter ) : IEnumerable

Get files from storageFolder.

GetSHA1Hash ( string input ) : string
Init ( string uniqueFolderName ) : void
IsStorageLimitsReached ( ) : bool
LoadTransmissionFromFileAsync ( FileInfo file ) : Task
Peek ( ) : StorageTransmission

Reads an item from the storage. Order is Last-In-First-Out. When the Transmission is no longer needed (it was either sent or failed with a non-retriable error) it should be disposed.

SaveTransmissionToFileAsync ( Transmission transmission, string fileFullName ) : Task