C# Class Drey.Configuration.ServiceModel.ServicesManager

Inheritance: IServicesManager
Show file Open project: dealproc/Drey

Public Methods

Method Description
Dispose ( ) : void

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

ServicesManager ( INutConfiguration configurationManager, Infrastructure dbConfigurationSettingsFactory, IEventBus eventBus, IEnumerable pushServices, IEnumerable remoteInvokedServices, Services globalSettings, Func packagesPollerFactory, Func pollingCollectionFactory, Repositories packageRepository, IHoardeManager hoardeManager ) : Drey.Configuration.Infrastructure
Start ( ) : bool

Starts this manager and its services. Establishes connection with the remote server for log file access, etc.

Stop ( ) : bool

Stops all services managed by this.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
Connect ( ) : System.Threading.Tasks.Task
InitializePollingClients ( ) : 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

ServicesManager() public method

public ServicesManager ( INutConfiguration configurationManager, Infrastructure dbConfigurationSettingsFactory, IEventBus eventBus, IEnumerable pushServices, IEnumerable remoteInvokedServices, Services globalSettings, Func packagesPollerFactory, Func pollingCollectionFactory, Repositories packageRepository, IHoardeManager hoardeManager ) : Drey.Configuration.Infrastructure
configurationManager INutConfiguration
dbConfigurationSettingsFactory Infrastructure
eventBus IEventBus
pushServices IEnumerable
remoteInvokedServices IEnumerable
globalSettings Services
packagesPollerFactory Func
pollingCollectionFactory Func
packageRepository Repositories
hoardeManager IHoardeManager
return Drey.Configuration.Infrastructure

Start() public method

Starts this manager and its services. Establishes connection with the remote server for log file access, etc.
public Start ( ) : bool
return bool

Stop() public method

Stops all services managed by this.
public Stop ( ) : bool
return bool