C# Class Drey.Configuration.Services.GlobalSettingsService

Inheritance: System.MarshalByRefObject, IGlobalSettingsService
Afficher le fichier Open project: dealproc/Drey

Méthodes publiques

Méthode Description
GetCertificate ( ) : X509Certificate2

Gets the certificate from the Global Settings store.

GetHttpClient ( ) : HttpClient

Manufacturers an Http Client with default values.

GetServerHostname ( ) : ServerHostnamePmo

Gets the server hostname from the Global Settings store.

GlobalSettingsService ( IGlobalSettingsRepository globalSettingsRepository ) : Drey.Configuration.Repositories

Initializes a new instance of the GlobalSettingsService class.

HasValidSettings ( ) : bool

Determines whether the global settings are valid or not.

StoreSettings ( ViewModels settings ) : bool

Stores the initial settings in the Global Settings store. This method should only be used for a new deployment. Updates to settings should be done via the UpdateServerHostname/UpdateSSLCertificate method(s)

UpdateClientCertificate ( byte cert ) : void

Updates the SSL certificate in the Global Settings store.

UpdateHostDetails ( ViewModels pmo ) : void

Updates the server hostname in the Global Settings store.

Method Details

GetCertificate() public méthode

Gets the certificate from the Global Settings store.
public GetCertificate ( ) : X509Certificate2
Résultat System.Security.Cryptography.X509Certificates.X509Certificate2

GetHttpClient() public méthode

Manufacturers an Http Client with default values.
public GetHttpClient ( ) : HttpClient
Résultat System.Net.Http.HttpClient

GetServerHostname() public méthode

Gets the server hostname from the Global Settings store.
public GetServerHostname ( ) : ServerHostnamePmo
Résultat Drey.Configuration.Services.ViewModels.ServerHostnamePmo

GlobalSettingsService() public méthode

Initializes a new instance of the GlobalSettingsService class.
public GlobalSettingsService ( IGlobalSettingsRepository globalSettingsRepository ) : Drey.Configuration.Repositories
globalSettingsRepository IGlobalSettingsRepository The global settings repository.
Résultat Drey.Configuration.Repositories

HasValidSettings() public méthode

Determines whether the global settings are valid or not.
public HasValidSettings ( ) : bool
Résultat bool

StoreSettings() public méthode

Stores the initial settings in the Global Settings store. This method should only be used for a new deployment. Updates to settings should be done via the UpdateServerHostname/UpdateSSLCertificate method(s)
public StoreSettings ( ViewModels settings ) : bool
settings ViewModels The settings.
Résultat bool

UpdateClientCertificate() public méthode

Updates the SSL certificate in the Global Settings store.
cert
public UpdateClientCertificate ( byte cert ) : void
cert byte The cert.
Résultat void

UpdateHostDetails() public méthode

Updates the server hostname in the Global Settings store.
public UpdateHostDetails ( ViewModels pmo ) : void
pmo ViewModels
Résultat void