19 writes to PublishingWindow
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (19)
ResourceMonitoringExtensionsTests.cs (1)
130
options.
PublishingWindow
= TimeSpan.FromSeconds(CalculationPeriodValue);
ResourceMonitoringOptionsCustomValidatorTests.cs (2)
51
PublishingWindow
= TimeSpan.FromSeconds(calculationPeriod)
65
PublishingWindow
= TimeSpan.FromSeconds(2)
ResourceMonitoringOptionsTests.cs (1)
18
PublishingWindow
= TimeSpan.FromSeconds(50)
ResourceMonitoringOptionsValidatorTests.cs (5)
19
PublishingWindow
= TimeSpan.FromSeconds(200)
36
PublishingWindow
= TimeSpan.FromSeconds(200)
51
PublishingWindow
= TimeSpan.FromSeconds(200)
66
PublishingWindow
= TimeSpan.FromSeconds(-5)
111
PublishingWindow
= TimeSpan.FromMilliseconds(calculationPeriod)
ResourceMonitoringServiceTests.cs (10)
172
PublishingWindow
= TimeSpan.FromSeconds(1)
205
PublishingWindow
= TimeSpan.FromMilliseconds(TimerPeriod)
245
PublishingWindow
= TimeSpan.FromMilliseconds(100),
278
PublishingWindow
= TimeSpan.FromMilliseconds(100)
319
PublishingWindow
= TimeSpan.FromMilliseconds(TimerPeriod),
362
PublishingWindow
= TimeSpan.FromMilliseconds(TimerPeriod),
439
PublishingWindow
= TimeSpan.FromMilliseconds(TimerPeriod * 2),
548
PublishingWindow
= TimeSpan.FromMilliseconds(TimerPeriod * 2),
656
PublishingWindow
= TimeSpan.FromSeconds(1)
680
PublishingWindow
= TimeSpan.FromSeconds(5)
7 references to PublishingWindow
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
ResourceMonitoringOptionsCustomValidator.cs (3)
16
if (options.
PublishingWindow
> options.CollectionWindow)
19
$"Value must be <= to {nameof(options.CollectionWindow)} ({options.CollectionWindow}), but is {options.
PublishingWindow
}.",
20
nameof(options.
PublishingWindow
));
ResourceMonitorService.cs (1)
74
_publishingWindow = optionsValue.
PublishingWindow
;
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
ResourceMonitoringExtensionsTests.cs (3)
139
Assert.Equal(TimeSpan.FromSeconds(CalculationPeriodValue), options!.Value.
PublishingWindow
);
156
[$"{nameof(ResourceMonitoringOptions)}:{nameof(ResourceMonitoringOptions.
PublishingWindow
)}"]
180
Assert.Equal(TimeSpan.FromSeconds(CalculationPeriod), options!.Value.
PublishingWindow
);