5 implementations of IResourceUtilizationPublisher
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Linux\Resources\GenericPublisher.cs (1)
13
internal sealed class GenericPublisher :
IResourceUtilizationPublisher
Publishers\AnotherPublisher.cs (1)
12
internal sealed class AnotherPublisher :
IResourceUtilizationPublisher
Publishers\EmptyPublisher.cs (1)
12
internal sealed class EmptyPublisher :
IResourceUtilizationPublisher
Publishers\FaultPublisher.cs (1)
13
internal sealed class FaultPublisher :
IResourceUtilizationPublisher
Publishers\GenericPublisher.cs (1)
13
internal sealed class GenericPublisher :
IResourceUtilizationPublisher
38 references to IResourceUtilizationPublisher
Microsoft.Extensions.Diagnostics.ResourceMonitoring (7)
IResourceMonitorBuilder.cs (1)
33
where T : class,
IResourceUtilizationPublisher
;
ResourceMonitorBuilder.cs (2)
33
where T : class,
IResourceUtilizationPublisher
35
Services.TryAddEnumerable(ServiceDescriptor.Singleton<
IResourceUtilizationPublisher
, T>());
ResourceMonitorService.cs (4)
35
private readonly
IResourceUtilizationPublisher
[] _publishers;
58
IEnumerable<
IResourceUtilizationPublisher
> publishers)
67
IEnumerable<
IResourceUtilizationPublisher
> publishers,
108
foreach (
var
publisher in _publishers)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (31)
Linux\AcceptanceTest.cs (2)
232
.AddSingleton<
IResourceUtilizationPublisher
>(new GenericPublisher(_ => e.Set()))
315
.AddSingleton<
IResourceUtilizationPublisher
>(new GenericPublisher(_ => e.Set()))
ResourceMonitoringBuilderTests.cs (4)
24
var
publisher = provider.GetRequiredService<
IResourceUtilizationPublisher
>();
25
var publishersArray = provider.GetServices<
IResourceUtilizationPublisher
>();
47
var publishersArray = provider.GetServices<
IResourceUtilizationPublisher
>();
ResourceMonitoringExtensionsTests.cs (2)
106
var
publisher = host.Services.GetService<
IResourceUtilizationPublisher
>();
ResourceMonitoringServiceTests.cs (23)
43
var publishersList = new List<
IResourceUtilizationPublisher
>
58
GetDataTrackerField<
IResourceUtilizationPublisher
[]>(tracker, "_publishers");
71
var mockPublishers = new Mock<IEnumerable<
IResourceUtilizationPublisher
>>(MockBehavior.Loose);
100
var publishersList = new List<
IResourceUtilizationPublisher
>
132
var publishersList = new List<
IResourceUtilizationPublisher
>
148
= GetDataTrackerField<
IResourceUtilizationPublisher
[]>(tracker, "_publishers");
155
Assert.IsType<
IResourceUtilizationPublisher
[]>(publishers);
174
new List<
IResourceUtilizationPublisher
>
180
var publishers = GetDataTrackerField<
IResourceUtilizationPublisher
[]>(tracker, "_publishers");
183
Assert.IsType<
IResourceUtilizationPublisher
[]>(publishers);
207
new List<
IResourceUtilizationPublisher
>
248
new List<
IResourceUtilizationPublisher
>
280
new List<
IResourceUtilizationPublisher
>
322
new List<
IResourceUtilizationPublisher
>
365
Array.Empty<
IResourceUtilizationPublisher
>(),
447
new List<
IResourceUtilizationPublisher
>
556
new List<
IResourceUtilizationPublisher
>
596
new List<
IResourceUtilizationPublisher
>
618
new List<
IResourceUtilizationPublisher
>
658
new List<
IResourceUtilizationPublisher
>
682
new List<
IResourceUtilizationPublisher
>
705
new List<
IResourceUtilizationPublisher
>
721
Microsoft.Extensions.Options.Options.Create(new ResourceMonitoringOptions()), Array.Empty<
IResourceUtilizationPublisher
>(), TimeProvider.System);