13 interfaces inheriting from IReadOnlyList
GenerateDocumentationAndConfigFiles (1)
Microsoft.AspNetCore.Http.Features (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.Maui.Controls (1)
Microsoft.TemplateEngine.Abstractions (1)
NuGet.Packaging (1)
Roslyn.Diagnostics.Analyzers (1)
System.Collections.Immutable (1)
213 implementations of IReadOnlyList
Aspire.Hosting (1)
Aspire.RabbitMQ.Client (1)
ConfigurationSchemaGenerator (1)
GenerateDocumentationAndConfigFiles (9)
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.Core (7)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.Build (9)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.Analyzers (9)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
Microsoft.CodeAnalysis.CodeStyle (9)
Microsoft.CodeAnalysis.Extensions.Package (8)
Microsoft.CodeAnalysis.Razor.Compiler (7)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
Microsoft.Extensions.AI (1)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (9)
LoggerMessage.cs (7)
466private readonly struct LogValues : IReadOnlyList<KeyValuePair<string, object?>>
504private readonly struct LogValues<T0> : IReadOnlyList<KeyValuePair<string, object?>>
552private readonly struct LogValues<T0, T1> : IReadOnlyList<KeyValuePair<string, object?>>
603private readonly struct LogValues<T0, T1, T2> : IReadOnlyList<KeyValuePair<string, object?>>
658private readonly struct LogValues<T0, T1, T2, T3> : IReadOnlyList<KeyValuePair<string, object?>>
719private readonly struct LogValues<T0, T1, T2, T3, T4> : IReadOnlyList<KeyValuePair<string, object?>>
784private readonly struct LogValues<T0, T1, T2, T3, T4, T5> : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
Microsoft.Gen.Logging.Unit.Tests (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
Microsoft.Gen.Metrics.Unit.Tests (1)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.Maui (2)
Microsoft.Maui.Controls (5)
Microsoft.ML.Core (1)
Microsoft.ML.Data (1)
Microsoft.ML.DataView (1)
Microsoft.ML.StandardTrainers (1)
Microsoft.Private.Windows.Core (2)
Microsoft.TemplateEngine.Utils (1)
PresentationFramework (2)
Roslyn.Diagnostics.Analyzers (9)
Shared (1)
System.Collections (3)
System.Collections.Immutable (7)
System.Diagnostics.DiagnosticSource (1)
System.Linq (3)
System.Linq.Expressions (1)
System.Private.CoreLib (5)
System.Private.Windows.Core (2)
System.Reflection.Metadata (2)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (3)
System.Windows.Forms.Primitives (1)
5818 references to IReadOnlyList
aspire (120)
Commands\DescribeCommand.cs (5)
162private int ExecuteSnapshot(IReadOnlyList<ResourceSnapshot> snapshots, string? dashboardBaseUrl, string? resourceName, OutputFormat format)
194private async Task<int> ExecuteWatchAsync(IAppHostAuxiliaryBackchannel connection, IReadOnlyList<ResourceSnapshot> initialSnapshots, string? dashboardBaseUrl, string? resourceName, OutputFormat format, CancellationToken cancellationToken)
220var resolved = ResourceSnapshotMapper.ResolveResources(resourceName, currentSnapshots);
261private void DisplayResourcesTable(IReadOnlyList<ResourceSnapshot> snapshots)
297private static ResourceDisplayState BuildResourceDisplayState(ResourceSnapshot snapshot, IReadOnlyList<ResourceSnapshot> allResources)
Commands\TelemetryLogsCommand.cs (6)
120var allOtlpResources = TelemetryCommandHelpers.ToOtlpResources(resources);
168private async Task<int> GetLogsSnapshotAsync(HttpClient client, string url, OutputFormat format, IReadOnlyList<IOtlpResource> allResources, CancellationToken cancellationToken)
194private async Task<int> StreamLogsAsync(HttpClient client, string url, OutputFormat format, IReadOnlyList<IOtlpResource> allResources, CancellationToken cancellationToken)
224private void DisplayLogsSnapshot(string json, IReadOnlyList<IOtlpResource> allResources)
238private void DisplayLogsStreamLine(string json, IReadOnlyList<IOtlpResource> allResources)
244private void DisplayResourceLogs(IEnumerable<OtlpResourceLogsJson> resourceLogs, IReadOnlyList<IOtlpResource> allResources)
Commands\TelemetrySpansCommand.cs (6)
116var allOtlpResources = TelemetryCommandHelpers.ToOtlpResources(resources);
169private async Task<int> GetSpansSnapshotAsync(HttpClient client, string url, OutputFormat format, IReadOnlyList<IOtlpResource> allResources, CancellationToken cancellationToken)
195private async Task<int> StreamSpansAsync(HttpClient client, string url, OutputFormat format, IReadOnlyList<IOtlpResource> allResources, CancellationToken cancellationToken)
225private void DisplaySpansSnapshot(string json, IReadOnlyList<IOtlpResource> allResources)
239private void DisplaySpansStreamLine(string json, IReadOnlyList<IOtlpResource> allResources)
245private void DisplayResourceSpans(IEnumerable<OtlpResourceSpansJson> resourceSpans, IReadOnlyList<IOtlpResource> allResources)
Aspire.Cli.Tests (131)
Commands\PublishCommandPromptingIntegrationTests.cs (9)
736public void AddPrompt(string promptId, string label, string inputType, string message, bool isRequired, IReadOnlyList<KeyValuePair<string, string>>? options = null, string? defaultValue = null, IReadOnlyList<string>? validationErrors = null)
741public void AddMultiInputPrompt(string promptId, string title, string message, IReadOnlyList<PromptInputData> inputs)
843internal sealed record PromptInputData(string Name, string Label, string InputType, bool IsRequired, IReadOnlyList<KeyValuePair<string, string>>? Options = null, string? Value = null, IReadOnlyList<string>? ValidationErrors = null);
844internal sealed record PromptData(string PromptId, IReadOnlyList<PromptInputData> Inputs, string Message, string? Title = null);
913public Task<IReadOnlyList<T>> PromptForSelectionsAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, IEnumerable<T>? preSelected = null, bool optional = false, CancellationToken cancellationToken = default) where T : notnull
924return Task.FromResult<IReadOnlyList<T>>(preSelected.ToList());
928return Task.FromResult<IReadOnlyList<T>>(choices.ToList());
Aspire.Dashboard (49)
Aspire.Dashboard.Components.Tests (57)
Pages\ResourcesTests.cs (15)
38var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
137var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
189var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
225resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
292IReadOnlyList<IRenderedComponent<SelectResourceOptions<string>>> filterComponents = null!;
320var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
402var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
430var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
460var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
492var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
525var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
566var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
610var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
652var dashboardClient = new TestDashboardClient(isEnabled: true, initialResources: initialResources, resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>);
691resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>,
Aspire.Dashboard.Tests (45)
Aspire.Hosting (69)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CognitiveServices (3)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.Kusto.Tests (2)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.CodeGeneration.Go (12)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
Aspire.Hosting.CodeGeneration.Java (12)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
Aspire.Hosting.CodeGeneration.Python (13)
Aspire.Hosting.CodeGeneration.Python.Tests (1)
Aspire.Hosting.CodeGeneration.Rust (12)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
Aspire.Hosting.CodeGeneration.TypeScript (14)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.DevTunnels (7)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Docker.Tests (1)
Aspire.Hosting.Foundry (2)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Milvus.Tests (2)
Aspire.Hosting.MySql (1)
Aspire.Hosting.Qdrant.Tests (2)
Aspire.Hosting.RemoteHost (17)
Aspire.Hosting.RemoteHost.Tests (4)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing.Tests (12)
Aspire.Hosting.Tests (68)
Aspire.Hosting.Yarp (3)
Aspire.Playground.Tests (7)
Aspire.RabbitMQ.Client.Tests (4)
Aspire.RabbitMQ.Client.v6.Tests (4)
Aspire.Templates.Tests (2)
Aspire.TypeSystem (15)
aspire-managed (1)
cdac-build-tool (7)
ConfigurationSchemaGenerator (1)
crossgen2 (3)
dotnet (66)
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (5)
23internal static IReadOnlyList<string> FindProjFileAtOrAbovePath(IPhysicalFileSystem fileSystem, string startPath, HashSet<string> extensionLimiters)
37IReadOnlyList<string>? projectsToProcess = GetConfiguredFiles(action.Args, creationEffects, "targetFiles", outputBasePath);
93private static IReadOnlyList<string> TryFindProjects(IEngineEnvironmentSettings environment, string outputBasePath, HashSet<string> extensionLimiters)
105private static IReadOnlyList<string> FindExistingTargetFiles(IPhysicalFileSystem fileSystem, IReadOnlyDictionary<string, string> actionArgs, string outputBasePath)
107var targetFiles = GetTargetFilesPaths(actionArgs, outputBasePath);
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (8)
13internal class DotnetSlnPostActionProcessor(Func<string, IReadOnlyList<string>, string?, bool?, bool>? addProjToSolutionCallback = null) : PostActionProcessorBase
15private readonly Func<string, IReadOnlyList<string>, string?, bool?, bool> _addProjToSolutionCallback = addProjToSolutionCallback ?? DotnetCommandCallbacks.AddProjectsToSolution;
21internal static IReadOnlyList<string> FindSolutionFilesAtOrAbovePath(IPhysicalFileSystem fileSystem, string outputBasePath)
23var slnFiles = FileFindHelpers.FindFilesAtOrAbovePath(fileSystem, outputBasePath, "*.sln");
29internal static bool TryGetProjectFilesToAdd(IPostAction actionConfig, ICreationResult templateCreationResult, string outputBasePath, [NotNullWhen(true)] out IReadOnlyList<string> projectFiles)
70IReadOnlyList<string> nearestSlnFilesFound = FindSolutionFilesAtOrAbovePath(environment.Host.FileSystem, outputBasePath);
77IReadOnlyList<string> projectFiles = GetConfiguredFiles(action.Args, creationEffects, "projectFiles", outputBasePath, (path) => Path.GetExtension(path).EndsWith("proj", StringComparison.OrdinalIgnoreCase));
113private bool AddProjectsToSolution(string solutionPath, IReadOnlyList<string> projectsToAdd, string? solutionFolder, bool? inRoot)
dotnet-dev-certs (3)
dotnet-format (1)
dotnet-sourcelink (1)
dotnet-suggest (1)
dotnet-svcutil-lib (3)
dotnet-watch (16)
GenerateDocumentationAndConfigFiles (52)
ILAssembler (21)
EntityRegistry.cs (21)
86public IReadOnlyList<EntityBase> GetSeenEntities(TableIndex table)
460static FieldDefinitionHandle GetFieldHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex)
463static MethodDefinitionHandle GetMethodHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex)
466static PropertyDefinitionHandle GetPropertyHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex)
469static EventDefinitionHandle GetEventHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex)
472static ParameterHandle GetParameterHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex)
475static EntityHandle GetHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex, TableIndex tokenType)
490var otherList = getList(listOwner[i]);
502var otherList = getList(listOwner[i]);
ilc (5)
ILCompiler.Compiler (29)
ILCompiler.ReadyToRun (6)
ILCompiler.TypeSystem (2)
illink (5)
ILLink.RoslynAnalyzer (5)
Microsoft.Analyzers.Extra (2)
Microsoft.Analyzers.Extra.Tests (40)
Microsoft.Analyzers.Local.Tests (31)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Authentication.Core (5)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Authorization.Policy (5)
Microsoft.AspNetCore.Components (38)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Components.Endpoints (69)
_generated\8\ResourceCollectionSerializerContext.ResourceAsset.g.cs (8)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Components.ResourceAsset((string)args[0], (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)args[1]),
37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)}, modifiers: null),
76var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>
91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>), global::System.Array.Empty<global::System.Type>(), null),
94properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>(options, info1);
116global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> __value_Properties = ((global::Microsoft.AspNetCore.Components.ResourceAsset)value).Properties;
141ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>),
144DefaultValue = default(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>),
Microsoft.AspNetCore.Components.Server (17)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (35)
Microsoft.AspNetCore.HeaderParsing (22)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
Microsoft.AspNetCore.Hosting (9)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Abstractions (6)
Microsoft.AspNetCore.Http.Connections (5)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.AspNetCore.Http.Features (3)
Microsoft.AspNetCore.Http.Results (6)
Microsoft.AspNetCore.Identity (92)
_generated\33\IdentityJsonSerializerContext.PublicKeyCredentialCreationOptions.g.cs (20)
122var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>
137AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("PubKeyCredParams", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>), global::System.Array.Empty<global::System.Type>(), null),
140properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>(options, info3);
164var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>
179AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("ExcludeCredentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>), global::System.Array.Empty<global::System.Type>(), null),
182properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>(options, info5);
206var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
221AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("Hints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
224properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info7);
248var info9 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
263AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions).GetProperty("AttestationFormats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
266properties[9] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info9);
323global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters> __value_PubKeyCredParams = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).PubKeyCredParams;
335global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor> __value_ExcludeCredentials = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).ExcludeCredentials;
347global::System.Collections.Generic.IReadOnlyList<string> __value_Hints = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).Hints;
358global::System.Collections.Generic.IReadOnlyList<string> __value_AttestationFormats = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions)value).AttestationFormats;
411private static extern void __set_PublicKeyCredentialCreationOptions_PubKeyCredParams(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions obj, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters> value);
415private static extern void __set_PublicKeyCredentialCreationOptions_ExcludeCredentials(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions obj, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor> value);
419private static extern void __set_PublicKeyCredentialCreationOptions_Hints(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions obj, global::System.Collections.Generic.IReadOnlyList<string> value);
423private static extern void __set_PublicKeyCredentialCreationOptions_AttestationFormats(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialCreationOptions obj, global::System.Collections.Generic.IReadOnlyList<string> value);
_generated\36\IdentityJsonSerializerContext.PublicKeyCredentialRequestOptions.g.cs (10)
116var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>
131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("AllowCredentials", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>), global::System.Array.Empty<global::System.Type>(), null),
134properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>(options, info3);
158var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions).GetProperty("Hints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
176properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info5);
232global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor> __value_AllowCredentials = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions)value).AllowCredentials;
243global::System.Collections.Generic.IReadOnlyList<string> __value_Hints = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions)value).Hints;
278private static extern void __set_PublicKeyCredentialRequestOptions_AllowCredentials(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions obj, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor> value);
282private static extern void __set_PublicKeyCredentialRequestOptions_Hints(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialRequestOptions obj, global::System.Collections.Generic.IReadOnlyList<string> value);
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Mvc.Abstractions (15)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.AspNetCore.Mvc.ApiExplorer (24)
Microsoft.AspNetCore.Mvc.Core (156)
Routing\ActionConstraintMatcherPolicy.cs (10)
31public bool AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints)
78var finalMatches = EvaluateActionConstraints(httpContext, candidateSet);
102private IReadOnlyList<(int index, ActionSelectorCandidate candidate)>? EvaluateActionConstraints(
120var matches = EvaluateActionConstraintsCore(httpContext, candidateSet, items, startingOrder: null);
139IReadOnlyList<IActionConstraint>? constraints = Array.Empty<IActionConstraint>();
154private static IReadOnlyList<(int index, ActionSelectorCandidate candidate)>? EvaluateActionConstraintsCore(
157IReadOnlyList<(int index, ActionSelectorCandidate candidate)> items,
168var constraints = item.candidate.Constraints;
206var constraints = item.candidate.Constraints;
257var matches = EvaluateActionConstraintsCore(httpContext, candidateSet, endpointsWithConstraint, order);
Routing\ActionEndpointFactory.cs (15)
42IReadOnlyList<ConventionalRouteEntry> routes,
43IReadOnlyList<Action<EndpointBuilder>> conventions,
44IReadOnlyList<Action<EndpointBuilder>> groupConventions,
45IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
46IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
179IReadOnlyList<Action<EndpointBuilder>> groupConventions,
180IReadOnlyList<Action<EndpointBuilder>> conventions,
181IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
182IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
336IReadOnlyList<Action<EndpointBuilder>> groupConventions,
337IReadOnlyList<Action<EndpointBuilder>> conventions,
338IReadOnlyList<Action<EndpointBuilder>> perRouteConventions,
339IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions,
340IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
341IReadOnlyList<Action<EndpointBuilder>> perRouteFinallyConventions)
Routing\DynamicRouteValueTransformer.cs (7)
23/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> as well as
33/// <item><description><see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /></description></item>
77/// Implementations of <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> may further
82/// <see cref="FilterAsync(HttpContext, RouteValueDictionary, IReadOnlyList{Endpoint})" /> will not be called in the case
86public virtual ValueTask<IReadOnlyList<Endpoint>> FilterAsync(HttpContext httpContext, RouteValueDictionary values, IReadOnlyList<Endpoint> endpoints)
88return new ValueTask<IReadOnlyList<Endpoint>>(endpoints);
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.Razor (7)
Microsoft.AspNetCore.Mvc.RazorPages (32)
Microsoft.AspNetCore.Mvc.TagHelpers (8)
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
Microsoft.AspNetCore.OutputCaching (8)
Microsoft.AspNetCore.RateLimiting (5)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.Razor (2)
Microsoft.AspNetCore.Razor.Runtime (4)
Microsoft.AspNetCore.Razor.Utilities.Shared (182)
ReadOnlyListExtensions.cs (155)
14/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form.
18/// <param name="list">An <see cref="IReadOnlyList{T}"/> of values to invoke a transform function on.</param>
24public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector)
50/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form by incorporating the element's index.
54/// <param name="list">An <see cref="IReadOnlyList{T}"/> of values to invoke a transform function on.</param>
62public static ImmutableArray<TResult> SelectAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, int, TResult> selector)
87public static T[] ToArray<T>(this IReadOnlyList<T> list)
101public static ImmutableArray<T> ToImmutableArray<T>(this IReadOnlyList<T> list)
115private static T[] CreateArray<T>(IReadOnlyList<T> list)
127/// The <see cref="IReadOnlyList{T}"/> to check for emptiness.
132public static bool Any<T>(this IReadOnlyList<T> list)
139/// An <see cref="IReadOnlyList{T}"/> whose elements to apply the predicate to.
148public static bool Any<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
165/// An <see cref="IReadOnlyList{T}"/> whose elements to apply the predicate to.
177public static bool Any<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
194/// An <see cref="IReadOnlyList{T}"/> whose elements to apply the predicate to.
203public static bool All<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
220/// An <see cref="IReadOnlyList{T}"/> whose elements to apply the predicate to.
232public static bool All<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
249/// An <see cref="IReadOnlyList{T}"/> to return the first element of.
257public static T First<T>(this IReadOnlyList<T> list)
264/// An <see cref="IReadOnlyList{T}"/> to return an element from.
275public static T First<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
292/// An <see cref="IReadOnlyList{T}"/> to return an element from.
306public static T First<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
323/// An <see cref="IReadOnlyList{T}"/> to return the first element of.
329public static T? FirstOrDefault<T>(this IReadOnlyList<T> list)
336/// An <see cref="IReadOnlyList{T}"/> to return the first element of.
345public static T FirstOrDefault<T>(this IReadOnlyList<T> list, T defaultValue)
352/// An <see cref="IReadOnlyList{T}"/> to return an element from.
362public static T? FirstOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
379/// An <see cref="IReadOnlyList{T}"/> to return an element from.
392public static T? FirstOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate, T defaultValue)
409/// An <see cref="IReadOnlyList{T}"/> to return an element from.
422public static T? FirstOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
439/// An <see cref="IReadOnlyList{T}"/> to return an element from.
455public static T? FirstOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate, T defaultValue)
472/// An <see cref="IReadOnlyList{T}"/> to return the last element of.
480public static T Last<T>(this IReadOnlyList<T> list)
487/// An <see cref="IReadOnlyList{T}"/> to return an element from.
498public static T Last<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
515/// An <see cref="IReadOnlyList{T}"/> to return an element from.
529public static T Last<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
546/// An <see cref="IReadOnlyList{T}"/> to return the last element of.
552public static T? LastOrDefault<T>(this IReadOnlyList<T> list)
559/// An <see cref="IReadOnlyList{T}"/> to return the last element of.
568public static T LastOrDefault<T>(this IReadOnlyList<T> list, T defaultValue)
575/// An <see cref="IReadOnlyList{T}"/> to return an element from.
585public static T? LastOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
602/// An <see cref="IReadOnlyList{T}"/> to return an element from.
615public static T? LastOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
632/// An <see cref="IReadOnlyList{T}"/> to return an element from.
645public static T LastOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate, T defaultValue)
662/// An <see cref="IReadOnlyList{T}"/> to return an element from.
678public static T LastOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate, T defaultValue)
695/// An <see cref="IReadOnlyList{T}"/> to return the single element of.
706public static T Single<T>(this IReadOnlyList<T> list)
721/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
735public static T Single<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
767/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
784public static T Single<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
816/// An <see cref="IReadOnlyList{T}"/> to return the single element of.
825public static T? SingleOrDefault<T>(this IReadOnlyList<T> list)
840/// An <see cref="IReadOnlyList{T}"/> to return the single element of.
852public static T SingleOrDefault<T>(this IReadOnlyList<T> list, T defaultValue)
867/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
879public static T? SingleOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate)
906/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
921public static T? SingleOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate)
948/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
963public static T SingleOrDefault<T>(this IReadOnlyList<T> list, Func<T, bool> predicate, T defaultValue)
990/// An <see cref="IReadOnlyList{T}"/> to return a single element from.
1008public static T SingleOrDefault<T, TArg>(this IReadOnlyList<T> list, TArg arg, Func<T, TArg, bool> predicate, T defaultValue)
1030public static Enumerable<T> AsEnumerable<T>(this IReadOnlyList<T> list)
1037public static Enumerable<T> AsEnumerable<T>(this IReadOnlyList<T> list, int start)
1046public static Enumerable<T> AsEnumerable<T>(this IReadOnlyList<T> list, Index startIndex)
1056public static Enumerable<T> AsEnumerable<T>(this IReadOnlyList<T> list, Range range)
1065public static Enumerable<T> AsEnumerable<T>(this IReadOnlyList<T> list, int start, int count)
1075public readonly ref struct Enumerable<T>(IReadOnlyList<T> list, int start, int count)
1077private readonly IReadOnlyList<T> _list = list;
1160public static void CopyTo<T>(this IReadOnlyList<T> list, Span<T> destination)
1195/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order.
1198/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1202public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list)
1214/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order.
1217/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1222public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list, IComparer<T> comparer)
1234/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order.
1237/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1242public static ImmutableArray<T> OrderAsArray<T>(this IReadOnlyList<T> list, Comparison<T> comparison)
1254/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order.
1257/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1261public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list)
1273/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order.
1276/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1281public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list, IComparer<T> comparer)
1293/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order.
1296/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1301public static ImmutableArray<T> OrderDescendingAsArray<T>(this IReadOnlyList<T> list, Comparison<T> comparison)
1313/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order according to a key.
1317/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1323this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector)
1335/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order according to a key.
1339/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1346this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector, IComparer<TKey> comparer)
1358/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in ascending order according to a key.
1362/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1369this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector, Comparison<TKey> comparison)
1381/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order according to a key.
1385/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1391this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector)
1403/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order according to a key.
1407/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1414this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector, IComparer<TKey> comparer)
1426/// Sorts the elements of an <see cref="IReadOnlyList{T}"/> in descending order according to a key.
1430/// <param name="list">An <see cref="IReadOnlyList{T}"/> whose elements will be sorted.</param>
1437this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector, Comparison<TKey> comparison)
1449this IReadOnlyList<T> list, ref readonly SortHelper<T> sortHelper)
1453this IReadOnlyList<TElement> list, Func<TElement, TKey> keySelector, ref readonly SortHelper<TKey> sortHelper)
1481/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order.
1485/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1491public static ImmutableArray<TResult> SelectAndOrderAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector)
1500/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order.
1504/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1512this IReadOnlyList<T> list, Func<T, TResult> selector, IComparer<TResult> comparer)
1521/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order.
1525/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1533this IReadOnlyList<T> list, Func<T, TResult> selector, Comparison<TResult> comparison)
1542/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order.
1546/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1552public static ImmutableArray<TResult> SelectAndOrderDescendingAsArray<T, TResult>(this IReadOnlyList<T> list, Func<T, TResult> selector)
1561/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order.
1565/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1573this IReadOnlyList<T> list, Func<T, TResult> selector, IComparer<TResult> comparer)
1582/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order.
1586/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1594this IReadOnlyList<T> list, Func<T, TResult> selector, Comparison<TResult> comparison)
1603/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order according to a key.
1608/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1616this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector)
1625/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order according to a key.
1630/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1639this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, IComparer<TKey> comparer)
1648/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in ascending order according to a key.
1653/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1662this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, Comparison<TKey> comparison)
1671/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order according to a key.
1676/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1684this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector)
1693/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order according to a key.
1698/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1707this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, IComparer<TKey> comparer)
1716/// Projects each element of an <see cref="IReadOnlyList{T}"/> into a new form and sorts them in descending order according to a key.
1721/// <param name="list">An <see cref="IReadOnlyList{T}"/> of elements to invoke a transform function on and sort.</param>
1730this IReadOnlyList<TElement> list, Func<TElement, TResult> selector, Func<TResult, TKey> keySelector, Comparison<TKey> comparison)
Microsoft.AspNetCore.Routing (111)
Patterns\RoutePatternFactory.cs (10)
36private static readonly IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> EmptyPoliciesDictionary =
37new ReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>(new Dictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>>());
537? parameterPolicyReferences.ToDictionary(kvp => kvp.Key, kvp => (IReadOnlyList<RoutePatternParameterPolicyReference>)kvp.Value.ToArray())
540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(),
1091var parameters = CombineLists(left.Parameters, right.Parameters, CheckDuplicateParameters, rawText);
1092var pathSegments = CombineLists(left.PathSegments, right.PathSegments);
1101internal static IReadOnlyList<T> CombineLists<T>(
1102IReadOnlyList<T> leftList,
1103IReadOnlyList<T> rightList,
Microsoft.AspNetCore.Server.Kestrel.Core (7)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Core (71)
DefaultHubLifetimeManager.cs (9)
225public override Task SendGroupsAsync(IReadOnlyList<string> groupNames, string methodName, object?[] args, CancellationToken cancellationToken = default)
254public override Task SendGroupExceptAsync(string groupName, string methodName, object?[] args, IReadOnlyList<string> excludedConnectionIds, CancellationToken cancellationToken = default)
264DefaultHubLifetimeManager<THub>.SendToGroupConnections(methodName, args, group, (connection, state) => !((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), excludedConnectionIds, ref tasks, ref message, cancellationToken);
316public override Task SendAllExceptAsync(string methodName, object?[] args, IReadOnlyList<string> excludedConnectionIds, CancellationToken cancellationToken = default)
318return SendToAllConnections(methodName, args, (connection, state) => !((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), excludedConnectionIds, cancellationToken);
322public override Task SendConnectionsAsync(IReadOnlyList<string> connectionIds, string methodName, object?[] args, CancellationToken cancellationToken = default)
324return SendToAllConnections(methodName, args, (connection, state) => ((IReadOnlyList<string>)state!).Contains(connection.ConnectionId), connectionIds, cancellationToken);
328public override Task SendUsersAsync(IReadOnlyList<string> userIds, string methodName, object?[] args, CancellationToken cancellationToken = default)
330return SendToAllConnections(methodName, args, (connection, state) => ((IReadOnlyList<string>)state!).Contains(connection.UserIdentifier), userIds, cancellationToken);
HubLifetimeManager.cs (5)
47public abstract Task SendAllExceptAsync(string methodName, object?[] args, IReadOnlyList<string> excludedConnectionIds, CancellationToken cancellationToken = default);
67public abstract Task SendConnectionsAsync(IReadOnlyList<string> connectionIds, string methodName, object?[] args, CancellationToken cancellationToken = default);
87public abstract Task SendGroupsAsync(IReadOnlyList<string> groupNames, string methodName, object?[] args, CancellationToken cancellationToken = default);
98public abstract Task SendGroupExceptAsync(string groupName, string methodName, object?[] args, IReadOnlyList<string> excludedConnectionIds, CancellationToken cancellationToken = default);
118public abstract Task SendUsersAsync(IReadOnlyList<string> userIds, string methodName, object?[] args, CancellationToken cancellationToken = default);
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Microsoft.AspNetCore.StaticAssets (51)
_generated\1\StaticAssetsManifestJsonContext.StaticAssetDescriptor.g.cs (9)
119var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>>
134AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Selectors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>), global::System.Array.Empty<global::System.Type>(), null),
137properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>>(options, info3);
141var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>>
156AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>), global::System.Array.Empty<global::System.Type>(), null),
159properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>>(options, info4);
163var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>>
178AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticAssets.StaticAssetDescriptor).GetProperty("ResponseHeaders", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>), global::System.Array.Empty<global::System.Type>(), null),
181properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>>(options, info5);
Microsoft.Build (95)
Microsoft.Build.Framework (26)
Utilities\FileMatcher.cs (14)
52private static readonly Lazy<ConcurrentDictionary<string, IReadOnlyList<string>>> s_cachedGlobExpansions = new Lazy<ConcurrentDictionary<string, IReadOnlyList<string>>>(() => new ConcurrentDictionary<string, IReadOnlyList<string>>(StringComparer.OrdinalIgnoreCase));
56private readonly ConcurrentDictionary<string, IReadOnlyList<string>> _cachedGlobExpansions;
92public FileMatcher(IFileSystem fileSystem, ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) : this(
105internal FileMatcher(IFileSystem fileSystem, GetFileSystemEntries getFileSystemEntries, ConcurrentDictionary<string, IReadOnlyList<string>> getFileSystemDirectoryEntriesCache = null)
131IReadOnlyList<string> allEntriesForPath = getFileSystemDirectoryEntriesCache.GetOrAdd(
168internal delegate IReadOnlyList<string> GetFileSystemEntries(FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory);
234private static IReadOnlyList<string> GetAccessibleFileSystemEntries(IFileSystem fileSystem, FileSystemEntity entityType, string path, string pattern, string projectDirectory, bool stripProjectDirectory)
257private static IReadOnlyList<string> GetAccessibleFilesAndDirectories(IFileSystem fileSystem, string path, string pattern)
322private static IReadOnlyList<string> GetAccessibleFiles(
388private static IReadOnlyList<string> GetAccessibleDirectories(
514IReadOnlyList<string> entries = getFileSystemEntries(FileSystemEntity.FilesAndDirectories, longPath, parts[i], null, false);
1944IReadOnlyList<string>? files;
Microsoft.Build.NuGetSdkResolver (4)
Microsoft.Build.Tasks.Core (5)
ResourceHandling\MSBuildResXReader.cs (3)
22public static IReadOnlyList<IResource> ReadResources(Stream s, string filename, bool pathsRelativeToBasePath, TaskLoggingHelper log, bool logWarningForBinaryFormatter)
315public static IReadOnlyList<IResource> GetResourcesFromFile(string filename, bool pathsRelativeToBasePath, TaskLoggingHelper log, bool logWarningForBinaryFormatter)
323public static IReadOnlyList<IResource> GetResourcesFromString(string resxContent, TaskLoggingHelper log, bool logWarningForBinaryFormatter, string basePath = null, bool? useRelativePath = null)
Microsoft.Build.Tasks.Git (2)
Microsoft.CodeAnalysis (117)
Microsoft.CodeAnalysis.Analyzers (52)
Microsoft.CodeAnalysis.AnalyzerUtilities (46)
Microsoft.CodeAnalysis.CodeStyle (43)
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
Microsoft.CodeAnalysis.CSharp (9)
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
55nameof(IReadOnlyList<>),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Features (15)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
55nameof(IReadOnlyList<>),
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
Microsoft.CodeAnalysis.Extensions.Package (19)
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Microsoft.CodeAnalysis.Features (84)
Microsoft.CodeAnalysis.Razor.Compiler (19)
Microsoft.CodeAnalysis.ResxSourceGenerator (43)
Microsoft.CodeAnalysis.Workspaces (199)
Workspace\Solution\ProjectInfo.cs (24)
125public IReadOnlyList<DocumentInfo> Documents { get; }
130public IReadOnlyList<ProjectReference> ProjectReferences { get; }
135public IReadOnlyList<MetadataReference> MetadataReferences { get; }
140public IReadOnlyList<AnalyzerReference> AnalyzerReferences { get; }
145public IReadOnlyList<DocumentInfo> AdditionalDocuments { get; }
150public IReadOnlyList<DocumentInfo> AnalyzerConfigDocuments { get; }
161IReadOnlyList<DocumentInfo> documents,
162IReadOnlyList<ProjectReference> projectReferences,
163IReadOnlyList<MetadataReference> metadataReferences,
164IReadOnlyList<AnalyzerReference> analyzerReferences,
165IReadOnlyList<DocumentInfo> additionalDocuments,
166IReadOnlyList<DocumentInfo> analyzerConfigDocuments,
289IReadOnlyList<DocumentInfo>? documents = null,
290IReadOnlyList<ProjectReference>? projectReferences = null,
291IReadOnlyList<MetadataReference>? metadataReferences = null,
292IReadOnlyList<AnalyzerReference>? analyzerReferences = null,
293IReadOnlyList<DocumentInfo>? additionalDocuments = null,
294IReadOnlyList<DocumentInfo>? analyzerConfigDocuments = null,
300var newDocuments = documents ?? Documents;
301var newProjectReferences = projectReferences ?? ProjectReferences;
302var newMetadataReferences = metadataReferences ?? MetadataReferences;
303var newAnalyzerReferences = analyzerReferences ?? AnalyzerReferences;
304var newAdditionalDocuments = additionalDocuments ?? AdditionalDocuments;
305var newAnalyzerConfigDocuments = analyzerConfigDocuments ?? AnalyzerConfigDocuments;
Workspace\Solution\Solution.cs (10)
61IReadOnlyList<AnalyzerReference> analyzerReferences,
120public IReadOnlyList<ProjectId> ProjectIds => this.SolutionState.ProjectIds;
724var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(projectReferences, nameof(projectReferences));
808var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(metadataReferences, nameof(metadataReferences));
852var boxedReferences = Roslyn.Utilities.EnumerableExtensions.ToBoxedImmutableArray([
902var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences));
965var collection = PublicContract.ToBoxedImmutableArrayWithDistinctNonNullItems(analyzerReferences, nameof(analyzerReferences));
1034private Solution AddDocumentImpl(ProjectState project, DocumentId documentId, string name, SourceText text, IReadOnlyList<string>? folders, string? filePath, bool isGenerated)
1263var collection = PublicContract.ToBoxedImmutableArrayWithNonNullItems(folders, nameof(folders));
1738public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.SolutionState.AnalyzerReferences;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CSharp (2)
Microsoft.Data.Analysis (31)
Microsoft.Data.Analysis.Tests (3)
Microsoft.Diagnostics.DataContractReader.Abstractions (14)
Microsoft.Diagnostics.DataContractReader.Contracts (25)
Microsoft.Diagnostics.DataContractReader.Legacy (6)
Microsoft.DotNet.ApiCompatibility (15)
Microsoft.DotNet.ApiSymbolExtensions (6)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Tasks.Packaging (9)
Microsoft.DotNet.Cli.Definitions (1)
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.HotReload.Utils.Generator (1)
Microsoft.DotNet.HotReload.Watch (42)
HotReload\HotReloadDotNetWatcher.cs (6)
324async Task<ImmutableArray<ChangedFile>> CaptureChangedFilesSnapshot(IReadOnlyList<string> rebuiltProjects)
898private void ReportFileChanges(IReadOnlyList<ChangedFile> changedFiles)
913string GetMessage(IReadOnlyList<ChangedFile> items, ChangeKind kind)
972Func<IReadOnlyList<string>, CancellationToken, ValueTask<string>>? frameworkSelector,
973Func<IReadOnlyList<DeviceInfo>, CancellationToken, ValueTask<DeviceInfo>>? deviceSelector,
1179Func<IReadOnlyList<DeviceInfo>, CancellationToken, ValueTask<DeviceInfo>> deviceSelector,
Microsoft.DotNet.HotReload.WebAssembly.Browser (3)
Microsoft.DotNet.PackageValidation (19)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.AI (12)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (5)
Microsoft.Extensions.AI.Evaluation.Reporting (11)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (5)
Microsoft.Extensions.AI.Evaluation.Safety (9)
Microsoft.Extensions.AI.Integration.Tests (3)
Microsoft.Extensions.AI.OpenAI (3)
Microsoft.Extensions.AI.Tests (18)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Tests (26)
Microsoft.Extensions.DependencyModel (25)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Microsoft.Extensions.Diagnostics.Testing (7)
Logging\FakeLogRecord.cs (4)
27public FakeLogRecord(LogLevel level, EventId id, object? state, Exception? exception, string message, IReadOnlyList<object?> scopes, string? category, bool enabled, DateTimeOffset timestamp)
65public IReadOnlyList<KeyValuePair<string, string?>>? StructuredState => (IReadOnlyList<KeyValuePair<string, string?>>?)State;
104public IReadOnlyList<object?> Scopes { get; }
Microsoft.Extensions.Diagnostics.Testing.Tests (16)
Microsoft.Extensions.DotNetDeltaApplier (5)
Microsoft.Extensions.FileProviders.Embedded (1)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Http.Diagnostics.Tests (21)
Microsoft.Extensions.Identity.Core (5)
src\aspnetcore\src\Shared\Metrics\MetricsConstants.cs (5)
11public static readonly IReadOnlyList<double> ShortSecondsBucketBoundaries = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
14public static readonly IReadOnlyList<double> LongSecondsBucketBoundaries = [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1, 2, 5, 10, 30, 60, 120, 300];
17public static readonly IReadOnlyList<double> BlazorRenderingSecondsBucketBoundaries = [0.000001, 0.00001, 0.0001, 0.001, 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10];
20public static readonly IReadOnlyList<int> BlazorRenderingDiffLengthBucketBoundaries = [0, 1, 2, 4, 6, 8, 10, 20, 30, 40, 50, 100];
23public static readonly IReadOnlyList<double> BlazorCircuitSecondsBucketBoundaries = [1, 3, 10, 30, 1 * 60, 3 * 60, 10 * 60, 30 * 60, 1 * 60 * 60, 3 * 60 * 60, 10 * 60 * 60, 24 * 60 * 60];
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Console (2)
JsonConsoleFormatter.cs (2)
51logEntry.State != null, logEntry.State?.ToString(), logEntry.State as IReadOnlyList<KeyValuePair<string, object?>>, stamp);
56string category, int eventId, string? exception, bool hasState, string? stateMessage, IReadOnlyList<KeyValuePair<string, object?>>? stateProperties,
Microsoft.Extensions.Logging.EventSource (6)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Extensions.Logging.MSBuild (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Primitives (2)
Microsoft.Extensions.ServiceDiscovery (4)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Microsoft.Extensions.Telemetry (8)
Microsoft.Extensions.Telemetry.Abstractions (4)
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (19)
Microsoft.Extensions.Validation (3)
Microsoft.Gen.BuildMetadata.Unit.Tests (15)
Microsoft.Gen.ComplianceReports (2)
Microsoft.Gen.ComplianceReports.Unit.Tests (17)
Microsoft.Gen.ContextualOptions.Unit.Tests (13)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Generated.Tests (12)
Microsoft.Gen.Logging.Unit.Tests (27)
Microsoft.Gen.MetadataExtractor (8)
Microsoft.Gen.MetadataExtractor.Unit.Tests (18)
Microsoft.Gen.Metrics (4)
Microsoft.Gen.Metrics.Generated.Tests (10)
Microsoft.Gen.Metrics.Unit.Tests (100)
Microsoft.Gen.MetricsReports (4)
Microsoft.Gen.MetricsReports.Unit.Tests (18)
Microsoft.Maui (19)
Microsoft.Maui.Controls (90)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.SourceGen (4)
Microsoft.Maui.Essentials (4)
Microsoft.Maui.Graphics (6)
Microsoft.ML.AutoML (8)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Core (17)
Data\RoleMappedSchema.cs (11)
155private readonly Dictionary<string, IReadOnlyList<DataViewSchema.Column>> _map;
157private RoleMappedSchema(DataViewSchema schema, Dictionary<string, IReadOnlyList<DataViewSchema.Column>> map)
167var cols = kvp.Value;
244=> _map.TryGetValue(role.Value, out var cols) && cols.Count == 1;
250=> _map.TryGetValue(role.Value, out var cols) && cols.Count > 1;
256public IReadOnlyList<DataViewSchema.Column> GetColumns(ColumnRole role)
257=> _map.TryGetValue(role.Value, out var list) ? list : null;
289if (_map.TryGetValue(role.Value, out var list))
305var infos = GetColumns(role);
311private static Dictionary<string, IReadOnlyList<DataViewSchema.Column>> Copy(Dictionary<string, List<DataViewSchema.Column>> map)
313var copy = new Dictionary<string, IReadOnlyList<DataViewSchema.Column>>(map.Count);
Microsoft.ML.Data (34)
Microsoft.ML.DataView (1)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.Experimental (1)
Microsoft.ML.FastTree (19)
Microsoft.ML.GenAI.Core (9)
Microsoft.ML.GenAI.LLaMA (4)
Microsoft.ML.GenAI.LLaMA.Tests (1)
Microsoft.ML.GenAI.Mistral.Tests (1)
Microsoft.ML.GenAI.Phi (4)
Microsoft.ML.GenAI.Phi.Tests (4)
Microsoft.ML.IntegrationTests (29)
Microsoft.ML.Maml (2)
Microsoft.ML.Mkl.Components (3)
Microsoft.ML.PerformanceTests (2)
Microsoft.ML.Recommender (5)
Microsoft.ML.Samples (11)
Microsoft.ML.StandardTrainers (17)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tests (16)
Microsoft.ML.TimeSeries (36)
Microsoft.ML.Tokenizers (58)
Model\BertTokenizer.cs (15)
141public new IReadOnlyList<int> EncodeToIds(string text, bool considerPreTokenization = true, bool considerNormalization = true) =>
151public new IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool considerPreTokenization = true, bool considerNormalization = true) =>
162public IReadOnlyList<int> EncodeToIds(string text, bool addSpecialTokens, bool considerPreTokenization = true, bool considerNormalization = true) =>
173public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addSpecialTokens, bool considerPreTokenization = true, bool considerNormalization = true) =>
186public new IReadOnlyList<int> EncodeToIds(string text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
199public new IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
213public IReadOnlyList<int> EncodeToIds(string text, int maxTokenCount, bool addSpecialTokens, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
227public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, bool addSpecialTokens, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true) =>
230private IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, int maxTokenCount, bool addSpecialTokens, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
241IReadOnlyList<int> ids = text is null ?
261private IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool addSpecialTokens, bool considerPreTokenization = true, bool considerNormalization = true)
263IReadOnlyList<int> ids = text is null ? base.EncodeToIds(textSpan, considerPreTokenization, considerNormalization) : base.EncodeToIds(text, considerPreTokenization, considerNormalization);
290public IReadOnlyList<int> BuildInputsWithSpecialTokens(IEnumerable<int> tokenIds, IEnumerable<int>? additionalTokenIds = null)
402public IReadOnlyList<int> GetSpecialTokensMask(IEnumerable<int> tokenIds, IEnumerable<int>? additionalTokenIds = null, bool alreadyHasSpecialTokens = false)
558public IReadOnlyList<int> CreateTokenTypeIdsFromSequences(IEnumerable<int> tokenIds, IEnumerable<int>? additionalTokenIds = null)
Model\CodeGenTokenizer.cs (8)
302public IReadOnlyList<EncodedToken> EncodeToTokens(string text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
320public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
512public IReadOnlyList<int> EncodeToIds(string text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
527public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
545public IReadOnlyList<int> EncodeToIds(string text, int maxTokenCount, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
563public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, bool addPrefixSpace, bool addBeginningOfSentence, bool addEndOfSentence, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
568private IReadOnlyList<int> EncodeToIds(
1571private static void AppendTokenWithOffsetAdjusting(IReadOnlyList<EncodedToken> tokensToAdd, List<EncodedToken> tokens, int offset, bool addPrefixSpace)
Model\SentencePieceBpeModel.cs (3)
67public override IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization)
281public override IReadOnlyList<int> EncodeToIds(string? text, ReadOnlySpan<char> textSpan, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization,
310private IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization,
Model\SentencePieceTokenizer.cs (6)
139public IReadOnlyList<EncodedToken> EncodeToTokens(string text, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
152public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
182public IReadOnlyList<int> EncodeToIds(string text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
194public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, bool considerPreTokenization = true, bool considerNormalization = true)
209public IReadOnlyList<int> EncodeToIds(string text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
224public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool addBeginningOfSentence, bool addEndOfSentence, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
PreTokenizer\CompositePreTokenizer.cs (5)
21private readonly IReadOnlyList<PreTokenizer> _preTokenizers;
33public CompositePreTokenizer(IReadOnlyList<PreTokenizer> preTokenizers, IReadOnlyDictionary<string, int>? specialTokens = null)
76public IReadOnlyList<PreTokenizer> PreTokenizers => _preTokenizers;
92static IEnumerable<(int Offset, int Length)> SplitText(string text, IReadOnlyList<PreTokenizer> preTokenizers, int preTokenizerIndex, int offset, int length)
170static IEnumerable<(int Offset, int Length)> SplitText(char[] text, IReadOnlyList<PreTokenizer> preTokenizers, int preTokenizerIndex, int offset, int length)
Tokenizer.cs (6)
67public IReadOnlyList<int> EncodeToIds(string text, bool considerPreTokenization = true, bool considerNormalization = true)
77public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, bool considerPreTokenization = true, bool considerNormalization = true)
90public IReadOnlyList<int> EncodeToIds(string text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
116public IReadOnlyList<int> EncodeToIds(ReadOnlySpan<char> text, int maxTokenCount, out string? normalizedText, out int charsConsumed, bool considerPreTokenization = true, bool considerNormalization = true)
148public IReadOnlyList<EncodedToken> EncodeToTokens(string text, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
164public IReadOnlyList<EncodedToken> EncodeToTokens(ReadOnlySpan<char> text, out string? normalizedText, bool considerPreTokenization = true, bool considerNormalization = true)
Microsoft.ML.Tokenizers.Tests (100)
BpeTests.cs (14)
301IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(sentence, out _);
303IReadOnlyList<int> idsList = tokenizer.EncodeToIds(sentence);
422IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
423IReadOnlyList<int> ids = tokenizer.EncodeToIds(text);
475IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
476IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
553IReadOnlyList<EncodedToken> tokens = bpeTokenizer.EncodeToTokens(input, out _);
573IReadOnlyList<int> ids = bpeTokenizer.EncodeToIds(input);
612private static string DumpEncodingTokens(IReadOnlyList<EncodedToken> encoding)
821IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
831IReadOnlyList<int> subIds = tokenizer.EncodeToIds(text, maxTokenCount: i, out _, out int charConsumed);
912var ids = bpeTokenizer.EncodeToIds(text, considerPreTokenization: false);
991IReadOnlyList<PreTokenizer>? preTokenizers = GetPreTokenizer(root, out bool byteLevel);
1028private static IReadOnlyList<PreTokenizer>? GetPreTokenizer(JsonElement root, out bool byteLevel)
CodeGenTests.cs (6)
231private void ValidateEncoding(IReadOnlyList<EncodedToken> encoding, bool addPrefixSpace, string[] expectedTokens, (int Index, int Length)[] expectedOffsets, int[] expectedIds,
252IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
347IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
549IReadOnlyList<EncodedToken> encoding = codeGenTokenizer.EncodeToTokens(text, out _);
609IReadOnlyList<int> ids = codeGenTokenizer.EncodeToIds(text);
997IReadOnlyList<int> ids = _codegen350MMonoTokenizer.EncodeToIds(input, maxTokenCount, out _, out int charsConsumed);
LlamaTests.cs (8)
244IReadOnlyList<EncodedToken> result = llamaTokenizer.EncodeToTokens(input, out _);
266IReadOnlyList<EncodedToken> bpeTokens = bpe.EncodeToTokens(normalizedInput.AsSpan(), out _, addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false);
272IReadOnlyList<int> encodedIds = bpe.EncodeToIds(normalizedInput.AsSpan(), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false);
500IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
501IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
657IReadOnlyList<EncodedToken> encodedTokens;
658IReadOnlyList<int> encodedIds;
835var ids = tokenizer.EncodeToIds(text);
TiktokenTests.cs (30)
147IReadOnlyList<int> encoded = tokenizer.EncodeToIds(text);
152IReadOnlyList<EncodedToken> result = tokenizer.EncodeToTokens(text, out string? normalizedText);
200IReadOnlyList<int> encoded = GPT4.EncodeToIds(text);
205IReadOnlyList<EncodedToken> result = GPT4.EncodeToTokens(text, out string? normalizedText);
222IReadOnlyList<int> encoded = gpt4Tokenizer.EncodeToIds(text);
243IReadOnlyList<int> encoded = GPT4.EncodeToIds(text);
248IReadOnlyList<EncodedToken> result = GPT4.EncodeToTokens(text, out string? normalizedText);
264IReadOnlyList<int> encoded = GPT4.EncodeToIds(text);
267IReadOnlyList<EncodedToken> result = GPT4.EncodeToTokens(text, out string? normalizedText);
277IReadOnlyList<int> encoded = GPT4.EncodeToIds(text);
283IReadOnlyList<EncodedToken> result = GPT4.EncodeToTokens(text, out string? normalizedText);
296IReadOnlyList<int> encoded = tokenizer.EncodeToIds(text);
319IReadOnlyList<EncodedToken> result = tokenizer.EncodeToTokens(text, out string? normalizedText);
334IReadOnlyList<int> encoded = GPT2.EncodeToIds(text);
353IReadOnlyList<int> encoded = P50kBase.EncodeToIds(text);
372IReadOnlyList<int> encoded = P50kEdit.EncodeToIds(text);
391IReadOnlyList<int> encoded = R50kBase.EncodeToIds(text);
630IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
631IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _);
745IReadOnlyList<EncodedToken> result = GPT4.EncodeToTokens(text, out _);
798IReadOnlyList<int> encoded = Phi4.EncodeToIds(text);
834IReadOnlyList<int> ids = GptOss.EncodeToIds(text);
868IReadOnlyList<int> ids = GPT4.EncodeToIds(largeRepeatedInput);
874IReadOnlyList<int> mixedIds = GPT4.EncodeToIds(largeMixedInput);
880IReadOnlyList<int> boundaryIds = GPT4.EncodeToIds(boundaryInput);
886IReadOnlyList<int> belowIds = GPT4.EncodeToIds(belowThresholdInput);
892IReadOnlyList<int> aboveIds = GPT4.EncodeToIds(aboveThresholdInput);
909IReadOnlyList<int> idsRepeated = GPT4.EncodeToIds(inputRepeated);
917IReadOnlyList<int> idsMixed = GPT4.EncodeToIds(inputMixed);
922IReadOnlyList<EncodedToken> tokens = GPT4.EncodeToTokens(inputRepeated, out string? normalizedText);
UnigramTests.cs (5)
284IReadOnlyList<EncodedToken> tokens,
329IReadOnlyList<EncodedToken> result = _unigramTokenizer.EncodeToTokens(inputText, out string? normalized);
382IReadOnlyList<int> result = _unigramTokenizer.EncodeToIds(inputText, addBeginningOfSentence: false, addEndOfSentence: false);
499IReadOnlyList<int> ids1 = _unigramTokenizer.EncodeToIds(normalized!.Substring(0, index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false);
500IReadOnlyList<int> ids2 = index < normalized.Length ? _unigramTokenizer.EncodeToIds(normalized!.Substring(index), addBeginningOfSentence: false, addEndOfSentence: false, considerNormalization: false) : new List<int>();
Microsoft.ML.TorchSharp (11)
NasBert\NasBertTrainer.cs (2)
92public IReadOnlyList<double> AdamBetas = new List<double> { .9, .999 };
123internal IReadOnlyList<int> Arches = new int[] { 9, 11, 7, 0, 0, 0, 11, 11, 7, 0, 0, 0, 9, 7, 11, 0, 0, 0, 10, 7, 9, 0, 0, 0 };
Microsoft.ML.Transforms (26)
Microsoft.NET.Build.Tasks (2)
Microsoft.NET.HostModel (8)
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
Microsoft.NET.Sdk.Razor.Tasks (7)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Microsoft.Private.Windows.Core (35)
Microsoft.SourceLink.Tools.Package (1)
Microsoft.TemplateEngine.Abstractions (41)
Installer\InstallResult.cs (5)
13private InstallResult(InstallRequest request, IManagedTemplatePackage templatePackage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
20private InstallResult(InstallRequest request, InstallerErrorCode error, string errorMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
35public IReadOnlyList<VulnerabilityInfo> Vulnerabilities { get; private set; }
44public static InstallResult CreateSuccess(InstallRequest request, IManagedTemplatePackage templatePackage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
57public static InstallResult CreateFailure(InstallRequest request, InstallerErrorCode error, string localizedFailureMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities) => new InstallResult(request, error, localizedFailureMessage, vulnerabilities);
Installer\UpdateResult.cs (5)
13private UpdateResult(UpdateRequest request, IManagedTemplatePackage templatePackage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
20private UpdateResult(UpdateRequest request, InstallerErrorCode error, string errorMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
42public IReadOnlyList<VulnerabilityInfo> Vulnerabilities { get; private set; }
51public static UpdateResult CreateSuccess(UpdateRequest request, IManagedTemplatePackage templatePackage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
64public static UpdateResult CreateFailure(UpdateRequest request, InstallerErrorCode error, string localizedFailureMessage, IReadOnlyList<VulnerabilityInfo> vulnerabilities)
Microsoft.TemplateEngine.Cli (140)
Alias\AliasRegistry.cs (15)
23internal IReadOnlyDictionary<string, IReadOnlyList<string>> AllAliases
29return new Dictionary<string, IReadOnlyList<string>>(_aliases!.CommandAliases, StringComparer.OrdinalIgnoreCase);
33internal AliasManipulationResult TryCreateOrRemoveAlias(string aliasName, IReadOnlyList<string> aliasTokens)
47if (_aliases!.TryRemoveCommandAlias(aliasName, out IReadOnlyList<string>? removedAliasTokens))
59Dictionary<string, IReadOnlyList<string>> aliasesWithCandidate = new(_aliases!.CommandAliases);
61if (!TryExpandCommandAliases(aliasesWithCandidate, aliasTokens, out IReadOnlyList<string>? expandedInputTokens))
72internal bool TryExpandCommandAliases(IReadOnlyList<string> inputTokens, out IReadOnlyList<string> expandedInputTokens)
93private static bool TryExpandCommandAliases(IReadOnlyDictionary<string, IReadOnlyList<string>> aliases, IReadOnlyList<string> inputTokens, out IReadOnlyList<string>? expandedTokens)
103if (aliases.TryGetValue(candidateAliasName, out IReadOnlyList<string>? aliasExpansion))
140IReadOnlyDictionary<string, IReadOnlyList<string>> commandAliases = ToStringListDictionary(parsed, StringComparer.OrdinalIgnoreCase, "CommandAliases");
170private IReadOnlyDictionary<string, IReadOnlyList<string>> ToStringListDictionary(JsonObject token, StringComparer? comparer = null, string? propertyName = null)
172Dictionary<string, IReadOnlyList<string>> result = new(comparer ?? StringComparer.Ordinal);
Commands\create\TemplateCommand.cs (12)
121internal static IReadOnlyList<string> KnownHelpAliases => _helpAliases;
145internal static async Task<IReadOnlyList<TemplateConstraintResult>> ValidateConstraintsAsync(TemplateConstraintManager constraintManager, ITemplateInfo template, CancellationToken cancellationToken)
152IReadOnlyList<(ITemplateInfo Template, IReadOnlyList<TemplateConstraintResult> Result)> result = await constraintManager.EvaluateConstraintsAsync(new[] { template }, cancellationToken).ConfigureAwait(false);
153IReadOnlyList<TemplateConstraintResult> templateConstraints = result.Single().Result;
174Task<IReadOnlyList<TemplateConstraintResult>> constraintsEvaluation = ValidateConstraintsAsync(constraintManager, args.Template, args.IsForceFlagSpecified ? cancellationTokenSource.Token : cancellationToken);
179var constraintResults = await constraintsEvaluation.ConfigureAwait(false);
221IReadOnlyList<TemplateConstraintResult> constraintResults = await constraintsEvaluation.WaitAsync(cancellationTokenSource.Token).ConfigureAwait(false);
236private void DisplayConstraintResults(IReadOnlyList<TemplateConstraintResult> constraintResults, TemplateCommandArgs templateArgs)
320var parametersWithAliasAssignments = AliasAssignmentCoordinator.AssignAliasesForParameter(templateInfo.CliParameters.Values, initiallyTakenAliases);
323IReadOnlyDictionary<CliTemplateParameter, IReadOnlyList<string>> errors = parametersWithAliasAssignments
329foreach ((CliTemplateParameter parameter, IReadOnlySet<string> aliases, IReadOnlyList<string> _) in parametersWithAliasAssignments)
TemplatePackageCoordinator.cs (15)
106IReadOnlyList<ITemplatePackage> templatePackages = await _templatePackageManager.GetTemplatePackagesAsync(force: false, cancellationToken).ConfigureAwait(false);
255IReadOnlyList<InstallResult> installResults = await managedSourceProvider.InstallAsync(installRequests, cancellationToken).ConfigureAwait(false);
287var managedTemplatePackages = await _templatePackageManager.GetManagedTemplatePackagesAsync(false, cancellationToken).ConfigureAwait(false);
292IReadOnlyList<CheckUpdateResult> checkUpdateResults = await provider.GetLatestVersionsAsync(packagesGrouping, cancellationToken).ConfigureAwait(false);
319IReadOnlyList<UpdateResult> updateResults = await provider.UpdateAsync(updatesToApply.Select(update => new UpdateRequest(update.TemplatePackage!, update.LatestVersion!)), cancellationToken).ConfigureAwait(false);
370IReadOnlyList<UninstallResult> uninstallResults = await providerSourcesToUninstall.Key.UninstallAsync(providerSourcesToUninstall.Value, cancellationToken).ConfigureAwait(false);
396IReadOnlyList<string>? additionalSources,
437var templatesToDisplay = TemplateGroupDisplay.GetTemplateGroupsForListDisplay(packageTemplates, null, null, _engineEnvironmentSettings.Environment);
463var templatesToDisplay = TemplateGroupDisplay.GetTemplateGroupsForListDisplay(packageTemplates, null, null, _engineEnvironmentSettings.Environment);
567internal void DisplayPackageTemplateList(IReadOnlyList<TemplateGroupTableRow> templatesToDisplay, IReporter reporter)
607var templatePackages = await _templatePackageManager.GetTemplatePackagesAsync(force: false, cancellationToken).ConfigureAwait(false);
608IReadOnlyList<(string Id, string Version)> unmanagedTemplatePackages = templatePackages
658IReadOnlyList<IManagedTemplatePackage> templatePackages = await _templatePackageManager.GetManagedTemplatePackagesAsync(false, cancellationToken).ConfigureAwait(false);
786IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
808IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
Microsoft.TemplateEngine.Core (59)
Microsoft.TemplateEngine.Core.Contracts (19)
Microsoft.TemplateEngine.Edge (222)
_generated\30\TemplateCacheJsonSerializerContext.TemplateInfo.g.cs (16)
137var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
152AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Classifications", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
155properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info4);
301var info12 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
316AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("ShortNameList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
319properties[12] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info12);
487var info21 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>>
502AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("PostActions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>), global::System.Array.Empty<global::System.Type>(), null),
505properties[21] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>>(options, info21);
509var info22 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>
524AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo).GetProperty("Constraints", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>), global::System.Array.Empty<global::System.Type>(), null),
527properties[22] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>(options, info22);
562global::System.Collections.Generic.IReadOnlyList<string> __value_Classifications = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Classifications;
595global::System.Collections.Generic.IReadOnlyList<string> __value_ShortNameList = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).ShortNameList;
639global::System.Collections.Generic.IReadOnlyList<global::System.Guid> __value_PostActions = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).PostActions;
645global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo> __value_Constraints = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo)value).Constraints;
Constraints\SdkVersionConstraintFactory.cs (11)
27private readonly IReadOnlyList<NuGetVersionSpecification> _installedSdkVersion;
28private readonly Func<IReadOnlyList<string>, IReadOnlyList<string>, string> _remedySuggestionFactory;
35Func<IReadOnlyList<string>, IReadOnlyList<string>, string> remedySuggestionFactory)
47(NuGetVersionSpecification currentSdkVersion, IEnumerable<NuGetVersionSpecification> installedVersions, Func<IReadOnlyList<string>, IReadOnlyList<string>, string> remedySuggestionFactory) =
56IReadOnlyList<IVersionSpecification> supportedSdks = ParseArgs(args).ToList();
77private static IReadOnlyList<string> VersionSpecificationsToStrings(IEnumerable<IVersionSpecification> versions)
91Task<(NuGetVersionSpecification CurrentSdkVersion, IEnumerable<NuGetVersionSpecification> InstalledVersions, Func<IReadOnlyList<string>, IReadOnlyList<string>, string> RemedySuggestionFactory)>
Settings\TemplatePackageManager.cs (13)
24private Dictionary<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>>? _cachedSources;
74public async Task<IReadOnlyList<IManagedTemplatePackage>> GetManagedTemplatePackagesAsync(bool force, CancellationToken cancellationToken)
89public async Task<IReadOnlyList<ITemplatePackage>> GetTemplatePackagesAsync(bool force, CancellationToken cancellationToken)
102foreach (KeyValuePair<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>> source in _cachedSources.OrderBy((p) => (p.Key.Factory as IPrioritizedComponent)?.Priority ?? 0))
154public async Task<IReadOnlyList<ITemplateInfo>> GetTemplatesAsync(CancellationToken cancellationToken)
172public async Task<IReadOnlyList<ITemplateMatchInfo>> GetTemplatesAsync(Func<ITemplateMatchInfo, bool> matchFilter, IEnumerable<Func<ITemplateInfo, MatchInfo?>> filters, CancellationToken cancellationToken)
175IReadOnlyList<ITemplateInfo> templates = await GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
198IReadOnlyList<ITemplatePackage> templatePackages = await GetTemplatePackagesAsync(false, cancellationToken).ConfigureAwait(false);
211var allTemplates = await GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
226var templatePackages = await GetManagedTemplatePackagesAsync(false, cancellationToken).ConfigureAwait(false);
254_cachedSources = new Dictionary<ITemplatePackageProvider, Task<IReadOnlyList<ITemplatePackage>>>();
277Task<IReadOnlyList<ITemplatePackage>> getTemplatePackagesTask = GetTemplatePackagesAsync(needsRebuild, cancellationToken);
314var allTemplatePackages = await getTemplatePackagesTask.ConfigureAwait(false);
Template\ParameterSetBuilder.cs (9)
29var result = CreateWithDefaults(generator, parametersDefinition, name, environment, out IReadOnlyList<string> errors);
38public static IParameterSetBuilder CreateWithDefaults(IGenerator generator, IParameterDefinitionSet parametersDefinition, string? name, IEngineEnvironmentSettings environment, out IReadOnlyList<string> paramsWithInvalidValues)
108public bool CheckIsParametersEvaluationCorrect(IGenerator generator, ILogger logger, bool throwOnError, out IReadOnlyList<string> paramsWithInvalidEvaluations)
210IReadOnlyList<EvalData> parameters,
250IReadOnlyList<EvalData> disabledParameters = parameters.Where(p => p.IsEnabledConditionResult.HasValue && !p.IsEnabledConditionResult.Value).ToList();
255if (parametersToRecalculate.TryGetTopologicalSort(out IReadOnlyList<EvalData> orderedParameters))
259if (parametersDependenciesGraph.HasCycle(out var cycle))
281else if (parametersToRecalculate.HasCycle(out var cycle))
321IReadOnlyList<EvalData> parameters,
Template\TemplateCreator.cs (14)
173IReadOnlyList<IFileChange> changes = creationEffects.FileChanges;
174IReadOnlyList<IFileChange> destructiveChanges = changes.Where(x => x.ChangeKind != ChangeKind.Create).ToList();
272private bool AnyParametersWithInvalidDefaultsUnresolved(IReadOnlyList<string> defaultParamsWithInvalidValues, InputDataSet inputParameters, out IReadOnlyList<string> invalidDefaultParameters)
278private IParameterSetBuilder SetupDefaultParamValuesFromTemplateAndHostInternal(ITemplate template, string realName, out IReadOnlyList<string> paramsWithInvalidValues)
283private void ResolveUserParameters(ITemplate template, IParameterSetBuilder templateParamsBuilder, InputDataSet inputParameters, out IReadOnlyList<string> paramsWithInvalidValues)
351out IReadOnlyList<string> paramsWithInvalidValues,
408IParameterSetBuilder parameterSetBuilder = SetupDefaultParamValuesFromTemplateAndHostInternal(template, realName, out IReadOnlyList<string> defaultParamsWithInvalidValues);
410ResolveUserParameters(template, parameterSetBuilder, inputParameters, out IReadOnlyList<string> userParamsWithInvalidValues);
412if (AnyParametersWithInvalidDefaultsUnresolved(defaultParamsWithInvalidValues, inputParameters, out IReadOnlyList<string> defaultsWithUnresolvedInvalidValues)
422InputDataSet? evaluatedParams = EvaluateConditionalParameters(parameterSetBuilder, inputParameters, template, out var paramsWithInvalidValues, out bool isExternalEvaluationInvalid);
481public IParameterSet SetupDefaultParamValuesFromTemplateAndHost(ITemplate templateInfo, string realName, out IReadOnlyList<string> paramsWithInvalidValues)
496public void ResolveUserParameters(ITemplate template, IParameterSet templateParams, IReadOnlyDictionary<string, string?> inputParameters, out IReadOnlyList<string> paramsWithInvalidValues)
513public bool CheckIsParametersEvaluationCorrect(IGenerator generator, ILogger logger, bool throwOnError, out IReadOnlyList<string> paramsWithInvalidEvaluations) =>
TemplateListFilter.cs (3)
27public static IReadOnlyCollection<IFilteredTemplateInfo> FilterTemplates(IReadOnlyList<ITemplateInfo> templateList, bool exactMatchesOnly, params Func<ITemplateInfo, MatchInfo?>[] filters)
72public static IReadOnlyCollection<ITemplateMatchInfo> GetTemplateMatchInfo(IReadOnlyList<ITemplateInfo> templateList, Func<ITemplateMatchInfo, bool> matchFilter, params Func<ITemplateInfo, MatchInfo?>[] filters)
106public static IReadOnlyCollection<Abstractions.TemplateFiltering.ITemplateMatchInfo> GetTemplateMatchInfo(IReadOnlyList<ITemplateInfo> templateList, Func<Abstractions.TemplateFiltering.ITemplateMatchInfo, bool> matchFilter, params Func<ITemplateInfo, Abstractions.TemplateFiltering.MatchInfo?>[] filters)
Microsoft.TemplateEngine.IDE (15)
Bootstrapper.cs (15)
102public Task<IReadOnlyList<ITemplateInfo>> GetTemplatesAsync(CancellationToken cancellationToken)
116public Task<IReadOnlyList<ITemplateMatchInfo>> GetTemplatesAsync(IEnumerable<Func<ITemplateInfo, MatchInfo?>> filters, bool exactMatchesOnly = true, CancellationToken cancellationToken = default)
236public Task<IReadOnlyList<ITemplatePackage>> GetTemplatePackagesAsync(CancellationToken cancellationToken = default)
247public Task<IReadOnlyList<IManagedTemplatePackage>> GetManagedTemplatePackagesAsync(CancellationToken cancellationToken = default)
264public Task<IReadOnlyList<InstallResult>> InstallTemplatePackagesAsync(IEnumerable<InstallRequest> installRequests, InstallationScope scope = InstallationScope.Global, CancellationToken cancellationToken = default)
271return Task.FromResult((IReadOnlyList<InstallResult>)new List<InstallResult>());
294public async Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionsAsync(IEnumerable<IManagedTemplatePackage> managedPackages, CancellationToken cancellationToken = default)
305IReadOnlyList<CheckUpdateResult>[] results = await Task.WhenAll(requestsGroupedByProvider.Select(packages => packages.Key.GetLatestVersionsAsync(packages, cancellationToken))).ConfigureAwait(false);
316public async Task<IReadOnlyList<UpdateResult>> UpdateTemplatePackagesAsync(IEnumerable<UpdateRequest> updateRequests, CancellationToken cancellationToken = default)
327IReadOnlyList<UpdateResult>[] updateResults = await Task.WhenAll(requestsGroupedByProvider.Select(requests => requests.Key.UpdateAsync(requests, cancellationToken))).ConfigureAwait(false);
338public async Task<IReadOnlyList<UninstallResult>> UninstallTemplatePackagesAsync(IEnumerable<IManagedTemplatePackage> managedPackages, CancellationToken cancellationToken = default)
349IReadOnlyList<UninstallResult>[] uninstallResults = await Task.WhenAll(requestsGroupedByProvider.Select(packages => packages.Key.UninstallAsync(packages, cancellationToken))).ConfigureAwait(false);
408Task<IReadOnlyList<InstallResult>> t = InstallTemplatePackagesAsync(installRequests);
436var templatePackages = task.Result;
444Task<IReadOnlyList<UninstallResult>> uninstallTask = UninstallTemplatePackagesAsync(packagesToUninstall);
Microsoft.TemplateEngine.Utils (45)
DefaultTemplateEngineHost.cs (10)
14private static readonly IReadOnlyList<(Type Type, IIdentifiedComponent Instance)> NoComponents = [];
16private readonly IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> _hostBuiltInComponents;
29public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string>? defaults, IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)>? builtIns)
34public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string> defaults, IReadOnlyList<string> fallbackHostTemplateConfigNames)
39public DefaultTemplateEngineHost(string hostIdentifier, string version, Dictionary<string, string>? defaults, IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)>? builtIns, IReadOnlyList<string>? fallbackHostTemplateConfigNames)
58public IReadOnlyList<string> FallbackHostTemplateConfigNames { get; }
62public virtual IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> BuiltInComponents => _hostBuiltInComponents;
113public bool OnPotentiallyDestructiveChangesDetected(IReadOnlyList<IFileChange> changes, IReadOnlyList<IFileChange> destructiveChanges)
Microsoft.TemplateSearch.Common (46)
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
MilvusPlayground.ApiService (1)
MSBuild (2)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks (5)
NuGet.Build.Tasks.Console (5)
MSBuildStaticGraphRestore.cs (3)
108(DependencyGraphSpec dependencyGraphSpec, IReadOnlyList<IAssetsLogMessage> additionalMessages) = GetDependencyGraphSpec(entryProjectFilePath, globalProperties, interactive, binaryLoggerParameters, EnvironmentVariableWrapper.Instance);
809private (DependencyGraphSpec DependencyGraphSpec, IReadOnlyList<IAssetsLogMessage> AdditionalMessages) GetDependencyGraphSpec(string entryProjectPath, IDictionary<string, string> globalProperties, bool interactive, string binaryLoggerParameters, IEnvironmentVariableReader environmentVariableReader)
1451IReadOnlyList<PackageSpec> projects = dependencyGraphSpec.Projects;
NuGet.Build.Tasks.Pack (1)
NuGet.CommandLine.XPlat (99)
_generated\6\PackageSearchJsonContext.PackageDependency.g.cs (6)
74var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
89AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("Include", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
92properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info1);
95var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
110AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Core.PackageDependency).GetProperty("Exclude", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
113properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info2);
_generated\8\PackageSearchJsonContext.LicenseMetadata.g.cs (6)
32ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Packaging.LicenseMetadata((global::NuGet.Packaging.LicenseType)args[0], (string)args[1], (global::NuGet.Packaging.Licenses.NuGetLicenseExpression)args[2], (global::System.Collections.Generic.IReadOnlyList<string>)args[3], (global::System.Version)args[4]),
35ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Packaging.LicenseType), typeof(string), typeof(global::NuGet.Packaging.Licenses.NuGetLicenseExpression), typeof(global::System.Collections.Generic.IReadOnlyList<string>), typeof(global::System.Version)}, modifiers: null),
114var info3 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
129AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("WarningsAndErrors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
132properties[3] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info3);
241ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<string>),
Commands\Package\Update\PackageUpdateIO.cs (21)
38private readonly IReadOnlyList<PackageSource> _enabledSources;
163var restoreRequests = await RestoreRunner.GetRequests(restoreContext);
164var restoreResult = await RestoreRunner.RunWithoutCommitAsync(restoreRequests, restoreContext, cancellationToken);
223/// <inheritdoc cref="IPackageUpdateIO.GetLatestVersionAsync(string, bool, IReadOnlyList{string}?, ILogger, CancellationToken)"/>
227IReadOnlyList<string>? allowedSources,
258public async Task<IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>> GetKnownVulnerabilitiesAsync(ILogger logger, CancellationToken cancellationToken)
260IReadOnlyList<PackageSource>? auditSources = _sourceProvider.LoadAuditSources()?.Where(s => s.IsEnabled).ToList();
282List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> allVulnerabilities = new();
301/// <inheritdoc cref="IPackageUpdateIO.GetNonVulnerableAsync(string, IReadOnlyList{string}?, NuGetVersion, ILogger, IReadOnlyList{IReadOnlyDictionary{string, IReadOnlyList{PackageVulnerabilityInfo}}}, CancellationToken)"/>
304IReadOnlyList<string>? allowedSources,
307IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities,
341private List<SourceRepository> GetSourcesForPackage(string packageId, IReadOnlyList<string>? allowedSources)
343IReadOnlyList<PackageSource> packageSources;
375IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities,
408if (sourceVulnerabilities.TryGetValue(packageId, out var vulnerabilities))
478internal required IReadOnlyList<RestoreResultPair> RestoreResultPairs { get; init; }
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (8)
189List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities = await GetVulnerabilityData(
214List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities,
268private static async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>> GetVulnerabilityData(
271IReadOnlyList<PackageSource> sources,
275var vulnerabilityInfo = new List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>();
296List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilityInfo)
324IEnumerable<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> vulnerabilities,
336if (vulnFile.TryGetValue(id, out IReadOnlyList<PackageVulnerabilityInfo> vulnPackages) && vulnPackages != null)
NuGet.Commands (123)
RestoreCommand\RestoreCommandProvidersCache.cs (20)
36IReadOnlyList<string> fallbackPackagesPaths,
37IReadOnlyList<SourceRepository> sources,
54IReadOnlyList<string> fallbackPackagesPaths,
55IReadOnlyList<SourceRepository> sources,
73IReadOnlyList<string> fallbackPackagesPaths,
74IReadOnlyList<SourceRepository> packageSources,
75IReadOnlyList<SourceRepository> auditSources,
93IReadOnlyList<string> fallbackPackagesPaths,
94IReadOnlyList<SourceRepository> packageSources,
95IReadOnlyList<SourceRepository> auditSources,
105IReadOnlyList<IVulnerabilityInformationProvider> vulnerabilityInformationProviders = CreateVulnerabilityProviders(packageSources, auditSources, log);
117private List<NuGetv3LocalRepository> GetFallbackFolderRepositories(IReadOnlyList<string> fallbackPackagesPaths)
130private List<IRemoteDependencyProvider> CreateLocalProviders(string globalPackagesPath, IReadOnlyList<string> fallbackPackagesPaths, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader)
177private List<IRemoteDependencyProvider> CreateRemoteProviders(IReadOnlyList<SourceRepository> sources, SourceCacheContext cacheContext, ILogger log, IEnvironmentVariableReader environmentVariableReader)
199private IReadOnlyList<IVulnerabilityInformationProvider> CreateVulnerabilityProviders(
200IReadOnlyList<SourceRepository> packageSources,
201IReadOnlyList<SourceRepository> auditSources,
204IReadOnlyList<IVulnerabilityInformationProvider> result = auditSources.Count > 0
209IReadOnlyList<IVulnerabilityInformationProvider> CreateVulnerabilityProviders(IReadOnlyList<SourceRepository> sources, ILogger log, bool isAuditSource)
RestoreCommand\Utility\AuditUtility.cs (18)
27private readonly IReadOnlyList<IVulnerabilityInformationProvider> _vulnerabilityInfoProviders;
66IReadOnlyList<IVulnerabilityInformationProvider> vulnerabilityInformationProviders,
101private void CheckPackageDownloadVulnerabilities(IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities)
129IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities)
199List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? allVulnerabilityData = await GetAllVulnerabilityDataAsync(cancellationToken);
231bool AnyVulnerabilityDataFound(IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities)
257private void CheckPackageVulnerabilities(IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities)
333IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities)
339if (file.TryGetValue(name, out var packageVulnerabilities))
373IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities)
443private async Task<List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>?> GetAllVulnerabilityDataAsync(CancellationToken cancellationToken)
458List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null;
NuGet.Common (4)
NuGet.Configuration (35)
NuGet.DependencyResolver.Core (3)
NuGet.Frameworks (8)
NuGet.LibraryModel (1)
NuGet.PackageManagement (101)
NuGet.Packaging (98)
NuGet.ProjectModel (68)
_generated\18\AssetsLogMessageSourceGen.AssetsLogMessage.g.cs (6)
34ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.ProjectModel.AssetsLogMessage((global::NuGet.Common.LogLevel)args[0], (global::NuGet.Common.NuGetLogCode)args[1], (string)args[2], (string)args[3], (string)args[4], (string)args[5], (global::System.Collections.Generic.IReadOnlyList<string>)args[6], (int)args[7], (int)args[8], (int)args[9], (int)args[10]),
37ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Common.LogLevel), typeof(global::NuGet.Common.NuGetLogCode), typeof(string), typeof(string), typeof(string), typeof(string), typeof(global::System.Collections.Generic.IReadOnlyList<string>), typeof(int), typeof(int), typeof(int), typeof(int)}, modifiers: null),
215var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>>
230AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.AssetsLogMessage).GetProperty("TargetGraphs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null),
233properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info8);
383ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<string>),
NuGet.Protocol (133)
Resources\VulnerabilityInfoResourceV3.cs (12)
36public async Task<IReadOnlyList<V3VulnerabilityIndexEntry>> GetVulnerabilityFilesAsync(SourceCacheContext cacheContext, ILogger log, CancellationToken cancellationToken)
43IReadOnlyList<V3VulnerabilityIndexEntry>? vulnFiles;
49IReadOnlyList<V3VulnerabilityIndexEntry>? parsed =
85public async Task<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> GetVulnerabilityDataAsync(
95IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>? data;
101CaseInsensitiveDictionary<IReadOnlyList<PackageVulnerabilityInfo>>? parsed =
128List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null;
132IReadOnlyList<V3VulnerabilityIndexEntry> indexEntries = await GetVulnerabilityFilesAsync(cacheContext, logger, cancellationToken);
148var tasks = new Task<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>[indexEntries.Count];
163IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>? data = await tasks[i];
197private IReadOnlyList<V3VulnerabilityIndexEntry> GetValidIndexEntries(IReadOnlyList<V3VulnerabilityIndexEntry> indexEntries, ref List<Exception>? exceptions)
NuGet.Resolver (1)
NuGet.Versioning (2)
PresentationCore (1)
PresentationFramework (39)
Qdrant.ApiService (2)
RepoTasks (2)
Roslyn.Diagnostics.Analyzers (54)
Roslyn.Diagnostics.CSharp.Analyzers (2)
rzc (8)
Shared (4)
Shared.Tests (3)
Stress.ApiService (1)
System.Collections (3)
System.Collections.Immutable (10)
System.CommandLine (20)
System.Diagnostics.DiagnosticSource (1)
System.Formats.Nrbf (9)
System.Linq.Expressions (76)
System\Linq\Expressions\MethodCallExpression.cs (19)
120internal virtual MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
169private IReadOnlyList<Expression> _arguments;
171public MethodCallExpressionN(MethodInfo method, IReadOnlyList<Expression> args)
189internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
200private IReadOnlyList<Expression> _arguments;
202public InstanceMethodCallExpressionN(MethodInfo method, Expression instance, IReadOnlyList<Expression> args)
220internal override MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
251internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
298internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
364internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
435internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
512internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
595internal override MethodCallExpression Rewrite(Expression? instance, IReadOnlyList<Expression>? args)
631internal override MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
680internal override MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
745internal override MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
816internal override MethodCallExpression Rewrite(Expression instance, IReadOnlyList<Expression>? args)
1191IReadOnlyList<Expression> argumentList = arguments as IReadOnlyList<Expression> ?? arguments.ToReadOnly();
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.cs (5)
89public static long Read(SafeFileHandle handle, IReadOnlyList<Memory<byte>> buffers, long fileOffset)
141public static ValueTask<long> ReadAsync(SafeFileHandle handle, IReadOnlyList<Memory<byte>> buffers, long fileOffset, CancellationToken cancellationToken = default)
189public static void Write(SafeFileHandle handle, IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset)
241public static ValueTask WriteAsync(SafeFileHandle handle, IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset, CancellationToken cancellationToken = default)
308private static void ValidateBuffers<T>(IReadOnlyList<T> buffers)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (4)
58internal static unsafe long ReadScatterAtOffset(SafeFileHandle handle, IReadOnlyList<Memory<byte>> buffers, long fileOffset)
107private static ValueTask<long> ReadScatterAtOffsetAsync(SafeFileHandle handle, IReadOnlyList<Memory<byte>> buffers, long fileOffset, CancellationToken cancellationToken)
168internal static unsafe void WriteGatherAtOffset(SafeFileHandle handle, IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset)
266private static ValueTask WriteGatherAtOffsetAsync(SafeFileHandle handle, IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset, CancellationToken cancellationToken)
System.Private.Windows.Core (35)
System.Reflection.Metadata (14)
System.Runtime (1)
System.Text.Json (9)
System.Windows.Forms (15)
System.Windows.Forms.Design (5)