Version

Search Results

RegisterService(String,Object) Method

Registers a service with a case-sensitively unique string key. Syntax Parameters serviceKey The case-sensitively unique string key of the service to register.service The service instance to register. Exceptions Exception Description System.ArgumentNullException Occurs when the specified serviceKey is null or empty...

RegisterService(Type,Object) Method

Registers a specific type of service instance. Syntax Parameters serviceType The Type used as a key to register the the service.service The service instance to register. Exceptions Exception Description System.ArgumentNullException Occurs when the specified serviceType is null. System.ArgumentNullException Occurs ...

RegisterService Method

Registers a specific type of service instance. Overload List

RegisterService<T>(T) Method

Registers a specific type of service instance. Syntax Parameters service The service instance to register. Type Parameters T The Type used as a key to register the the service. Exceptions Exception Description System.ArgumentNullException Occurs when the specified service is null. Remarks Only one service instance...

ServiceAdded Event

Raised after a service is registered. Syntax Event Data The event handler receives an argument of type ServiceEventArgs containing data related to this event. The following ServiceEventArgs properties provide information specific to this event.Property Description Service Gets the service which was registered or u...

ServiceRemoved Event

Raised after a service is unregistered. Syntax Event Data The event handler receives an argument of type ServiceEventArgs containing data related to this event. The following ServiceEventArgs properties provide information specific to this event.Property Description Service Gets the service which was registered or...

UnregisterAllServices Method

Unregisters all currently registered services. Syntax

UnregisterService(String) Method

Unregisters a service with a case-sensitively unique string key. Syntax Parameters serviceKey The case-sensitively unique string key of the service to unregister. Exceptions Exception Description System.ArgumentNullException Occurs when the specified serviceKey is null or empty.

UnregisterService(Type) Method

Unregisters a service of a specific type. Syntax Parameters serviceType The Type which was used as a key to register the service. Exceptions Exception Description System.ArgumentNullException Occurs when the specified, serviceType is null.

UnregisterService Method

Unregisters a service of a specific type. Overload List