• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Sholtee / injector / 2251

27 Dec 2023 10:00AM UTC coverage: 90.723% (-2.0%) from 92.704%
2251

push

appveyor

Sholtee
Merge branch 'drop_opencover'

2171 of 2393 relevant lines covered (90.72%)

0.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/SRC/Interfaces/Public/Exceptions/CircularReferenceException.cs
1
/********************************************************************************
2
* CircularReferenceException.cs                                                 *
3
*                                                                               *
4
* Author: Denes Solti                                                           *
5
********************************************************************************/
6
using System;
7
using System.Collections.Generic;
8

9
namespace Solti.Utils.DI.Interfaces
10
{
11
    /// <summary>
12
    /// The exception that is thrown on circular reference.
13
    /// </summary>
14
    /// <remarks>
15
    /// Circular reference is the state when there is a circle in the dependency graph. For instance:
16
    /// <br/>
17
    /// Svc_1 &#x2B62; Svc_2 &#x2B62; Svc_1
18
    /// <br/>
19
    /// Depending on the <see cref="ScopeOptions.ServiceResolutionMode"/> property this exception can be thrown either in compilation time or on service request.
20
    /// </remarks>
21
    public sealed class CircularReferenceException: Exception
22
    {
23
        /// <summary>
24
        /// Creates a new <see cref="CircularReferenceException"/> instance.
25
        /// </summary>
26
        public CircularReferenceException(string message, IReadOnlyList<AbstractServiceEntry> circle): base(message)
1✔
27
            => Circle = circle ?? throw new ArgumentNullException(nameof(circle));
×
28

29
        /// <summary>
30
        /// The circle itself.
31
        /// </summary>
32
        public IReadOnlyList<AbstractServiceEntry> Circle { get; }
1✔
33
    }
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc