1 type derived from BrowserTimeProvider
Aspire.Dashboard.Components.Tests (1)
Shared\TestTimeProvider.cs (1)
9public sealed class TestTimeProvider : BrowserTimeProvider
7 instantiations of BrowserTimeProvider
Aspire.Dashboard.Tests (7)
FormatHelpersTests.cs (1)
94return new BrowserTimeProvider(NullLoggerFactory.Instance);
Integration\DashboardClientAuthTests.cs (1)
135timeProvider: new BrowserTimeProvider(NullLoggerFactory.Instance),
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
18private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);
Model\DashboardClientTests.cs (1)
19private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);
Model\ResourceStateViewModelTests.cs (2)
68propertiesDictionary.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0, new BrowserTimeProvider(new NullLoggerFactory()))); 81resource.Properties.TryAdd(KnownProperties.Resource.ExitCode, new ResourcePropertyViewModel(KnownProperties.Resource.ExitCode, Value.ForNumber((double)exitCode), false, null, 0, new BrowserTimeProvider(new NullLoggerFactory())));
Model\ResourceViewModelTests.cs (1)
16private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);
22 references to BrowserTimeProvider
Aspire.Dashboard (11)
DashboardWebApplication.cs (1)
259builder.Services.AddScoped<BrowserTimeProvider>();
Extensions\TimeProviderExtensions.cs (3)
10public static DateTime ToLocal(this BrowserTimeProvider timeProvider, DateTimeOffset utcDateTimeOffset) 18public static DateTimeOffset ToLocalDateTimeOffset(this BrowserTimeProvider timeProvider, DateTimeOffset utcDateTimeOffset) 23public static DateTime ToLocal(this BrowserTimeProvider timeProvider, DateTime dateTime)
Model\BrowserTimeProvider.cs (1)
20_logger = loggerFactory.CreateLogger(typeof(BrowserTimeProvider));
ResourceService\DashboardClient.cs (2)
51private readonly BrowserTimeProvider _timeProvider; 76BrowserTimeProvider timeProvider,
ResourceService\Partials.cs (1)
17public ResourceViewModel ToViewModel(BrowserTimeProvider timeProvider, IKnownPropertyLookup knownPropertyLookup)
Utils\FormatHelpers.cs (3)
74public static string FormatTime(BrowserTimeProvider timeProvider, DateTime value, MillisecondsDisplay millisecondsDisplay = MillisecondsDisplay.None, CultureInfo? cultureInfo = null) 89public static string FormatDateTime(BrowserTimeProvider timeProvider, DateTime value, MillisecondsDisplay millisecondsDisplay = MillisecondsDisplay.None, CultureInfo? cultureInfo = null) 104public static string FormatTimeWithOptionalDate(BrowserTimeProvider timeProvider, DateTime value, MillisecondsDisplay millisecondsDisplay = MillisecondsDisplay.None, CultureInfo? cultureInfo = null)
Aspire.Dashboard.Components.Tests (7)
Controls\ApplicationNameTests.cs (1)
25Services.AddSingleton<BrowserTimeProvider>();
Layout\MainLayoutTests.cs (1)
135Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
Pages\ConsoleLogsTests.cs (1)
163Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
Pages\StructuredLogsTests.cs (1)
175Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
Shared\MetricsSetupHelpers.cs (2)
39context.Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>(); 80context.Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
Shared\StructuredLogsSetupHelpers.cs (1)
18context.Services.AddSingleton<BrowserTimeProvider, TestTimeProvider>();
Aspire.Dashboard.Tests (4)
FormatHelpersTests.cs (1)
92private static BrowserTimeProvider CreateTimeProvider()
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
18private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);
Model\DashboardClientTests.cs (1)
19private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);
Model\ResourceViewModelTests.cs (1)
16private static readonly BrowserTimeProvider s_timeProvider = new(NullLoggerFactory.Instance);