Skip to content

Applies to

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

Overloads

  • 1. public ModernDependencyResolver()
  • 2. protected ModernDependencyResolver(Dictionary<(Type serviceType, string? contract), List<Func<object?>>>? registry)

1. Overload

public ModernDependencyResolver()

View source

Summary: Initializes a new instance of the ModernDependencyResolver class.

2. Overload

protected ModernDependencyResolver(Dictionary<(Type serviceType, string? contract), List<Func<object?>>>? registry)

View source

Summary: Initializes a new instance of the ModernDependencyResolver class.

Parameters

NameTypeDescription
registryDictionary<(Type serviceType, string? contract), List>>?A registry of services.

Remarks

        When provided, the registry is deep-copied at the list level to avoid sharing mutable lists between resolvers.