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...
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 ...
Registers a specific type of service instance. Overload List
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...
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...
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...
Unregisters all currently registered services. Syntax
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.
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.
Unregisters a service of a specific type. Overload List