KnownRelationship Constructor

Simple Injector
Initializes a new instance of the KnownRelationship class.

Namespace:  SimpleInjector.Advanced
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public KnownRelationship(
	Type implementationType,
	Lifestyle lifestyle,
	InstanceProducer dependency
)

Parameters

implementationType
Type: SystemType
The implementation type of the parent type.
lifestyle
Type: SimpleInjectorLifestyle
The lifestyle of the parent type.
dependency
Type: SimpleInjectorInstanceProducer
The type that the parent depends on (it is injected into the parent).
See Also

Reference