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 SourceWhereEnabled<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. |
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. |
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. |