![]() |
Paradox Game Engine
v1.0.0 beta06
|
Base implementation for IServiceRegistry More...
Public Member Functions | |
object | GetService (Type type) |
Gets the instance service providing a specified service. More... | |
void | AddService (Type type, object provider) |
Adds a service to this ServiceRegistry. More... | |
void | RemoveService (Type type) |
Removes the object providing a specified service. More... | |
Static Public Attributes | |
static PropertyKey < ServiceRegistry > | ServiceRegistryKey = new PropertyKey<ServiceRegistry>("ServiceRegistryKey", typeof(ServiceRegistry)) |
Events | |
EventHandler< ServiceEventArgs > | ServiceAdded |
EventHandler< ServiceEventArgs > | ServiceRemoved |
![]() | |
EventHandler< ServiceEventArgs > | ServiceAdded |
Occurs when a new service is added. More... | |
EventHandler< ServiceEventArgs > | ServiceRemoved |
Occurs when when a service is removed. More... | |
Base implementation for IServiceRegistry
Definition at line 34 of file ServiceRegistry.cs.
void SiliconStudio.Core.ServiceRegistry.AddService | ( | Type | type, |
object | provider | ||
) |
Adds a service to this ServiceRegistry.
type | The type of service to add. |
provider | The service provider to add. |
System.ArgumentNullException | type;Service type cannot be null |
System.ArgumentException | Service is already registered;type |
Implements SiliconStudio.Core.IServiceRegistry.
Definition at line 73 of file ServiceRegistry.cs.
object SiliconStudio.Core.ServiceRegistry.GetService | ( | Type | type | ) |
Gets the instance service providing a specified service.
type | The type of service. |
System.ArgumentNullException | type |
Definition at line 48 of file ServiceRegistry.cs.
void SiliconStudio.Core.ServiceRegistry.RemoveService | ( | Type | type | ) |
Removes the object providing a specified service.
type | The type of service. |
Implements SiliconStudio.Core.IServiceRegistry.
Definition at line 95 of file ServiceRegistry.cs.
|
static |
Definition at line 36 of file ServiceRegistry.cs.
EventHandler<ServiceEventArgs> SiliconStudio.Core.ServiceRegistry.ServiceAdded |
Definition at line 62 of file ServiceRegistry.cs.
EventHandler<ServiceEventArgs> SiliconStudio.Core.ServiceRegistry.ServiceRemoved |
Definition at line 64 of file ServiceRegistry.cs.