SimplyInjector class sealed

Convenient Container to keep compatibility with the original library.

Inheritance
Annotations
  • @Deprecated('This class will be removed at next version, use [Container]')

Constructors

SimplyInjector.Container()
Convenient Container constructor to keep compatibility with the original library.

Properties

hashCode int
The hash code for this object.
no setterinherited
options ContainerOptions
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addInstanceProducer(Type serviceType, InstanceProducer instanceProducer) → void
inherited
contains<TService>() bool
inherited
dispose() → void
inherited
get<TService>() → TService
Gets an instance of the given TService. Throws ActivationException when there are errors resolving the service instance.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<TService, TImplementation extends TService>(Constructor<TImplementation> constructor, [Lifestyle lifestyle = Lifestyle.transient]) → void
Registers a constructor for type TService. This constructor must be specified in constructor and must generate an instance of TImplementation which, in turn, must inherit from TService. Default value of lifestyle is Lifestyle.transient.
inherited
registerSimple<TService>(Constructor<TService> constructor, [Lifestyle lifestyle = Lifestyle.transient]) → void
Registers a constructor for type TService. This constructor must be specified in constructor and must generate an instance of TService. Default value of lifestyle is Lifestyle.transient.
inherited
toString() String
A string representation of this object.
inherited
unregister<TService>() → void
Unregisters the producer to TService, if it already registered.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited