C# Class HomeAutomation.Core.Service.ServiceRegistry

SerivceRegistry is the main point in the application to turn to for services.
显示文件 Open project: moszinet/HomeAutomation

Public Methods

Method Description
GetServiceByType ( Type serviceType ) : IService
RegisterService ( IService serviceInstance ) : void

Registers a service into the system.

RegisterService ( Type serviceType, IService serviceInstance ) : void

Registers a service into the system.

ServiceRegistry ( ) : System

Method Details

GetServiceByType() public method

public GetServiceByType ( Type serviceType ) : IService
serviceType System.Type
return IService

RegisterService() public method

Registers a service into the system.
public RegisterService ( IService serviceInstance ) : void
serviceInstance IService
return void

RegisterService() public method

Registers a service into the system.
public RegisterService ( Type serviceType, IService serviceInstance ) : void
serviceType System.Type
serviceInstance IService
return void

ServiceRegistry() public method

public ServiceRegistry ( ) : System
return System