Class ServiceRegistry
- Namespace
- Lime
- Assembly
- Lime.dll
public class ServiceRegistry : IServiceProvider
- Inheritance
-
ServiceRegistry
- Implements
- Inherited Members
- Extension Methods
Methods
Add<T>(T)
public void Add<T>(T service) where T : class
Parameters
service
T
Type Parameters
T
GetService(Type)
Gets the service object of the specified type.
public object GetService(Type type)
Parameters
type
Type
Returns
- object
A service object of type
serviceType
.-or-
null if there is no service object of type
serviceType
.
Remove(Type)
public bool Remove(Type type)
Parameters
type
Type
Returns
Remove<T>()
public bool Remove<T>() where T : class
Returns
Type Parameters
T