Version

Search Results

ServicesManager Class Events

For a list of all members of this type, see ServicesManager members. Public Events Name Description ServiceAdded Raised after a service is registered. ServiceRemoved Raised after a service is unregistered. Top

ServicesManager Class Members

Public Methods Public Events

GetRegisteredServiceKeys Method

Returns a collection of registered service keys. Syntax Return Value A collection of registered service keys.

GetRegisteredServices Method

Returns a collection of registered services. Syntax Return Value A collection of registered services.

GetRegisteredServiceTypes Method

Returns a collection of registered service types. Syntax Return Value A collection of registered service types.

GetService(String) Method

Gets a service registered with the specified key. Syntax Parameters serviceKey The key of the service to get. Return Value The service instance if the service is found otherwise null. Exceptions Exception Description System.ArgumentNullException Occurs when the specified serviceKey is null or empty.

GetService(Type) Method

Gets a service which was registered with a specific Type. Syntax Parameters serviceType The Type which was used as a key to register the service. Return Value The service instance if the service is found otherwise null. Exceptions Exception Description System.ArgumentNullException Occurs when the specified, servic...

GetService Method

Gets a service which was registered with a specific Type. Overload List

GetService<T>() Method

Gets a service which was registered with a specific Type. Syntax Type Parameters T The Type which was used as a key to register the service. Return Value The service instance if the service is found otherwise null.