15 references to Contains
Aspire.Dashboard (7)
Components\Dialogs\FilterDialog.razor.cs (2)
41CreateFilterSelectViewModel(FilterCondition.Contains), 80_formModel.Condition = _filterConditions.Single(c => c.Id == FilterCondition.Contains);
Extensions\TelemetryFilterFormatter.cs (2)
16FilterCondition.Contains => "contains", 47"contains" => FilterCondition.Contains,
Model\Otlp\TelemetryFilter.cs (2)
47FilterCondition.Contains => loc?[nameof(StructuredFiltering.ConditionContains)] ?? "contains", 61FilterCondition.Contains => (a, b) => a != null && a.Contains(b, StringComparisons.OtlpFieldValue),
Model\StructuredLogsViewModel.cs (1)
85filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText });
Aspire.Dashboard.Components.Tests (4)
Pages\StructuredLogsTests.cs (4)
71var filter = new TelemetryFilter { Field = "TestField", Condition = FilterCondition.Contains, Value = "TestValue" }; 107var filter1 = new TelemetryFilter { Field = "Test:Field", Condition = FilterCondition.Contains, Value = "Test Value" }; 108var filter2 = new TelemetryFilter { Field = "Test!@#", Condition = FilterCondition.Contains, Value = "http://localhost#fragment?hi=true" }; 109var filter3 = new TelemetryFilter { Field = "\u2764\uFE0F", Condition = FilterCondition.Contains, Value = "\u4F60" };
Aspire.Dashboard.Tests (4)
DashboardUrlsTests.cs (2)
35new TelemetryFilter { Condition = FilterCondition.Contains, Field = "test", Value = "value" } 46new TelemetryFilter { Condition = FilterCondition.Contains, Field = "test", Value = "value" },
TelemetryRepositoryTests\LogTests.cs (2)
814Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }] 822Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "message" }]