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

ThreeMammals / Ocelot / 26761608736

01 Jun 2026 02:34PM UTC coverage: 0.0% (-95.4%) from 95.403%
26761608736

Pull #2394

github

web-flow
Merge e39fc0db2 into e4022a7d8
Pull Request #2394: Harden `FileConfigurationPoller` against timer reentrancy and callback thread leaks, and stabilize `TimeoutDelegatingHandler` timeout test

0 of 7112 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
src/Ocelot/Configuration/Repository/InMemoryInternalConfigurationRepository.cs
1
using Ocelot.Configuration.ChangeTracking;
2

3
namespace Ocelot.Configuration.Repository;
4

5
public class InMemoryInternalConfigurationRepository : IInternalConfigurationRepository
6
{
7
#if NET9_0_OR_GREATER
8
    private static readonly Lock Locker = new();
×
9
#else
10
    private static readonly object Locker = new();
11
#endif
12

13
    private IInternalConfiguration _internalConfiguration;
14
    private readonly IOcelotConfigurationChangeTokenSource _changeTokenSource;
15

16
    public InMemoryInternalConfigurationRepository(IOcelotConfigurationChangeTokenSource changeTokenSource)
×
17
    {
×
18
        _changeTokenSource = changeTokenSource;
×
19
    }
×
20

21
    public IInternalConfiguration Get()
22
    {
×
23
        lock (Locker)
24
        {
×
25
            return _internalConfiguration;
×
26
        }
27
    }
×
28

29
    public string AddOrReplace(IInternalConfiguration internalConfiguration)
30
    {
×
31
        lock (Locker)
32
        {
×
33
            _internalConfiguration = internalConfiguration;
×
34
        }
×
35

36
        _changeTokenSource.Activate();
×
37
        return string.Empty; 
×
38
    }
×
39
}
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

© 2026 Coveralls, Inc