Show / Hide Table of Contents

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 Source

GetServiceFactories(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.

| Improve this Doc View Source

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.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
CompositionHelper.ToPrioritizedDictionary<TService, TServiceMetadata, TKey, TValue>(IEnumerable<IExportFactory<TService, TServiceMetadata>>, Func<IExportFactory<TService, TServiceMetadata>, TKey>, Func<IExportFactory<TService, TServiceMetadata>, TValue>, IEqualityComparer<TKey>)
CompositionHelper.ToPrioritizedDictionary<TService, TServiceMetadata, TKey>(IEnumerable<IExportFactory<TService, TServiceMetadata>>, Func<IExportFactory<TService, TServiceMetadata>, TKey>, IEqualityComparer<TKey>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
OrderedServiceCollectionExtensions.Order<T, TMetadata>(IEnumerable<IExportFactory<T, TMetadata>>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX