IContainerBuilder

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Provides an interface to represent a simple dependency injection builder required by ASK components. You provide the implementation based on DI framework of your choice. Check out https://ASPSecurityKit.net/docs/source-packages/ – every source package comes with a default implementation.

Methods

Register(concrete,scope)

Summary

Registers the specified concrete type to resolve by itself with the specified scope.

Parameters
Name Type Description
concrete System.Type The concrete type.
scope ASPSecurityKit.InstanceScope The scope.

Register<TConcrete>(scope)

Summary

Registers the specified concrete type to resolve by itself with the specified scope.

Parameters
Name Type Description
scope ASPSecurityKit.InstanceScope The scope.
Generic Types
Name Description
TConcrete The type of the concrete.

Register<TContract,TConcrete>(scope)

Summary

Registers the specified contract to resolve by the specified concrete type with the specified scope.

Parameters
Name Type Description
scope ASPSecurityKit.InstanceScope The scope.
Generic Types
Name Description
TContract The type of the contract.
TConcrete The type of the concrete.

Register<TConcrete>(contracts,scope)

Summary

Registers the specified multiple contracts to resolve by the specified concrete type with the specified scope.

Parameters
Name Type Description
contracts System.Type[] The contract types.
scope ASPSecurityKit.InstanceScope The scope.
Generic Types
Name Description
TConcrete The type of the concrete.

Register<TContract>(factory,scope)

Summary

Registers the specified contract to resolve using a custom factory method with the specified scope.

Parameters
Name Type Description
factory System.Func<IContainer, TContract> The factory method.
scope ASPSecurityKit.InstanceScope The scope.
Generic Types
Name Description
TContract The type of the contract.