Show / Hide Table of Contents

Interface ICustomizesDecorator

A builder/helper object by which a developer selects the decorator types to be used when creating the service.

Namespace: CSF.DecoratorBuilder
Assembly: CSF.DecoratorBuilder.Abstractions.dll
Syntax
public interface ICustomizesDecorator

Methods

| Improve this Doc View Source

ThenWrapWith<TDecorator>(ITypedResolvable[])

Selects a decorator type using a generic type parameter. The implementation directly before this point in the decorator 'stack' (be it the initial implementation or a decorator itself) will be passed to the selected implementation. Thus this implementation will 'wrap' the one before it.

Declaration
ICustomizesDecorator ThenWrapWith<TDecorator>(params ITypedResolvable[] parameters)
    where TDecorator : class
Parameters
Type Name Description
ITypedResolvable[] parameters

An optional collection of ITypedResolvable.

Returns
Type Description
ICustomizesDecorator

A customisation helper by which further implementations may be added to the decorator 'stack'.

Type Parameters
Name Description
TDecorator

The type of the concrete implementation to use as a decorator.

| Improve this Doc View Source

ThenWrapWith<TDecorator>(Func<Object, IServiceProvider, IEnumerable<ITypedResolvable>, TDecorator>, ITypedResolvable[])

Selects a decorator type using a generic type parameter. The implementation directly before this point in the decorator 'stack' (be it the initial implementation or a decorator itself) will be passed to the selected implementation. Thus this implementation will 'wrap' the one before it.

Declaration
ICustomizesDecorator ThenWrapWith<TDecorator>(Func<object, IServiceProvider, IEnumerable<ITypedResolvable>, TDecorator> factoryFunction, params ITypedResolvable[] parameters)
    where TDecorator : class
Parameters
Type Name Description
System.Func<System.Object, System.IServiceProvider, System.Collections.Generic.IEnumerable<ITypedResolvable>, TDecorator> factoryFunction

A function which creates the instance of the decorator type.

ITypedResolvable[] parameters

An optional collection of ITypedResolvable.

Returns
Type Description
ICustomizesDecorator

A customisation helper by which further implementations may be added to the decorator 'stack'.

Type Parameters
Name Description
TDecorator

The type of the concrete implementation to use as a decorator.

| Improve this Doc View Source

ThenWrapWithType(Type, ITypedResolvable[])

Selects a decorator type. The implementation directly before this point in the decorator 'stack' (be it the initial implementation or a decorator itself) will be passed to the selected implementation. Thus this implementation will 'wrap' the one before it.

Declaration
ICustomizesDecorator ThenWrapWithType(Type decoratorType, params ITypedResolvable[] parameters)
Parameters
Type Name Description
System.Type decoratorType

The type of the concrete implementation to use as a decorator.

ITypedResolvable[] parameters

An optional collection of ITypedResolvable.

Returns
Type Description
ICustomizesDecorator

A customisation helper by which further implementations may be added to the decorator 'stack'.

| Improve this Doc View Source

ThenWrapWithType(Type, Func<Object, IServiceProvider, IEnumerable<ITypedResolvable>, Object>, ITypedResolvable[])

Selects a decorator type. The implementation directly before this point in the decorator 'stack' (be it the initial implementation or a decorator itself) will be passed to the selected implementation. Thus this implementation will 'wrap' the one before it.

Declaration
ICustomizesDecorator ThenWrapWithType(Type decoratorType, Func<object, IServiceProvider, IEnumerable<ITypedResolvable>, object> factoryFunction, params ITypedResolvable[] parameters)
Parameters
Type Name Description
System.Type decoratorType

The type of the concrete implementation to use as a decorator.

System.Func<System.Object, System.IServiceProvider, System.Collections.Generic.IEnumerable<ITypedResolvable>, System.Object> factoryFunction

A function which creates the instance of the decorator type.

ITypedResolvable[] parameters

An optional collection of ITypedResolvable.

Returns
Type Description
ICustomizesDecorator

A customisation helper by which further implementations may be added to the decorator 'stack'.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX