Show / Hide Table of Contents

Interface ICreatesDecorator

A builder/helper object by which a developer selects the initial concrete implementation type for the innermost object in the decorator 'stack'. This is the one class in the stack which is itself not a decorator type.

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

Methods

| Improve this Doc View Source

UsingInitialImpl<TInitialImpl>(ITypedResolvable[])

Selects the initial implementation type using a generic type parameter.

Declaration
ICustomizesDecorator UsingInitialImpl<TInitialImpl>(params ITypedResolvable[] parameters)
    where TInitialImpl : 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
TInitialImpl

The type of the initial concrete implementation.

| Improve this Doc View Source

UsingInitialImpl<TInitialImpl>(Func<IServiceProvider, IEnumerable<ITypedResolvable>, TInitialImpl>, ITypedResolvable[])

Selects the initial implementation type using a generic type parameter.

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

A function which creates the instance of the implementation 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
TInitialImpl

The type of the initial concrete implementation.

| Improve this Doc View Source

UsingInitialImplType(Type, ITypedResolvable[])

Selects the initial implementation type.

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

The type of the initial concrete implementation.

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

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

Selects the initial implementation type.

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

The type of the initial concrete implementation.

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

A function which creates the instance of the implementation 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