C# Class Drey.Configuration.Services.PackageService

Inheritance: IPackageService
ファイルを表示 Open project: dealproc/Drey

Public Methods

Method Description
ConnectionFactoryProviders ( ) : string>.IDictionary

Retrieves a list of the System.Data Connection Factory Providers registered in this system.

Dashboard ( string packageId ) : AppletDashboardPmo

Renders a PMO to display the configuration of a package.

Diff ( string packageId, IEnumerable discoveredReleases ) : IEnumerable

Discovers releases that have not been applied to this client.

GetAppSetting ( string packageId, string key ) : AppSettingPmo

Gets the application setting from the repository.

GetConnectionString ( string packageId, string name ) : ConnectionStringPmo

Retrieves the connection string from the repository.

GetPackages ( ) : IEnumerable

Gets a list of packages.

GetReleases ( string packageId ) : IEnumerable

Gets the list of historical releases, for a given package id.

LatestRegisteredReleases ( ) : IEnumerable

Retrieves the list of latest releases registered on the system.

PackageService ( IPackageRepository packageRepository, IConnectionStringRepository connectionStringRepository, IPackageSettingRepository packageSettingRepository, ServiceModel hoardeManager ) : Drey.Configuration.Repositories

Initializes a new instance of the PackageService class.

RecordAppSetting ( ViewModels model ) : void

Records the application setting to the repository.

RecordConnectionString ( ViewModels model ) : void

Stores the connection string to the repository.

RecordReleases ( IEnumerable newReleases ) : void

Stores a list of releases.

RemoveAppSetting ( ViewModels model ) : void

Removes the application setting from the underlying repository.

RemoveConnectionString ( ViewModels model ) : void

Removes the connection string from the underlying repository.

Method Details

ConnectionFactoryProviders() public method

Retrieves a list of the System.Data Connection Factory Providers registered in this system.
public ConnectionFactoryProviders ( ) : string>.IDictionary
return string>.IDictionary

Dashboard() public method

Renders a PMO to display the configuration of a package.
public Dashboard ( string packageId ) : AppletDashboardPmo
packageId string The package identifier.
return Drey.Configuration.Services.ViewModels.AppletDashboardPmo

Diff() public method

Discovers releases that have not been applied to this client.
public Diff ( string packageId, IEnumerable discoveredReleases ) : IEnumerable
packageId string The package identifier.
discoveredReleases IEnumerable The discovered releases.
return IEnumerable

GetAppSetting() public method

Gets the application setting from the repository.
public GetAppSetting ( string packageId, string key ) : AppSettingPmo
packageId string The package identifier.
key string The key.
return Drey.Configuration.Services.ViewModels.AppSettingPmo

GetConnectionString() public method

Retrieves the connection string from the repository.
public GetConnectionString ( string packageId, string name ) : ConnectionStringPmo
packageId string The package identifier.
name string The name.
return Drey.Configuration.Services.ViewModels.ConnectionStringPmo

GetPackages() public method

Gets a list of packages.
public GetPackages ( ) : IEnumerable
return IEnumerable

GetReleases() public method

Gets the list of historical releases, for a given package id.
public GetReleases ( string packageId ) : IEnumerable
packageId string The package identifier.
return IEnumerable

LatestRegisteredReleases() public method

Retrieves the list of latest releases registered on the system.
public LatestRegisteredReleases ( ) : IEnumerable
return IEnumerable

PackageService() public method

Initializes a new instance of the PackageService class.
public PackageService ( IPackageRepository packageRepository, IConnectionStringRepository connectionStringRepository, IPackageSettingRepository packageSettingRepository, ServiceModel hoardeManager ) : Drey.Configuration.Repositories
packageRepository IPackageRepository The package repository.
connectionStringRepository IConnectionStringRepository The connection string repository.
packageSettingRepository IPackageSettingRepository The package setting repository.
hoardeManager ServiceModel
return Drey.Configuration.Repositories

RecordAppSetting() public method

Records the application setting to the repository.
public RecordAppSetting ( ViewModels model ) : void
model ViewModels The model.
return void

RecordConnectionString() public method

Stores the connection string to the repository.
public RecordConnectionString ( ViewModels model ) : void
model ViewModels The model.
return void

RecordReleases() public method

Stores a list of releases.
public RecordReleases ( IEnumerable newReleases ) : void
newReleases IEnumerable The new releases.
return void

RemoveAppSetting() public method

Removes the application setting from the underlying repository.
public RemoveAppSetting ( ViewModels model ) : void
model ViewModels The model.
return void

RemoveConnectionString() public method

Removes the connection string from the underlying repository.
public RemoveConnectionString ( ViewModels model ) : void
model ViewModels The model.
return void