Show / Hide Table of Contents

Interface IServiceBehaviorProvider

Interface for service behavior provider.

Namespace: Kephas.Services.Behaviors
Assembly: Kephas.Core.dll
Syntax
[SingletonAppServiceContract]
public interface IServiceBehaviorProvider

Methods

| Improve this Doc View Source

WhereEnabled<TService>(IEnumerable<TService>, IContext)

Filters the enabled services from the provided services collection.

Declaration
IEnumerable<TService> WhereEnabled<TService>(IEnumerable<TService> services, IContext context = null)

    where TService : class
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<TService> services

The services.

IContext context

Context for the enabled check (optional).

Returns
Type Description
System.Collections.Generic.IEnumerable<TService>

An enumeration of enabled services.

Type Parameters
Name Description
TService

Type of the service.

| Improve this Doc View Source

WhereEnabled<TService>(IEnumerable<IExportFactory<TService>>, IContext)

Filters the enabled services from the provided services collection.

Declaration
IEnumerable<IExportFactory<TService>> WhereEnabled<TService>(IEnumerable<IExportFactory<TService>> serviceFactories, IContext context = null)

    where TService : class
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IExportFactory<TService>> serviceFactories

The service export factories.

IContext context

Context for the enabled check (optional).

Returns
Type Description
System.Collections.Generic.IEnumerable<IExportFactory<TService>>

An enumeration of enabled services.

Type Parameters
Name Description
TService

Type of the service.

| Improve this Doc View Source

WhereEnabled<TService, TMetadata>(IEnumerable<IExportFactory<TService, TMetadata>>, IContext)

Enumerates the enabled services from the provided services collection.

Declaration
IEnumerable<IExportFactory<TService, TMetadata>> WhereEnabled<TService, TMetadata>(IEnumerable<IExportFactory<TService, TMetadata>> serviceFactories, IContext context = null)

    where TService : class
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IExportFactory<TService, TMetadata>> serviceFactories

The service export factories.

IContext context

Context for the enabled check (optional).

Returns
Type Description
System.Collections.Generic.IEnumerable<IExportFactory<TService, TMetadata>>

An enumerator that allows foreach to be used to process where enabled in this collection.

Type Parameters
Name Description
TService

Type of the service.

TMetadata

Type of the service metadata.

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>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX