C# Класс Drey.Configuration.Services.GlobalSettingsService

Наследование: System.MarshalByRefObject, IGlobalSettingsService
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetCertificate() публичный Метод

Gets the certificate from the Global Settings store.
public GetCertificate ( ) : X509Certificate2
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetHttpClient() публичный Метод

Manufacturers an Http Client with default values.
public GetHttpClient ( ) : HttpClient
Результат System.Net.Http.HttpClient

GetServerHostname() публичный Метод

Gets the server hostname from the Global Settings store.
public GetServerHostname ( ) : ServerHostnamePmo
Результат Drey.Configuration.Services.ViewModels.ServerHostnamePmo

GlobalSettingsService() публичный Метод

Initializes a new instance of the GlobalSettingsService class.
public GlobalSettingsService ( IGlobalSettingsRepository globalSettingsRepository ) : Drey.Configuration.Repositories
globalSettingsRepository IGlobalSettingsRepository The global settings repository.
Результат Drey.Configuration.Repositories

HasValidSettings() публичный Метод

Determines whether the global settings are valid or not.
public HasValidSettings ( ) : bool
Результат bool

StoreSettings() публичный Метод

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.
Результат bool

UpdateClientCertificate() публичный Метод

Updates the SSL certificate in the Global Settings store.
cert
public UpdateClientCertificate ( byte cert ) : void
cert byte The cert.
Результат void

UpdateHostDetails() публичный Метод

Updates the server hostname in the Global Settings store.
public UpdateHostDetails ( ViewModels pmo ) : void
pmo ViewModels
Результат void