Class CircularReferenceException
The exception that is thrown on circular reference.
Inheritance
System.Object
CircularReferenceException
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public sealed class CircularReferenceException : Exception
Remarks
Circular reference is the state when there is a circle in the dependency graph. For instance:
Svc_1 ⭢ Svc_2 ⭢ Svc_1
Depending on the ServiceResolutionMode property this exception can be thrown either in compilation time or on service request.
Constructors
CircularReferenceException(String, IReadOnlyList<AbstractServiceEntry>)
Creates a new CircularReferenceException instance.
Declaration
public CircularReferenceException(string message, IReadOnlyList<AbstractServiceEntry> circle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | |
| System.Collections.Generic.IReadOnlyList<AbstractServiceEntry> | circle |
Properties
Circle
The circle itself.
Declaration
public IReadOnlyList<AbstractServiceEntry> Circle { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyList<AbstractServiceEntry> |