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
Show file Open project: dealproc/Drey Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
DownloadAndExtractRelease ( HttpClient webClient, DataModel releaseToDownload ) : Task
executePollingLoop ( ) : void

Method Details

Dispose() public method

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

Dispose() protected method

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.
return void

ReleasesPollingClient() public method

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.
return Drey.Logging

Start() public method

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