Interface IOrderedServiceCollection<TService, TServiceMetadata>
Interface for ordered service collection.
Inherited Members
System.Collections.Generic.IEnumerable<Kephas.Composition.IExportFactory<TService, TServiceMetadata>>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()
Namespace: Kephas.Services
Assembly: Kephas.Core.dll
Syntax
[AppServiceContract(AsOpenGeneric = true)]
public interface IOrderedServiceCollection<out TService, out TServiceMetadata> : IEnumerable<IExportFactory<TService, TServiceMetadata>>, IEnumerable where TServiceMetadata : AppServiceMetadata
Type Parameters
Name | Description |
---|---|
TService | Type of the service. |
TServiceMetadata | Type of the service metadata. |
Methods
| Improve this Doc View SourceGetServiceFactories(Func<IExportFactory<TService, TServiceMetadata>, Boolean>)
Gets the service factories in the appropriate order.
Declaration
IEnumerable<IExportFactory<TService, TServiceMetadata>> GetServiceFactories(Func<IExportFactory<TService, TServiceMetadata>, bool> filter = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IExportFactory<TService, TServiceMetadata>, System.Boolean> | filter | Optional. Specifies a filter. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IExportFactory<TService, TServiceMetadata>> | The ordered service factories. |
GetServices(Func<IExportFactory<TService, TServiceMetadata>, Boolean>)
Gets the services in the appropriate order.
Declaration
IEnumerable<TService> GetServices(Func<IExportFactory<TService, TServiceMetadata>, bool> filter = null)
Parameters
Type | Name | Description |
---|---|---|
System.Func<IExportFactory<TService, TServiceMetadata>, System.Boolean> | filter | Optional. Specifies a filter. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TService> | The ordered services. |