5 implementations of IStringLocalizer
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (1)
80
private sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
tests\Shared\TestStringLocalizer.cs (1)
8
public sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
8
public sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Aspire.Dashboard.Tests (1)
tests\Shared\TestStringLocalizer.cs (1)
8
public sealed class TestStringLocalizer<T> :
IStringLocalizer
<T>
Microsoft.Extensions.Localization.Abstractions (1)
StringLocalizerOfT.cs (1)
14
public class StringLocalizer<TResourceSource> :
IStringLocalizer
<TResourceSource>
243 references to IStringLocalizer
Aspire.Dashboard (171)
Components\Controls\ApplicationSummary.razor.cs (4)
101
public required
IStringLocalizer
<Dashboard.Resources.Resources> Loc { get; init; }
104
public required
IStringLocalizer
<Dashboard.Resources.Columns> ColumnsLoc { get; init; }
125
public required
IStringLocalizer
<Dashboard.Resources.ControlsStrings> ControlsStringsLoc { get; init; }
128
public required
IStringLocalizer
<Dashboard.Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\Chart\ChartBase.cs (1)
43
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\Chart\MetricPinButton.razor.cs (2)
26
public required
IStringLocalizer
<MetricsResources> Loc { get; init; }
29
public required
IStringLocalizer
<Resources.Layout> LayoutLoc { get; init; }
Components\Controls\Chart\MetricTable.razor.cs (1)
42
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\Chart\PlotlyChart.razor.cs (1)
34
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\ClearSignalsButton.razor.cs (1)
26
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\DashboardNotAuthorized.razor.cs (1)
22
public required
IStringLocalizer
<Resources.Routes> Loc { get; init; }
Components\Controls\DashboardRunMenu.razor.cs (1)
47
public required
IStringLocalizer
<LayoutResources> Loc { get; init; }
Components\Controls\DashboardRunPill.razor.cs (1)
25
public required
IStringLocalizer
<LayoutResources> Loc { get; init; }
Components\Controls\DashboardRunSelect.razor.cs (1)
43
public required
IStringLocalizer
<LayoutResources> Loc { get; init; }
Components\Controls\GenAIItemTitle.razor.cs (1)
22
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\Grid\AspireFluentDataGrid.cs (1)
21
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\InteractionInputField.razor.cs (2)
28
public required
IStringLocalizer
<DialogsResources> Loc { get; init; }
31
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\LogViewer.razor.cs (1)
48
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Controls\MissingParametersPanel.razor.cs (3)
30
public required
IStringLocalizer
<Resources.Resources> Loc { get; init; }
33
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
36
public required
IStringLocalizer
<Resources.Dialogs> DialogsLoc { get; init; }
Components\Controls\OverviewStatusCard.razor.cs (3)
24
public required
IStringLocalizer
<ResourceStrings> Loc { get; init; }
27
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
30
public required
IStringLocalizer
<Columns> ColumnsLoc { get; init; }
Components\Controls\PauseWarning.razor.cs (2)
35
public required
IStringLocalizer
<ControlsResources> Loc { get; init; }
38
public required
IStringLocalizer
<LayoutResources> LayoutLoc { get; init; }
Components\Controls\PersistentContainerBadge.razor.cs (1)
14
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components\Controls\PropertyValues\ResourceStateValue.razor.cs (1)
28
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
32
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\ResourceActions.razor.cs (1)
20
public required
IStringLocalizer
<ControlsStrings> ControlLoc { get; init; }
Components\Controls\ResourcePaneInsights.razor.cs (1)
31
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Controls\ResourceRelationshipGraph.razor.cs (1)
57
public required
IStringLocalizer
<Resources.Resources> Loc { get; init; }
Components\Controls\ResourceSelect.razor.cs (1)
38
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\ResourceTagEditor.razor.cs (2)
47
public required
IStringLocalizer
<Resources.Resources> Loc { get; init; }
50
public required
IStringLocalizer
<Resources.Layout> LayoutLoc { get; init; }
Components\Controls\SpanActions.razor.cs (1)
21
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\SpanLogPreview.razor.cs (1)
24
public required
IStringLocalizer
<Resources.StructuredLogs> Loc { get; init; }
Components\Controls\SpanTypeSelect.razor.cs (1)
31
public required
IStringLocalizer
<Resources.Traces> Loc { get; init; }
Components\Controls\StructuredLogActions.razor.cs (1)
20
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TelemetryEmptyContent.razor.cs (1)
23
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\TerminalDisconnectedBanner.razor.cs (1)
63
public required
IStringLocalizer
<Resources.TerminalStrings> Loc { get; init; }
Components\Controls\TerminalTitle.razor.cs (2)
38
public required
IStringLocalizer
<Resources.TerminalStrings> Loc { get; init; }
41
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TerminalView.razor.cs (2)
127
public required
IStringLocalizer
<Resources.TerminalStrings> Loc { get; init; }
130
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TerminalWindowButton.razor.cs (1)
86
public required
IStringLocalizer
<Resources.TerminalStrings> Loc { get; init; }
Components\Controls\TextVisualizer.razor.cs (1)
30
public required
IStringLocalizer
<ControlsStrings> Loc { get; init; }
Components\Controls\TraceActions.razor.cs (1)
22
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Controls\TreeGenAISelector.razor.cs (1)
22
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Controls\UserProfile.razor.cs (1)
23
public required
IStringLocalizer
<Login> Loc { get; init; }
Components\Dialogs\AIAgentsHelp.razor.cs (2)
23
public required
IStringLocalizer
<DialogsLoc> Loc { get; init; }
26
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\DashboardFeedbackDialog.razor.cs (1)
29
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\DashboardRunsDialog.razor.cs (1)
34
public required
IStringLocalizer
<LayoutResources> Loc { get; init; }
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
56
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
59
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\HelpDialog.razor.cs (2)
47
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
50
public required
IStringLocalizer
<Resources.Layout> LayoutLoc { get; init; }
Components\Dialogs\InteractionsInputDialog.razor.cs (2)
29
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
32
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\InteractionsProgressDialog.razor.cs (1)
21
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Dialogs\KeyboardShortcutsHelp.razor.cs (1)
16
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Dialogs\ManageDataDialog.razor.cs (2)
57
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
60
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Dialogs\SettingsDialog.razor.cs (1)
59
public required
IStringLocalizer
<Dashboard.Resources.Resources> ResourcesLoc { get; init; }
Components\Dialogs\TelemetryHelpDialog.razor.cs (2)
28
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
31
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
Components\Interactions\InteractionsProvider.cs (2)
90
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
93
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Layout\MainLayout.razor.cs (1)
74
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Layout\MobileNavMenu.razor.cs (1)
43
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Layout\NotificationsHeaderButton.razor.cs (1)
21
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Layout\ReconnectModal.razor.cs (1)
15
public required
IStringLocalizer
<ReconnectResources> Loc { get; init; }
Components\Layout\ResourcesLayout.razor.cs (6)
169
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
175
public required
IStringLocalizer
<Resources.Resources> ResourcesLoc { get; init; }
178
public required
IStringLocalizer
<Resources.StructuredLogs> StructuredLogsLoc { get; init; }
181
public required
IStringLocalizer
<TerminalStrings> TerminalLoc { get; init; }
184
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
187
public required
IStringLocalizer
<Columns> ColumnsLoc { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
96
public required
IStringLocalizer
<Resources.TerminalStrings> Loc { get; init; }
Components\Legacy\Dialogs\LegacyAIAgentsDialog.razor.cs (2)
24
public required
IStringLocalizer
<DialogsLoc> Loc { get; init; }
27
public required
IStringLocalizer
<Resources.ControlsStrings> ControlsStringsLoc { get; init; }
Components\Legacy\Dialogs\LegacyHelpDialog.razor.cs (1)
14
public required
IStringLocalizer
<Resources.Dialogs> Loc { get; init; }
Components\Legacy\Layout\LegacyMainLayout.razor.cs (1)
70
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Legacy\Layout\LegacyMobileNavMenu.razor.cs (1)
54
public required
IStringLocalizer
<Resources.Layout> Loc { get; init; }
Components\Legacy\Pages\ConsoleLogs.razor.cs (3)
94
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> Loc { get; init; }
97
public required
IStringLocalizer
<Dashboard.Resources.Resources> ResourcesLoc { get; init; }
100
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Legacy\Pages\Terminals.razor.cs (3)
46
public required
IStringLocalizer
<TerminalStrings> Loc { get; init; }
49
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
52
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> ConsoleLoc { get; init; }
Components\Legacy\Pages\TerminalWindow.razor.cs (1)
83
public required
IStringLocalizer
<Dashboard.Resources.TerminalStrings> Loc { get; init; }
Components\Legacy\Pages\TraceDetail.razor.cs (3)
83
public required
IStringLocalizer
<Dashboard.Resources.TraceDetail> Loc { get; init; }
86
public required
IStringLocalizer
<Dashboard.Resources.StructuredLogs> StructuredLogsLoc { get; init; }
89
public required
IStringLocalizer
<ControlsStrings> ControlStringsLoc { get; init; }
Components\Pages\ConsoleLogs.razor.cs (3)
94
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> Loc { get; init; }
97
public required
IStringLocalizer
<Dashboard.Resources.Resources> ResourcesLoc { get; init; }
100
public required
IStringLocalizer
<ControlsStrings> ControlsStringsLoc { get; init; }
Components\Pages\ResourceOverview.razor.cs (6)
114
public required
IStringLocalizer
<Dashboard.Resources.Resources> Loc { get; init; }
117
public required
IStringLocalizer
<Dashboard.Resources.Columns> ColumnsLoc { get; init; }
120
public required
IStringLocalizer
<Dashboard.Resources.ControlsStrings> ControlsStringsLoc { get; init; }
123
public required
IStringLocalizer
<Dashboard.Resources.Layout> LayoutLoc { get; init; }
126
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> ConsoleLogsLoc { get; init; }
129
public required
IStringLocalizer
<Dashboard.Resources.TerminalStrings> TerminalLoc { get; init; }
Components\Pages\Terminals.razor.cs (3)
46
public required
IStringLocalizer
<TerminalStrings> Loc { get; init; }
49
public required
IStringLocalizer
<ControlsStrings> ControlsLoc { get; init; }
52
public required
IStringLocalizer
<Dashboard.Resources.ConsoleLogs> ConsoleLoc { get; init; }
Components\Pages\TerminalWindow.razor.cs (1)
83
public required
IStringLocalizer
<Dashboard.Resources.TerminalStrings> Loc { get; init; }
Components\Pages\TraceDetail.razor.cs (4)
85
public required
IStringLocalizer
<Dashboard.Resources.TraceDetail> Loc { get; init; }
88
public required
IStringLocalizer
<Dashboard.Resources.StructuredLogs> StructuredLogsLoc { get; init; }
91
public required
IStringLocalizer
<Dashboard.Resources.Traces> TracesLoc { get; init; }
97
public required
IStringLocalizer
<ControlsStrings> ControlStringsLoc { get; init; }
Components\ResourcesGridColumns\StateColumnDisplay.razor.cs (1)
21
public required
IStringLocalizer
<Columns> Loc { get; init; }
Components\ResourcesGridColumns\UrlsColumnDisplay.razor.cs (1)
44
public required
IStringLocalizer
<Columns> Loc { get; init; }
Model\CommonMenuItems.cs (1)
16
IStringLocalizer
<ControlsStrings> loc,
Model\DashboardCommandExecutor.cs (3)
22
IStringLocalizer
<Dashboard.Resources.Resources> loc,
377
private static NotificationAction CreateCancelNotificationAction(
IStringLocalizer
<Dashboard.Resources.Resources> loc, Func<Task> onCancelAsync)
386
private static NotificationAction CreateViewResponseNotificationAction(
IStringLocalizer
<Dashboard.Resources.Resources> loc, CommandViewModel command, ResourceCommandResponseViewModel response)
Model\DashboardDialogService.cs (1)
20
IStringLocalizer
<Dialogs> dialogsLoc,
Model\DashboardFeedback.cs (3)
39
internal string BuildMarkdown(
IStringLocalizer
<Resources.Dialogs> loc)
105
IStringLocalizer
<Resources.Dialogs> loc) => duration switch
116
IStringLocalizer
<Resources.Dialogs> loc) => reason switch
Model\DefaultInstrumentUnitResolver.cs (1)
12
public sealed class DefaultInstrumentUnitResolver(
IStringLocalizer
<ControlsStrings> loc) : IInstrumentUnitResolver
Model\GenAI\GenAIItemViewModel.cs (2)
32
public BadgeDetail GetCategoryBadge(
IStringLocalizer
<Dialogs> loc)
61
public BadgeDetail GetTitleBadge(
IStringLocalizer
<Dialogs> loc)
Model\GenAI\GenAIMarkdownHelper.cs (1)
12
public static MarkdownProcessor CreateProcessor(
IStringLocalizer
<ControlsStrings> loc)
Model\HealthReportFormatter.cs (2)
17
public static string GetStatusWithTime(HealthReportViewModel report,
IStringLocalizer
<Resources.Resources> loc)
51
public static string? GetStatusTooltip(HealthReportViewModel report,
IStringLocalizer
<Resources.Resources> loc, BrowserTimeProvider timeProvider)
Model\Interaction\InteractionMarkdownHelper.cs (1)
13
public static MarkdownProcessor CreateProcessor(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\AspireCodeBlockExtension.cs (2)
14
private readonly
IStringLocalizer
<ControlsStrings> _loc;
16
public AspireCodeBlockExtension(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\HighlightedCodeBlockRenderer.cs (2)
21
private readonly
IStringLocalizer
<ControlsStrings> _loc;
23
public HighlightedCodeBlockRenderer(
IStringLocalizer
<ControlsStrings> loc)
Model\Markdown\MarkdownProcessor.cs (1)
17
public MarkdownProcessor(
IStringLocalizer
<ControlsStrings> loc, HashSet<string>? safeUrlSchemes, List<IMarkdownExtension> extensions)
Model\Otlp\TelemetryFilter.cs (2)
28
public string GetDisplayText(
IStringLocalizer
<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}";
76
public static string ConditionToString(FilterCondition c,
IStringLocalizer
<StructuredFiltering>? loc) =>
Model\ResourceGraph\ResourceGraphMapper.cs (2)
26
internal static GraphGameStringsDto GetGameStrings(
IStringLocalizer
<Aspire.Dashboard.Resources.Resources> loc) => new(
37
public static ResourceDto MapResource(ResourceViewModel r, IEnumerable<ResourceViewModel> graphResources, IDictionary<string, ResourceViewModel> resourcesByName,
IStringLocalizer
<Columns> columnsLoc, bool showHiddenResources, IconResolver iconResolver, IReadOnlyList<string> tags)
Model\ResourceMenuBuilder.cs (6)
34
private readonly
IStringLocalizer
<ControlsStrings> _controlLoc;
35
private readonly
IStringLocalizer
<Resources.Resources> _loc;
36
private readonly
IStringLocalizer
<TerminalStrings> _terminalLoc;
47
IStringLocalizer
<ControlsStrings> controlLoc,
48
IStringLocalizer
<Resources.Resources> loc,
49
IStringLocalizer
<TerminalStrings> terminalLoc,
Model\ResourceStateViewModel.cs (3)
23
internal static ResourceStateViewModel GetStateViewModel(ResourceViewModel resource,
IStringLocalizer
<Columns> loc)
104
internal static string GetResourceStateTooltip(ResourceViewModel resource,
IStringLocalizer
<Columns> loc, IEnumerable<ResourceViewModel>? allResources = null)
153
private static string GetStateText(ResourceViewModel resource,
IStringLocalizer
<Columns> loc)
Model\ResourceViewModel.cs (4)
81
internal string GetResourceTypeDisplayName(
IStringLocalizer
<Resources.Resources> localizer) => IsPersistentContainer
395
private readonly
IStringLocalizer
<Resources.Resources> _loc;
421
public DisplayedResourcePropertyViewModel(ResourcePropertyViewModel propertyViewModel,
IStringLocalizer
<Resources.Resources> loc, BrowserTimeProvider browserTimeProvider)
508
public sealed record KnownProperty(string Key, Func<
IStringLocalizer
<Resources.Resources>, string> GetDisplayName);
Model\SpanMenuBuilder.cs (2)
26
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
35
IStringLocalizer
<ControlsStrings> controlsLoc,
Model\SpanType.cs (1)
63
public static List<SelectViewModel<SpanType>> CreateKnownSpanTypes(
IStringLocalizer
<ControlsStrings> loc)
Model\StructuredLogMenuBuilder.cs (4)
25
private readonly
IStringLocalizer
<StructuredLogs> _loc;
26
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
34
IStringLocalizer
<StructuredLogs> loc,
35
IStringLocalizer
<ControlsStrings> controlsLoc,
Model\StructureLogsDetailsViewModel.cs (1)
13
public static string GetEventName(OtlpLogEntry logEntry,
IStringLocalizer
<Dashboard.Resources.StructuredLogs> loc)
Model\TraceLinkHelpers.cs (2)
23
IStringLocalizer
<Dialogs> loc,
40
IStringLocalizer
<Dialogs> loc,
Model\TraceMenuBuilder.cs (2)
25
private readonly
IStringLocalizer
<ControlsStrings> _controlsLoc;
34
IStringLocalizer
<ControlsStrings> controlsLoc,
ServiceClient\DashboardClient.cs (2)
69
private readonly
IStringLocalizer
<DashboardResources> _loc;
101
IStringLocalizer
<DashboardResources> loc,
src\Shared\ConsoleLogs\LogPauseViewModel.cs (1)
27
public string GetDisplayText(
IStringLocalizer
<Aspire.Dashboard.Resources.ConsoleLogs> loc, BrowserTimeProvider timeProvider)
Utils\DashboardUIHelpers.cs (1)
100
public static string FormatTimeAgo(TimeSpan age,
IStringLocalizer
<LayoutResources> loc, bool useShortFormat, string lessThanMinuteText)
Utils\FilterHelpers.cs (3)
27
IStringLocalizer
<StructuredFiltering> filterLoc,
28
IStringLocalizer
<Dialogs> dialogsLoc)
104
IStringLocalizer
<StructuredFiltering> filterLoc)
Aspire.Dashboard.Components.Tests (69)
Controls\ApplicationSummaryTests.cs (1)
147
Services.AddSingleton<
IStringLocalizer
<ResourceStrings>>(loc);
Controls\GenAIVisualizerDialogTests.cs (2)
70
Services.GetRequiredService<
IStringLocalizer
<Aspire.Dashboard.Resources.Dialogs>>()
191
var copyButtonLabel = Services.GetRequiredService<
IStringLocalizer
<ControlsStrings>>()
Controls\LogViewerTests.cs (6)
112
var
controlsLoc = Services.GetRequiredService<
IStringLocalizer
<Resources.ControlsStrings>>();
114
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
184
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
Controls\TerminalViewTests.cs (12)
42
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>();
43
var
controlsLoc = Services.GetRequiredService<
IStringLocalizer
<Resources.ControlsStrings>>();
80
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>();
106
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>();
177
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>();
729
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>();
Dialogs\DashboardFeedbackTests.cs (4)
23
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.Dialogs>>();
42
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.Dialogs>>();
Dialogs\NotificationEntryComponentTests.cs (1)
23
Services.AddSingleton<
IStringLocalizer
<Aspire.Dashboard.Resources.Dialogs>>(new TestStringLocalizer<Aspire.Dashboard.Resources.Dialogs>());
Layout\MainLayoutTerminalTests.cs (3)
44
var label = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>()[
113
var label = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>()[
182
var label = Services.GetRequiredService<
IStringLocalizer
<Resources.TerminalStrings>>()[
Pages\ConsoleLogsTests.cs (22)
80
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
126
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
529
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
667
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ControlsStrings>>();
706
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
755
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
802
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
906
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
1003
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
1115
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
1156
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
Pages\LoginTests.cs (2)
53
var
loc = Services.GetRequiredService<
IStringLocalizer
<Resources.ConsoleLogs>>();
Pages\ResourcesTests.cs (4)
816
var
loc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.Resources>>();
872
var
loc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.ControlsStrings>>();
Pages\StructuredLogsTests.cs (4)
285
var
controlsLoc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.ControlsStrings>>();
288
var
loc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.StructuredLogs>>();
Pages\TraceDetailsTests.cs (4)
326
var
loc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.TraceDetail>>();
327
var
controlsLoc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.ControlsStrings>>();
Pages\TracesTests.cs (4)
110
var
controlsLoc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.ControlsStrings>>();
113
var
loc = Services.GetRequiredService<
IStringLocalizer
<Dashboard.Resources.Traces>>();
Aspire.Dashboard.Tests (2)
DashboardUIHelpersTests.cs (2)
31
var
loc = services.GetRequiredService<
IStringLocalizer
<LayoutResources>>();
Microsoft.Extensions.Localization (1)
LocalizationServiceCollectionExtensions.cs (1)
58
services.TryAddTransient(typeof(
IStringLocalizer
<>), typeof(StringLocalizer<>));