Table of Contents

Interface IDependencyContainer

Namespace
LfrlAnvil.Dependencies
Assembly
LfrlAnvil.Dependencies.dll

Represents a dependency container.

public interface IDependencyContainer

Properties

RootScope

Specifies the root scope of this container.

IDependencyScope RootScope { get; }

Property Value

IDependencyScope

Methods

GetScope(string)

Returns the named scope.

[Pure]
IDependencyScope GetScope(string name)

Parameters

name string

Scope's name.

Returns

IDependencyScope

Named IDependencyScope instance.

Exceptions

DependencyScopeNotFoundException

When named scope does not exist.

TryGetScope(string)

Attempts to return the named scope.

[Pure]
IDependencyScope? TryGetScope(string name)

Parameters

name string

Scope's name.

Returns

IDependencyScope

Named IDependencyScope instance or null when named scope does not exist.