Interface IServiceProvider
A general purpose component that is intended for service location.
Inherited Members
Namespace: ExtendedXmlSerializer.ExtensionModel
Assembly: ExtendedXmlSerializer.dll
Syntax
public interface IServiceProvider : IServiceProvider
Methods
Create(Type)
Instantiates a new isntance of the requested type.
Declaration
object Create(Type serviceType)
Parameters
System.Type
serviceType
The requested type. |
Returns
System.Object
A new instance. |
GetAllInstances(Type)
Gets all instance that are registered with the requested type.
Declaration
IEnumerable<object> GetAllInstances(Type serviceType)
Parameters
System.Type
serviceType
The requested type. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
All located instances registered with the requested type. |
GetInstance(Type)
Gets a component found with the requested type.
Declaration
object GetInstance(Type serviceType)
Parameters
System.Type
serviceType
The requested type. |
Returns
System.Object
The instance found with the requested type. |
GetInstance(Type, Object[])
Gets a component found with the requested type and argument values.
Declaration
object GetInstance(Type serviceType, object[] arguments)
Parameters
System.Type
serviceType
The requested type. |
System.Object[]
arguments
A set of arguments to provide for construction. |
Returns
System.Object
The instance found with the requested information. |
GetInstance(Type, String)
Gets a component found with the requested type and name.
Declaration
object GetInstance(Type serviceType, string serviceName)
Parameters
System.Type
serviceType
The requested type. |
System.String
serviceName
The unique name for service location. |
Returns
System.Object
The instance found with the requested information. |
GetInstance(Type, String, Object[])
Gets a component found with the requested type, name, and argument values.
Declaration
object GetInstance(Type serviceType, string serviceName, object[] arguments)
Parameters
System.Type
serviceType
The requested type. |
System.String
serviceName
The unique name for service location. |
System.Object[]
arguments
A set of arguments to provide for construction. |
Returns
System.Object
The instance found with the requested information. |
TryGetInstance(Type)
Tries to get an instance with the requested type.
Declaration
object TryGetInstance(Type serviceType)
Parameters
System.Type
serviceType
The requested type. |
Returns
System.Object
The instance found with the requested information. |
TryGetInstance(Type, String)
Tries to get an instance with the requested type and name.
Declaration
object TryGetInstance(Type serviceType, string serviceName)
Parameters
System.Type
serviceType
The requested type. |
System.String
serviceName
The unique name for service location. |
Returns
System.Object
The instance found with the requested information. |