TypeFactoryContext Class

Simple Injector
Contains contextual information for creating an implementation type.
Inheritance Hierarchy

SystemObject
  SimpleInjector.AdvancedApiObject
    SimpleInjectorTypeFactoryContext

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

public sealed class TypeFactoryContext : ApiObject

The TypeFactoryContext type exposes the following members.

Properties

  NameDescription
Public propertyConsumer
Gets the contextual information of the consuming component that directly depends on the resolved service. This property will return null in case the service is resolved directly from the container.
Public propertyServiceType
Gets the closed generic service type that is to be created.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from ApiObject.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from ApiObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from ApiObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from ApiObject.)
Top
Remarks

Please see the Register method for more information.
See Also

Reference