Skip to content

DryIocDependencyResolver(IContainer?) constructor

Defined in

Type: DryIocDependencyResolver Namespace: Splat.DryIoc Assembly: Splat.DryIoc.dll

Applies to

net10.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-ios17.5, net8.0-tvos17.2, net8.0-tvos17.2, netstandard2.1, netstandard2.1, netstandard2.0, netstandard2.0, net471, net481, net462

public DryIocDependencyResolver(IContainer? container = null)

View source

Summary: Provides an implementation of the IDependencyResolver interface using a DryIoc container for dependency resolution and registration. https://bitbucket.org/dadhi/dryioc/wiki/Home.

Parameters

NameTypeDescription
container = nullIContainer?The DryIoc container to use for service resolution and registration. If null, a new container instance is created.

Remarks

This resolver enables integration with DryIoc for managing service lifetimes and contracts. If no container is supplied, the resolver creates and manages its own internal container instance. Thread safety and disposal of the underlying container are managed by this class.