Class DefaultNamedServiceProvider
A default named service provider.
Inheritance
System.Object
DefaultNamedServiceProvider
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Services
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultNamedServiceProvider : INamedServiceProvider
Constructors
| Improve this Doc View SourceDefaultNamedServiceProvider(ICompositionContext)
Initializes a new instance of the DefaultNamedServiceProvider class.
Declaration
public DefaultNamedServiceProvider(ICompositionContext compositionContext)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | Context for the composition. |
Methods
| Improve this Doc View SourceGetNamedService<TService>(String)
Gets the service with the provided name.
Declaration
public TService GetNamedService<TService>(string serviceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceName | Name of the service. |
Returns
Type | Description |
---|---|
TService | The named service. |
Type Parameters
Name | Description |
---|---|
TService | Type of the service. |