C# Class Drey.Configuration.ServiceModel.ReleasesPollingClient

Manages resolving updated versions of installed packages, downloads them, and signals to the runtime to reload the package at the current release level.
Inheritance: IPollingClient, IDisposable
Afficher le fichier Open project: dealproc/Drey Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ReleasesPollingClient ( string packageId, Infrastructure dbConfigurationSettingsFactory, INutConfiguration configurationManager, Services globalSettingsService, Services packageService, IEventBus eventBus ) : Drey.Logging

Initializes a new instance of the ReleasesPollingClient class.

Start ( CancellationToken ct ) : void

Starts the polling client and query for updated releases.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Méthode Description
DownloadAndExtractRelease ( HttpClient webClient, DataModel releaseToDownload ) : Task
executePollingLoop ( ) : void

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

ReleasesPollingClient() public méthode

Initializes a new instance of the ReleasesPollingClient class.
public ReleasesPollingClient ( string packageId, Infrastructure dbConfigurationSettingsFactory, INutConfiguration configurationManager, Services globalSettingsService, Services packageService, IEventBus eventBus ) : Drey.Logging
packageId string The package identifier.
dbConfigurationSettingsFactory Infrastructure The database configuration settings factory.
configurationManager INutConfiguration The configuration manager.
globalSettingsService Services The global settings service.
packageService Services The package service.
eventBus IEventBus The event bus.
Résultat Drey.Logging

Start() public méthode

Starts the polling client and query for updated releases.
public Start ( CancellationToken ct ) : void
ct System.Threading.CancellationToken The ct.
Résultat void