13 interfaces inheriting from IReadOnlyList
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.AspNetCore.Http.Features (1)
IFormFileCollection.cs (1)
9public interface IFormFileCollection : IReadOnlyList<IFormFile>
Microsoft.CodeAnalysis (1)
Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.Maui.Controls (1)
ITemplatedItemsList.cs (1)
11 public interface ITemplatedItemsList<TItem> : IReadOnlyList<TItem>, INotifyCollectionChanged where TItem : BindableObject
Microsoft.TemplateEngine.Abstractions (1)
Parameters\IParameterDefinitionSet.cs (1)
9public interface IParameterDefinitionSet : IReadOnlyList<ITemplateParameter>
NuGet.Packaging (1)
Signing\Utility\IX509CertificateChain.cs (1)
13public interface IX509CertificateChain : IReadOnlyList<X509Certificate2>, IDisposable
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
System.Collections.Immutable (1)
System\Collections\Immutable\IImmutableList.cs (1)
18public interface IImmutableList<T> : IReadOnlyList<T>
213 implementations of IReadOnlyList
Aspire.Hosting (1)
IInteractionService.cs (1)
352public sealed class InteractionInputCollection : IReadOnlyList<InteractionInput>
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
72private readonly struct ErrorEventSourceEvent : IReadOnlyList<KeyValuePair<string, object?>>
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
15public sealed class ImmutableEquatableArray<T> : IEquatable<ImmutableEquatableArray<T>>, IReadOnlyList<T>
GenerateDocumentationAndConfigFiles (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.AspNetCore.Components (3)
_generated\0\LoggerMessage.g.cs (1)
183private readonly struct __SkippingEventOnDisposedComponentStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
ResourceAssetCollection.cs (1)
12public sealed class ResourceAssetCollection : IReadOnlyList<ResourceAsset>
src\aspnetcore\src\Http\Routing\src\PathTokenizer.cs (1)
17internal struct PathTokenizer : IReadOnlyList<StringSegment>
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\0\LoggerMessage.g.cs (3)
271private readonly struct __ConstructorParameterStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 358private readonly struct __MatchingConstructorParameterFoundStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 425private readonly struct __CustomParameterNameMetadataStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Microsoft.AspNetCore.Components.Server (1)
_generated\0\LoggerMessage.g.cs (1)
1153private readonly struct __PersistedCircuitStateDiscardedStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.AspNetCore.Hosting (4)
Internal\HostingApplicationDiagnostics.cs (1)
602private sealed class HostingLogScope : IReadOnlyList<KeyValuePair<string, object>>
Internal\HostingRequestFinishedLog.cs (1)
12internal sealed class HostingRequestFinishedLog : IReadOnlyList<KeyValuePair<string, object?>>
Internal\HostingRequestStartingLog.cs (1)
10internal sealed class HostingRequestStartingLog : IReadOnlyList<KeyValuePair<string, object?>>
Internal\HostingRequestUnhandledLog.cs (1)
9internal sealed class HostingRequestUnhandledLog : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\EndpointMetadataCollection.cs (1)
22public sealed class EndpointMetadataCollection : IReadOnlyList<object>
Microsoft.AspNetCore.Http.Connections (1)
Internal\ConnectionLogScope.cs (1)
9internal sealed class ConnectionLogScope : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.AspNetCore.Http.Extensions (3)
_generated\0\LoggerMessage.g.cs (3)
198private readonly struct __ConstructorParameterStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 285private readonly struct __MatchingConstructorParameterFoundStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 352private readonly struct __CustomParameterNameMetadataStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Microsoft.AspNetCore.HttpLogging (1)
HttpLog.cs (1)
9internal sealed class HttpLog : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.AspNetCore.Mvc.Core (7)
_generated\0\LoggerMessage.g.cs (5)
570private readonly struct __TransformingClientErrorStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 1482private readonly struct __AttemptingToBindCollectionUsingIndicesStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 1542private readonly struct __AttemptingToBindCollectionOfKeyValuePairStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 1602private readonly struct __NoNonIndexBasedFormatFoundForCollectionStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 1756private readonly struct __NoKeyValueFormatForDictionaryModelBinderStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Diagnostics\EventData.cs (1)
11public abstract class EventData : IReadOnlyList<KeyValuePair<string, object>>
MvcCoreLoggerExtensions.cs (1)
280private sealed class ActionLogScope : IReadOnlyList<KeyValuePair<string, object>>
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentInvoker.cs (1)
284private sealed class ViewComponentLogScope : IReadOnlyList<KeyValuePair<string, object>>
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.AspNetCore.Routing (1)
PathTokenizer.cs (1)
17internal struct PathTokenizer : IReadOnlyList<StringSegment>
Microsoft.AspNetCore.Server.Kestrel.Core (3)
_generated\0\LoggerMessage.g.cs (2)
235private readonly struct __FlaggedObserversStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>> 1058private readonly struct __Http2FlowControlQueueMaximumTooLowStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Internal\ConnectionLogScope.cs (1)
9internal sealed class ConnectionLogScope : IReadOnlyList<KeyValuePair<string, object>>
Microsoft.AspNetCore.SignalR.Core (1)
_generated\0\LoggerMessage.g.cs (1)
109private readonly struct __ProtocolVersionFailedStruct : global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, object?>>
Microsoft.Build (9)
Instance\ImmutableProjectCollections\LazyStringValuedList.cs (1)
18internal class LazyStringValuedList : IList<string>, IReadOnlyList<string>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis (14)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Syntax\ChildSyntaxList.cs (1)
15public readonly partial struct ChildSyntaxList : IEquatable<ChildSyntaxList>, IReadOnlyList<SyntaxNodeOrToken>
Syntax\SeparatedSyntaxList.cs (1)
45public readonly partial struct SeparatedSyntaxList<TNode> : IEquatable<SeparatedSyntaxList<TNode>>, IReadOnlyList<TNode> where TNode : SyntaxNode
Syntax\SyntaxList`1.cs (1)
52public readonly partial struct SyntaxList<TNode> : IReadOnlyList<TNode>, IEquatable<SyntaxList<TNode>>
Syntax\SyntaxTokenList.cs (1)
24public readonly partial struct SyntaxTokenList : IEquatable<SyntaxTokenList>, IReadOnlyList<SyntaxToken>
Syntax\SyntaxTriviaList.cs (1)
25public readonly partial struct SyntaxTriviaList : IEquatable<SyntaxTriviaList>, IReadOnlyList<SyntaxTrivia>
Text\TextLineCollection.cs (1)
16public abstract class TextLineCollection : IReadOnlyList<TextLine>
Microsoft.CodeAnalysis.Analyzers (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.CodeAnalysis.CodeStyle (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Intermediate\IntermediateNodeCollection.cs (1)
13public sealed class IntermediateNodeCollection : IList<IntermediateNode>, IReadOnlyList<IntermediateNode>
Language\Syntax\ChildSyntaxList.cs (1)
12internal readonly partial struct ChildSyntaxList : IEquatable<ChildSyntaxList>, IReadOnlyList<SyntaxNodeOrToken>
Language\Syntax\SpecializedCollections.cs (1)
133internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
Language\Syntax\SyntaxList`1.cs (1)
15internal readonly partial struct SyntaxList<TNode>(SyntaxNode? node) : IReadOnlyList<TNode>, IEquatable<SyntaxList<TNode>>
Language\Syntax\SyntaxTokenList.cs (1)
20internal readonly partial struct SyntaxTokenList : IEquatable<SyntaxTokenList>, IReadOnlyList<SyntaxToken>
Language\TagHelperCollection.Builder.cs (1)
16public sealed partial class Builder : ICollection<TagHelperDescriptor>, IReadOnlyList<TagHelperDescriptor>, IDisposable
Language\TagHelperCollection.cs (1)
35public abstract partial class TagHelperCollection : IEquatable<TagHelperCollection>, IReadOnlyList<TagHelperDescriptor>
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
EquatableArray.cs (1)
16internal readonly struct EquatableArray<T> : IEquatable<EquatableArray<T>>, IReadOnlyList<T>
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\GeneratedEmbeddings.cs (1)
14public sealed class GeneratedEmbeddings<TEmbedding> : IList<TEmbedding>, IReadOnlyList<TEmbedding>
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
267internal sealed class HealthCheckDataLogValue : IReadOnlyList<KeyValuePair<string, object>>
HealthCheckLogScope.cs (1)
10internal sealed class HealthCheckLogScope : IReadOnlyList<KeyValuePair<string, object>>
Microsoft.Extensions.Http (1)
Logging\HttpHeadersLogValue.cs (1)
12internal sealed class HttpHeadersLogValue : IReadOnlyList<KeyValuePair<string, object>>
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
131private sealed class ActivityLogScope : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.Extensions.Logging.Abstractions (9)
FormattedLogValues.cs (1)
17internal struct FormattedLogValues : IReadOnlyList<KeyValuePair<string, object?>>
FormattedLogValuesObsolete.cs (1)
17public class FormattedLogValues : IReadOnlyList<KeyValuePair<string, object?>>
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)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
15public sealed class ImmutableEquatableArray<T> : IEquatable<ImmutableEquatableArray<T>>, IReadOnlyList<T>
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
19public readonly struct StringValues : IList<string?>, IReadOnlyList<string?>, IEquatable<StringValues>, IEquatable<string?>, IEquatable<string?[]?>
Microsoft.Extensions.Telemetry (3)
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
15internal sealed class LegacyTagJoiner : IReadOnlyList<KeyValuePair<string, object?>>
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
16internal sealed class ModernTagJoiner : IReadOnlyList<KeyValuePair<string, object?>>
Logging\Import\LoggerFactoryScopeProvider.cs (1)
146private sealed class ActivityLogScope : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.ReadOnlyList.cs (1)
10public sealed partial class LoggerMessageState : IReadOnlyList<KeyValuePair<string, object?>>
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
Microsoft.Maui (2)
Primitives\ItemDelegateList.cs (1)
7 public class ItemDelegateList<T> : IReadOnlyList<T>
Primitives\LockableObservableListWrapper.cs (1)
12 public class LockableObservableListWrapper : IList<string>, ICollection<string>, INotifyCollectionChanged, INotifyPropertyChanged, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
Microsoft.Maui.Controls (5)
ListProxy.cs (1)
12 internal sealed class ListProxy : IReadOnlyList<object>, IListProxy, INotifyCollectionChanged
ReadOnlyCastingList.cs (2)
9 internal class ReadOnlyCastingList<T, TFrom> : IReadOnlyList<T> where T : class where TFrom : class 39 internal class ReadOnlyCastingReadOnlyList<T, TFrom> : IReadOnlyList<T> where T : class where TFrom : class
SynchronizedList.cs (1)
9 internal class SynchronizedList<T> : IList<T>, IReadOnlyList<T>
TemplatedItemsList.cs (1)
1226 class ShortNamesProxy : IReadOnlyList<string>, INotifyCollectionChanged, IDisposable
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
18public sealed class SchemaShape : IReadOnlyList<SchemaShape.Column>
Microsoft.ML.Data (1)
Transforms\Normalizer.cs (1)
486private sealed class ColumnFunctionAccessor : IReadOnlyList<IColumnFunction>
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
19public sealed class DataViewSchema : IReadOnlyList<DataViewSchema.Column>
Microsoft.ML.StandardTrainers (1)
Standard\LinearModelParameters.cs (1)
63private sealed class WeightsCollection : IReadOnlyList<float>
Microsoft.Private.Windows.Core (2)
System\Collections\Generic\ListConverter.cs (1)
15internal class ListConverter<TIn, TOut> : IReadOnlyList<TOut>
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
10private sealed class StringListAdapter : IReadOnlyList<string?>
Microsoft.TemplateEngine.Utils (1)
CombinedList.cs (1)
8public class CombinedList<T> : IReadOnlyList<T>
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
30internal class IReadOnlyList<T> : global::System.Collections.Generic.IReadOnlyList<T> 51public class FromAbiHelper : global::System.Collections.Generic.IReadOnlyList<T>
Roslyn.Diagnostics.Analyzers (9)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
23internal class List<T> : Collection<T>, IList<T>, IReadOnlyList<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
18internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
38private sealed class ReadOnlyList<T>(IList<T> list) : IReadOnlyList<T>
Shared (1)
EmptyCollections\EmptyReadOnlyList.cs (1)
17internal sealed class EmptyReadOnlyList<T> : IReadOnlyList<T>, ICollection<T>
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
35IList<KeyValuePair<TKey, TValue>>, IReadOnlyList<KeyValuePair<TKey, TValue>>, IList 1467public sealed class KeyCollection : IList<TKey>, IReadOnlyList<TKey>, IList 1662public sealed class ValueCollection : IList<TValue>, IReadOnlyList<TValue>, IList
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
18public sealed class Builder : IList<T>, IReadOnlyList<T>
System\Collections\Immutable\ImmutableArray_1.cs (1)
15public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T>
System\Collections\Immutable\ImmutableArray_1.netcoreapp.cs (1)
8public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T>
System\Collections\Immutable\ImmutableExtensions.cs (2)
108private sealed class ListOfTWrapper<T> : IReadOnlyList<T> 168private sealed class FallbackWrapper<T> : IReadOnlyList<T>
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
32public sealed class Builder : IList<T>, IList, IReadOnlyList<T>
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\TagList.netcore.cs (1)
22public struct TagList : IList<KeyValuePair<string, object?>>, IReadOnlyList<KeyValuePair<string, object?>>
System.Linq (3)
System\Linq\Range.SpeedOpt.cs (1)
11private sealed partial class RangeIterator<T> : IList<T>, IReadOnlyList<T> where T : INumber<T>
System\Linq\Repeat.SpeedOpt.cs (1)
11private sealed partial class RepeatIterator<TResult> : IList<TResult>, IReadOnlyList<TResult>
System\Linq\SkipTake.SpeedOpt.cs (1)
16private sealed class IListSkipTakeIterator<TSource> : Iterator<TSource>, IList<TSource>, IReadOnlyList<TSource>
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\CompilerScope.cs (1)
534internal sealed class ParameterList : IReadOnlyList<ParameterExpression>
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
25public readonly struct ArraySegment<T> : IList<T>, IReadOnlyList<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
21public class List<T> : IList<T>, IList, IReadOnlyList<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
14public class Collection<T> : IList<T>, IList, IReadOnlyList<T>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
15public class ReadOnlyCollection<T> : IList<T>, IList, IReadOnlyList<T>
System\Array.NativeAot.cs (1)
516internal class Array<T> : Array, IEnumerable<T>, ICollection<T>, IList<T>, IReadOnlyList<T>
System.Private.Windows.Core (2)
System\Collections\Generic\ListConverter.cs (1)
15internal class ListConverter<TIn, TOut> : IReadOnlyList<TOut>
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
10private sealed class StringListAdapter : IReadOnlyList<string?>
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (2)
15public readonly struct GenericParameterHandleCollection : IReadOnlyList<GenericParameterHandle> 123public readonly struct GenericParameterConstraintHandleCollection : IReadOnlyList<GenericParameterConstraintHandle>
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
15public sealed class ImmutableEquatableArray<T> : IEquatable<ImmutableEquatableArray<T>>, IReadOnlyList<T>
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
44public class CaptureCollection : IList<Capture>, IReadOnlyList<Capture>, IList
System\Text\RegularExpressions\GroupCollection.cs (1)
40public class GroupCollection : IList<Group>, IReadOnlyList<Group>, IList, IReadOnlyDictionary<string, Group>
System\Text\RegularExpressions\MatchCollection.cs (1)
57public class MatchCollection : IList<Match>, IReadOnlyList<Match>, IList
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
13: IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
5818 references to IReadOnlyList
aspire (120)
Agents\AgentEnvironmentScanContext.cs (1)
65public IReadOnlyList<AgentEnvironmentApplicator> Applicators => _applicators;
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
102public IReadOnlyList<IAppHostAuxiliaryBackchannel> GetConnectionsForWorkingDirectory(DirectoryInfo workingDirectory) 199private async Task<IReadOnlyList<Task>> ProcessDirectoryChangesAsync(CancellationToken cancellationToken)
Backchannel\ExtensionBackchannel.cs (2)
35Task<IReadOnlyList<T>> PromptForSelectionsAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken) where T : notnull; 441public async Task<IReadOnlyList<T>> PromptForSelectionsAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Backchannel\IAuxiliaryBackchannelMonitor.cs (1)
44IReadOnlyList<IAppHostAuxiliaryBackchannel> GetConnectionsForWorkingDirectory(DirectoryInfo workingDirectory);
Backchannel\ResourceSnapshotMapper.cs (3)
45public static ResourceJson MapToResourceJson(ResourceSnapshot snapshot, IReadOnlyList<ResourceSnapshot> allSnapshots, string? dashboardBaseUrl = null, bool includeEnvironmentVariableValues = true) 160public static IReadOnlyList<ResourceSnapshot> ResolveResources(string resourceName, IReadOnlyList<ResourceSnapshot> snapshots)
Certificates\CertificateGeneration\UnixCertificateManager.cs (2)
833private bool TryGetNssDbOverrides(out IReadOnlyList<string> overrides) 868if (TryGetNssDbOverrides(out var nssDbOverrides))
Certificates\DevCertInfo.cs (1)
73public required IReadOnlyList<DevCertInfo> Certificates { get; init; }
Commands\AgentInitCommand.cs (1)
237var selected = await _interactionService.PromptForSelectionsAsync(
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\DocsListCommand.cs (1)
58var docs = await InteractionService.ShowStatusAsync(
Commands\DoctorCommand.cs (3)
48var results = await InteractionService.ShowStatusAsync( 66private void OutputJson(IReadOnlyList<EnvironmentCheckResult> results) 89private void OutputHumanReadable(IReadOnlyList<EnvironmentCheckResult> results)
Commands\ExportCommand.cs (5)
160var allOtlpResources = TelemetryCommandHelpers.ToOtlpResources(telemetryResources); 205private static void AddResources(ExportArchive exportArchive, IReadOnlyList<ResourceSnapshot> snapshots, string? resourceName) 228IReadOnlyList<ResourceSnapshot> snapshots, 259IReadOnlyList<IOtlpResource> allOtlpResources, 290IReadOnlyList<IOtlpResource> allOtlpResources,
Commands\InitCommand.cs (5)
266var selectedProjects = await InteractionService.PromptForSelectionsAsync( 862public IReadOnlyList<FileInfo> SolutionProjects { get; set; } = Array.Empty<FileInfo>(); 872public IReadOnlyList<ExecutableProjectInfo> ExecutableProjects { get; set; } = Array.Empty<ExecutableProjectInfo>(); 877public IReadOnlyList<ExecutableProjectInfo> ExecutableProjectsToAddToAppHost { get; set; } = Array.Empty<ExecutableProjectInfo>(); 882public IReadOnlyList<ExecutableProjectInfo> ProjectsToAddServiceDefaultsTo { get; set; } = Array.Empty<ExecutableProjectInfo>();
Commands\LogsCommand.cs (5)
205IReadOnlyList<ResourceSnapshot> snapshots, 254IReadOnlyList<ResourceSnapshot> snapshots, 295IReadOnlyList<ResourceSnapshot> snapshots, 311private static LogEntry ParseLogLine(ResourceLogLine logLine, LogParser logParser, IReadOnlyList<ResourceSnapshot> snapshots) 351private static string ResolveResourceName(string resourceName, IReadOnlyList<ResourceSnapshot> snapshots)
Commands\PipelineCommandBase.cs (1)
698var pipelineSummary = !hasErrors ? publishingActivity.Data.PipelineSummary : null;
Commands\TelemetryCommandHelpers.cs (3)
322public static IReadOnlyList<IOtlpResource> ToOtlpResources(ResourceInfoJson[] resources) 336public static void ResolveResourceColors(ResourceColorMap colorMap, IReadOnlyList<IOtlpResource> allResources) 345public static string ResolveResourceName(OtlpResourceJson? resource, IReadOnlyList<IOtlpResource> 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)
Commands\TelemetryTracesCommand.cs (4)
116var allOtlpResources = TelemetryCommandHelpers.ToOtlpResources(resources); 186var allOtlpResources = TelemetryCommandHelpers.ToOtlpResources(resources); 239private void DisplayTracesTable(string json, IReadOnlyList<IOtlpResource> allResources) 312private void DisplayTraceDetails(string json, string traceId, IReadOnlyList<IOtlpResource> allResources)
DotNet\DotNetCliExecution.cs (1)
31public IReadOnlyList<string> Arguments => _process.StartInfo.ArgumentList.ToArray();
DotNet\DotNetCliRunner.cs (2)
40Task<(int ExitCode, IReadOnlyList<FileInfo> Projects)> GetSolutionProjectsAsync(FileInfo solutionFile, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken); 1038public async Task<(int ExitCode, IReadOnlyList<FileInfo> Projects)> GetSolutionProjectsAsync(FileInfo solutionFile, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
DotNet\IDotNetCliExecution.cs (1)
19IReadOnlyList<string> Arguments { get; }
Interaction\ConsoleInteractionService.cs (1)
200public async 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
Interaction\ExtensionInteractionService.cs (3)
264public async Task<IReadOnlyList<T>> PromptForSelectionsAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, 269var tcs = new TaskCompletionSource<IReadOnlyList<T>>(); 277var result = await Backchannel.PromptForSelectionsAsync(promptText.RemoveSpectreFormatting(), choices, choiceFormatter, _cancellationToken).ConfigureAwait(false);
Interaction\IInteractionService.cs (1)
19Task<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;
Mcp\Docs\DocsIndexService.cs (11)
31ValueTask<IReadOnlyList<DocsListItem>> ListDocumentsAsync(CancellationToken cancellationToken = default); 40ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default); 83public required IReadOnlyList<string> Sections { get; init; } 172var documents = await LlmsTxtParser.ParseAsync(content, cancellationToken).ConfigureAwait(false); 190public async ValueTask<IReadOnlyList<DocsListItem>> ListDocumentsAsync(CancellationToken cancellationToken = default) 210public async ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 516private static float ScoreCodeIdentifiers(IReadOnlyList<string> codeSpans, IReadOnlyList<string> identifiers, string[] queryTokens) 618public IReadOnlyList<IndexedSection> Sections { get; } 630public IReadOnlyList<string> CodeSpans { get; } = 637public IReadOnlyList<string> Identifiers { get; } =
Mcp\Docs\DocsSearchService.cs (2)
38public required IReadOnlyList<SearchResult> Results { get; init; } 135var searchResults = await _docsIndexService.SearchAsync(query, topK, cancellationToken).ConfigureAwait(false);
Mcp\Docs\LlmsTxtParser.cs (5)
36public required IReadOnlyList<LlmsSection> Sections { get; init; } 75public static Task<IReadOnlyList<LlmsDocument>> ParseAsync(string content, CancellationToken cancellationToken = default) 79return Task.FromResult<IReadOnlyList<LlmsDocument>>([]); 88return Task.FromResult<IReadOnlyList<LlmsDocument>>([]); 111return Task.FromResult<IReadOnlyList<LlmsDocument>>(documents);
Mcp\KnownMcpTools.cs (1)
29public static IReadOnlyList<string> All { get; } =
Mcp\Tools\DoctorTool.cs (1)
36var results = await environmentChecker.CheckAllAsync(cancellationToken);
Mcp\Tools\ListDocsTool.cs (1)
45var docs = await _docsIndexService.ListDocumentsAsync(cancellationToken).ConfigureAwait(false);
Mcp\Tools\ListIntegrationsTool.cs (1)
152var inScopeConnections = auxiliaryBackchannelMonitor.GetConnectionsForWorkingDirectory(executionContext.WorkingDirectory);
Processes\DetachedProcessLauncher.cs (1)
71public static Process Start(string fileName, IReadOnlyList<string> arguments, string workingDirectory)
Processes\DetachedProcessLauncher.Unix.cs (1)
18private static Process StartUnix(string fileName, IReadOnlyList<string> arguments, string workingDirectory)
Processes\DetachedProcessLauncher.Windows.cs (2)
20private static Process StartWindows(string fileName, IReadOnlyList<string> arguments, string workingDirectory) 140private static StringBuilder BuildCommandLine(string fileName, IReadOnlyList<string> arguments)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (4)
478public IReadOnlyList<BackchannelPipelineSummaryItem>? PipelineSummary { get; init; } 483public IReadOnlyList<PublishingPromptInput>? Inputs { get; init; } 551public IReadOnlyList<KeyValuePair<string, string>>? Options { get; init; } 561public IReadOnlyList<string>? ValidationErrors { get; init; }
src\Shared\Otlp\OtlpHelpers.cs (1)
89public static string GetResourceName(IOtlpResource resource, IReadOnlyList<IOtlpResource> allResources)
Telemetry\AspireCliTelemetry.cs (1)
86internal IReadOnlyList<KeyValuePair<string, object?>> GetDefaultTags()
Utils\ConsoleActivityLogger.cs (3)
44private IReadOnlyList<BackchannelPipelineSummaryItem>? _pipelineSummary; 281var pipelineSummary = _pipelineSummary; 337public void SetFinalResult(bool succeeded, IReadOnlyList<BackchannelPipelineSummaryItem>? pipelineSummary = null)
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (1)
31public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default)
Utils\EnvironmentChecker\DeprecatedAgentConfigCheck.cs (2)
37public Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 83return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>(results);
Utils\EnvironmentChecker\DeprecatedWorkloadCheck.cs (1)
22public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default)
Utils\EnvironmentChecker\DevCertsCheck.cs (5)
23public Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 30return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>(results); 35return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 52IReadOnlyList<DevCertInfo> certInfos) 203private static JsonObject BuildCertificateMetadata(IReadOnlyList<DevCertInfo> certInfos)
Utils\EnvironmentChecker\DotNetSdkCheck.cs (1)
26public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default)
Utils\EnvironmentChecker\EnvironmentChecker.cs (2)
16public async Task<IReadOnlyList<EnvironmentCheckResult>> CheckAllAsync(CancellationToken cancellationToken = default) 26var checkResults = await check.CheckAsync(cancellationToken);
Utils\EnvironmentChecker\IEnvironmentCheck.cs (1)
21Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default);
Utils\EnvironmentChecker\IEnvironmentChecker.cs (1)
16Task<IReadOnlyList<EnvironmentCheckResult>> CheckAllAsync(CancellationToken cancellationToken = default);
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (5)
16public Task<IReadOnlyList<EnvironmentCheckResult>> CheckAsync(CancellationToken cancellationToken = default) 22return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([]); 31return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([]); 39return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult 51return Task.FromResult<IReadOnlyList<EnvironmentCheckResult>>([new EnvironmentCheckResult
Aspire.Cli.Tests (131)
Backchannel\ResourceSnapshotMapperTests.cs (7)
68var result = ResourceSnapshotMapper.ResolveResources("cache-zuyppzgw", snapshots); 83var result = ResourceSnapshotMapper.ResolveResources("cache", snapshots); 99var result = ResourceSnapshotMapper.ResolveResources("cache", snapshots); 114var result = ResourceSnapshotMapper.ResolveResources("cache-abc12345", snapshots); 128var result = ResourceSnapshotMapper.ResolveResources("nonexistent", snapshots); 141var resultByName = ResourceSnapshotMapper.ResolveResources("cache-zuyppzgw", snapshots); 144var resultByDisplayName = ResourceSnapshotMapper.ResolveResources("CACHE", snapshots);
Commands\DocsCommandTests.cs (5)
180public ValueTask<IReadOnlyList<DocsListItem>> ListDocumentsAsync(CancellationToken cancellationToken = default) 188return ValueTask.FromResult<IReadOnlyList<DocsListItem>>(docs); 191public ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 198return ValueTask.FromResult<IReadOnlyList<DocsSearchResult>>(results.Take(topK).ToList() as IReadOnlyList<DocsSearchResult>);
Commands\DotNetSdkCheckTests.cs (7)
24var results = await check.CheckAsync().DefaultTimeout(); 37var results = await check.CheckAsync().DefaultTimeout(); 48var results = await check.CheckAsync().DefaultTimeout(); 59var results = await check.CheckAsync().DefaultTimeout(); 73var results = await check.CheckAsync().DefaultTimeout(); 84var results = await check.CheckAsync().DefaultTimeout(); 108var results = await check.CheckAsync().DefaultTimeout();
Commands\NewCommandTests.cs (4)
1558public 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 1567return Task.FromResult<IReadOnlyList<T>>(preSelected.ToList()); 1570return Task.FromResult<IReadOnlyList<T>>(choices.ToList()); 1761public Task<IReadOnlyList<(string PackageId, string Version)>> GetPackageReferencesAsync(FileInfo appHostFile, CancellationToken cancellationToken)
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());
Commands\TelemetryCommandTests.cs (1)
156var result = TelemetryCommandHelpers.ToOtlpResources(resources);
Commands\TelemetryTracesCommandTests.cs (1)
153private static string[][] ParseTableDataRows(IReadOnlyList<string> outputLines)
Commands\UpdateCommandTests.cs (1)
1054public 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
Mcp\Docs\DocsIndexServiceTests.cs (30)
42var docs = await service.ListDocumentsAsync(); 55var docs = await service.ListDocumentsAsync(); 78var results = await service.SearchAsync("Redis"); 97var results = await service.SearchAsync("caching"); 120var results = await service.SearchAsync("Configuration"); 145var results = await service.SearchAsync("Redis"); 171var results = await service.SearchAsync("AddRedis"); 210var results = await service.SearchAsync("Redis", topK: 3); 226var results = await service.SearchAsync(""); 242var results = await service.SearchAsync(" "); 265var results = await service.SearchAsync("Redis caching"); 445var results = await service.SearchAsync("Redis"); 468var results = await service.SearchAsync(null!); 533var docs = await service.ListDocumentsAsync(); 544var docs = await service.ListDocumentsAsync(); 555var results = await service.SearchAsync("Redis"); 634var results = await service.SearchAsync("Redis!@#$%^&*()"); 656var results = await service.SearchAsync(longQuery); 697var results = await service.SearchAsync("Redis", topK: 0); 715var results = await service.SearchAsync("Redis", topK: -1); 740var results = await service.SearchAsync("service-discovery"); 767var results = await service.SearchAsync("service discovery"); 793var results = await service.SearchAsync("javascript"); 819var results = await service.SearchAsync("mcp"); 845var results = await service.SearchAsync("redis"); 871var results = await service.SearchAsync("azure cosmos"); 899var results = await service.SearchAsync("service"); 927var results = await service.SearchAsync("service-bus"); 952var results = await service.SearchAsync("changelog"); 978var results = await service.SearchAsync("whats new");
Mcp\Docs\LlmsTxtParserTests.cs (35)
14var result = await LlmsTxtParser.ParseAsync("").DefaultTimeout(); 22var result = await LlmsTxtParser.ParseAsync(" \n\t\n ").DefaultTimeout(); 36var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 51var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 79var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 104var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 136var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 157var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 171var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 185var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 200var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 224var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 240var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 253var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 266var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 285var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 302var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 348var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 400var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 417var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 433var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 451var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 463var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 497var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 514var result = await LlmsTxtParser.ParseAsync(content).DefaultTimeout(); 525var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 533var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 545var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 556var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 567var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 587var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 603var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 619var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 639var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout(); 660var result = await LlmsTxtParser.ParseAsync(AspireDotDevFourArticleExample).DefaultTimeout();
Mcp\MockPackagingService.cs (1)
76public IReadOnlyList<IAppHostAuxiliaryBackchannel> GetConnectionsForWorkingDirectory(DirectoryInfo workingDirectory)
Mcp\TestDocsIndexService.cs (4)
68public ValueTask<IReadOnlyList<DocsListItem>> ListDocumentsAsync(CancellationToken cancellationToken = default) 70return ValueTask.FromResult<IReadOnlyList<DocsListItem>>(_documents); 73public ValueTask<IReadOnlyList<DocsSearchResult>> SearchAsync(string query, int topK = 10, CancellationToken cancellationToken = default) 82return ValueTask.FromResult<IReadOnlyList<DocsSearchResult>>(results);
Projects\ExtensionGuestLauncherTests.cs (1)
164public 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 => throw new NotImplementedException();
Telemetry\AspireCliTelemetryTests.cs (6)
38var defaultTags = fixture.Telemetry.GetDefaultTags(); 106var defaultTags = fixture.Telemetry.GetDefaultTags(); 195var tags = fixture.Telemetry.GetDefaultTags(); 206var tags = fixture.Telemetry.GetDefaultTags(); 230var defaultTags = fixture.Telemetry.GetDefaultTags(); 261var tags = telemetry.GetDefaultTags();
Templating\DotNetTemplateFactoryTests.cs (2)
460public 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 519public Task<(int ExitCode, IReadOnlyList<FileInfo> Projects)> GetSolutionProjectsAsync(FileInfo solutionFile, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
TestServices\TestAppHostProjectFactory.cs (1)
152public Task<IReadOnlyList<(string PackageId, string Version)>> GetPackageReferencesAsync(FileInfo appHostFile, CancellationToken cancellationToken)
TestServices\TestAuxiliaryBackchannelMonitor.cs (1)
76public IReadOnlyList<IAppHostAuxiliaryBackchannel> GetConnectionsForWorkingDirectory(DirectoryInfo workingDirectory)
TestServices\TestDotNetCliExecutionFactory.cs (1)
97public IReadOnlyList<string> Arguments { get; }
TestServices\TestDotNetCliRunner.cs (3)
25public Func<FileInfo, DotNetCliRunnerInvocationOptions, CancellationToken, (int ExitCode, IReadOnlyList<FileInfo> Projects)>? GetSolutionProjectsAsyncCallback { get; set; } 116public Task<(int ExitCode, IReadOnlyList<FileInfo> Projects)> GetSolutionProjectsAsync(FileInfo solutionFile, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken) 120: Task.FromResult<(int, IReadOnlyList<FileInfo>)>((0, Array.Empty<FileInfo>()));
TestServices\TestExtensionBackchannel.cs (2)
175public Task<IReadOnlyList<T>> PromptForSelectionsAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken) where T : notnull 184return Task.FromResult<IReadOnlyList<T>>(choices.ToList());
TestServices\TestExtensionInteractionService.cs (3)
58public 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 67return Task.FromResult<IReadOnlyList<T>>(preSelected.ToList()); 70return Task.FromResult<IReadOnlyList<T>>(choices.ToList());
TestServices\TestInteractionService.cs (3)
116public 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 133return Task.FromResult<IReadOnlyList<T>>(preSelected.ToList()); 136return Task.FromResult<IReadOnlyList<T>>(choices.ToList());
TestServices\TestMcpNotifier.cs (1)
18public IReadOnlyList<string> Notifications => _notifications;
Aspire.Dashboard (49)
Api\TelemetryApiService.cs (1)
416private static List<ResourceKey?>? ResolveResourceKeys(IReadOnlyList<OtlpResource> resources, string[]? resourceNames)
Components\Controls\AspireMenu.razor.cs (1)
34public required IReadOnlyList<MenuButtonItem> Items { get; set; }
Components\Dialogs\ManageDataDialog.razor.cs (1)
170await foreach (var changes in subscription.WithCancellation(_cts.Token).ConfigureAwait(false))
Components\Pages\ConsoleLogs.razor.cs (3)
269await foreach (var changes in subscription.WithCancellation(_resourceSubscriptionToken).ConfigureAwait(false)) 309await foreach (var batch in _logEntryChannel.GetBatchesAsync(minReadInterval: TimeSpan.FromMilliseconds(100), cancellationToken: _resourceSubscriptionToken)) 783await foreach (var batch in logSubscription.ConfigureAwait(false))
Components\Pages\Resources.razor.cs (1)
310await foreach (var changes in subscription.WithCancellation(_watchTaskCancellationTokenSource.Token).ConfigureAwait(false))
Configuration\DashboardOptions.cs (1)
299public IReadOnlyList<BindingAddress> GetEndpointAddresses()
DashboardWebApplication.cs (4)
57private readonly IReadOnlyList<string> _validationFailures; 110public IReadOnlyList<string> ValidationFailures => _validationFailures; 543private static void WriteValidationFailures(ILogger<DashboardWebApplication> logger, IReadOnlyList<string> validationFailures) 589var frontendAddresses = dashboardOptions.Frontend.GetEndpointAddresses();
Mcp\AspireResourceMcpTools.cs (1)
103await foreach (var entry in _dashboardClient.GetConsoleLogs(resourceName, subscribeConsoleLogsCts.Token).ConfigureAwait(false))
Model\Assistant\AIHelpers.cs (4)
189var frontendEndpoints = options.Frontend.GetEndpointAddresses(); 232public static bool TryGetResource(IReadOnlyList<OtlpResource> resources, string resourceName, [NotNullWhen(true)] out OtlpResource? resource) 247public static bool TryGetResource(IReadOnlyList<ResourceViewModel> resources, string resourceName, [NotNullWhen(true)] out ResourceViewModel? resource) 268IReadOnlyList<OtlpResource> resources,
Model\Assistant\AssistantChatDataContext.cs (5)
54public IReadOnlyList<ResourceViewModel> GetResources() 66var resources = _dashboardClient.GetResources(); 238var resources = _dashboardClient.GetResources(); 261await foreach (var entry in _dashboardClient.GetConsoleLogs(resourceName, subscribeConsoleLogsCts.Token).ConfigureAwait(false)) 308var resources = _dashboardClient.GetResources();
Model\Assistant\Markdown\AspireEnrichmentParser.cs (1)
53var resources = _options.DataContext.GetResources();
Model\ConsoleLogsFetcher.cs (1)
34await foreach (var batch in _dashboardClient.GetConsoleLogs(resourceName, cancellationToken).ConfigureAwait(false))
Model\ResourceOutgoingPeerResolver.cs (1)
49await foreach (var changes in subscription.WithCancellation(_watchContainersTokenSource.Token).ConfigureAwait(false))
Model\StructuredLogsViewModel.cs (1)
34public IReadOnlyList<FieldTelemetryFilter> Filters => _filters;
Model\TelemetryExportService.cs (5)
65var snapshot = _dashboardClient.GetResources(); 274internal static OtlpTelemetryDataJson ConvertSpansToOtlpJson(IReadOnlyList<OtlpSpan> spans, IOutgoingPeerResolver[] outgoingPeerResolvers) 301internal static OtlpTelemetryDataJson ConvertTracesToOtlpJson(IReadOnlyList<OtlpTrace> traces, IOutgoingPeerResolver[] outgoingPeerResolvers) 689internal static string ConvertResourceToJson(ResourceViewModel resource, IReadOnlyList<ResourceViewModel> allResources) 695internal static ResourceJson CreateResourceJson(ResourceViewModel resource, IReadOnlyList<ResourceViewModel> allResources)
Model\TracesViewModel.cs (1)
34public IReadOnlyList<FieldTelemetryFilter> Filters => _filters;
Otlp\Model\OtlpResource.cs (1)
284public static string GetResourceName(OtlpResourceView resource, IReadOnlyList<IOtlpResource> allResources) =>
ServiceClient\DashboardClient.cs (9)
61private ImmutableHashSet<Channel<IReadOnlyList<ResourceViewModelChange>>> _outgoingResourceChannels = []; 586public IReadOnlyList<ResourceViewModel> GetResources() 607var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>( 619async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> StreamUpdatesAsync([EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default) 623await foreach (var batch in channel.GetBatchesAsync(minReadInterval: TimeSpan.FromMilliseconds(100), cancellationToken: enumeratorCancellationToken).ConfigureAwait(false)) 684public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 698var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>( 717await foreach (var batch in channel.Reader.ReadAllAsync(combinedTokens.Token).ConfigureAwait(false)) 725public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken)
ServiceClient\IDashboardClient.cs (4)
53IReadOnlyList<ResourceViewModel> GetResources(); 69IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, CancellationToken cancellationToken); 71IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, CancellationToken cancellationToken); 78IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> Subscription);
src\Shared\ChannelExtensions.cs (1)
25public static async IAsyncEnumerable<IReadOnlyList<T>> GetBatchesAsync<T>(
src\Shared\Otlp\OtlpHelpers.cs (1)
89public static string GetResourceName(IOtlpResource resource, IReadOnlyList<IOtlpResource> allResources)
Utils\FilterHelpers.cs (1)
23IReadOnlyList<FieldTelemetryFilter> filters,
Aspire.Dashboard.Components.Tests (57)
Pages\ConsoleLogsTests.cs (25)
40var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 41var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 90var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 91var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 150consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 178var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 179var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 279var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 280var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 331var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 332var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 379var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 380var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 428var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 429var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 477var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 478var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 534var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 535var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 595var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 596var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 659var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 660var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 718var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>(); 719var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Pages\MetricsTests.cs (2)
228var items1 = tree1.FindComponents<FluentTreeItem>(); 273var items2 = tree2.FindComponents<FluentTreeItem>();
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>>,
Shared\ResourceSetupHelpers.cs (1)
63context.Services.AddSingleton<IDashboardClient>(dashboardClient ?? new TestDashboardClient(isEnabled: true, initialResources: [], resourceChannelProvider: Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>));
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
tests\Shared\TestDashboardClient.cs (12)
14private readonly Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? _consoleLogsChannelProvider; 15private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 28Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? consoleLogsChannelProvider = null, 29Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 62public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 71await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 77public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 86await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 103async static IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken) 105await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 144public IReadOnlyList<ResourceViewModel> GetResources() => _initialResources?.ToList() ?? [];
Aspire.Dashboard.Tests (45)
ChannelExtensionsTests.cs (19)
19var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 24IReadOnlyList<IReadOnlyList<string>>? readBatch = null; 27await foreach (var batch in channel.GetBatchesAsync(cancellationToken: cts.Token)) 43var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 48IReadOnlyList<IReadOnlyList<string>>? readBatch = null; 51await foreach (var batch in channel.GetBatchesAsync().WithCancellation(cts.Token)) 67var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 68var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>(); 78await foreach (var batch in channel.GetBatchesAsync(minReadInterval).WithCancellation(cts.Token)) 91var read1 = await resultChannel.Reader.ReadAsync().DefaultTimeout(); 96var read2 = await resultChannel.Reader.ReadAsync().DefaultTimeout(); 111var channel = Channel.CreateUnbounded<IReadOnlyList<string>>(); 112var resultChannel = Channel.CreateUnbounded<IReadOnlyList<IReadOnlyList<string>>>(); 122await foreach (var batch in channel.GetBatchesAsync(minReadInterval).WithCancellation(cts.Token)) 135var read1 = await resultChannel.Reader.ReadAsync().DefaultTimeout();
Integration\Playwright\Infrastructure\MockDashboardClient.cs (4)
44public IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, CancellationToken cancellationToken) => throw new NotImplementedException(); 45public IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, CancellationToken cancellationToken) => throw new NotImplementedException(); 55private static async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> Test() 73public IReadOnlyList<ResourceViewModel> GetResources() => _resources ?? [];
Mcp\AspireResourceMcpToolsTests.cs (1)
133var logsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
Model\AIAssistant\AssistantChatDataContextTests.cs (1)
98var consoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceLogLine>>();
Model\DashboardClientTests.cs (2)
57await foreach (var item in subscription.WithCancellation(cts.Token)) 85await foreach (var item in subscription)
ResourceOutgoingPeerResolverTests.cs (4)
182async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> GetChanges([EnumeratorCancellation] CancellationToken cancellationToken = default) 420public IReadOnlyList<ResourceViewModel> GetResources() => []; 421public IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, CancellationToken cancellationToken) => throw new NotImplementedException(); 423public IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, CancellationToken cancellationToken) => throw new NotImplementedException();
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
tests\Shared\TestDashboardClient.cs (12)
14private readonly Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? _consoleLogsChannelProvider; 15private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 28Func<string, Channel<IReadOnlyList<ResourceLogLine>>>? consoleLogsChannelProvider = null, 29Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 62public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> SubscribeConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 71await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 77public async IAsyncEnumerable<IReadOnlyList<ResourceLogLine>> GetConsoleLogs(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 86await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 103async static IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken) 105await foreach (var item in channel.Reader.ReadAllAsync(cancellationToken)) 144public IReadOnlyList<ResourceViewModel> GetResources() => _initialResources?.ToList() ?? [];
Aspire.Hosting (69)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
366await foreach (var batch in loggerService.WatchAsync(sourceResourceName).WithCancellation(cancellationToken).ConfigureAwait(false))
ApplicationModel\CustomResourceSnapshot.cs (2)
428public static readonly IReadOnlyList<string> TerminalStates = [Finished, FailedToStart, Exited]; 433public static readonly IReadOnlyList<string> BuildableStates = [Running, Waiting, Finished, FailedToStart, Exited];
ApplicationModel\Docker\DockerfileBuilder.cs (1)
27public IReadOnlyList<DockerfileStage> Stages => _stages.AsReadOnly();
ApplicationModel\DockerfileBuilderCallbackAnnotation.cs (1)
36public IReadOnlyList<Func<DockerfileBuilderCallbackContext, Task>> Callbacks => _callbacks.AsReadOnly();
ApplicationModel\ReferenceExpression.cs (3)
90public IReadOnlyList<string> ManifestExpressions => _manifestExpressions; 95public IReadOnlyList<string?> StringFormats => _stringFormats; 100public IReadOnlyList<IValueProvider> ValueProviders { get; }
ApplicationModel\ResourceExtensions.cs (1)
768public static IReadOnlyList<ResolvedEndpoint> ResolveEndpoints(this IResource resource, IPortAllocator? portAllocator = null)
ApplicationModel\ResourceLoggerService.cs (15)
157public IAsyncEnumerable<IReadOnlyList<LogLine>> GetAllAsync(IResource resource) 177public IAsyncEnumerable<IReadOnlyList<LogLine>> WatchAsync(IResource resource) 197public IAsyncEnumerable<IReadOnlyList<LogLine>> GetAllAsync(string resourceName) 209public IAsyncEnumerable<IReadOnlyList<LogLine>> WatchAsync(string resourceName) 312private static async IAsyncEnumerable<IReadOnlyList<LogLine>> CombineMultipleAsync(string[] resourceNames, Func<string, IAsyncEnumerable<IReadOnlyList<LogLine>>> fetch) 314var channel = Channel.CreateUnbounded<IReadOnlyList<LogLine>>(); 317await foreach (var logLines in fetch(name).ConfigureAwait(false)) 335await foreach (var item in channel.Reader.ReadAllAsync().ConfigureAwait(false)) 408public async IAsyncEnumerable<IReadOnlyList<LogLine>> GetAllAsync(IConsoleLogsService consoleLogsService, [EnumeratorCancellation] CancellationToken cancellationToken = default) 421await foreach (var item in consoleLogsEnumerable.ConfigureAwait(false)) 431public async IAsyncEnumerable<IReadOnlyList<LogLine>> WatchAsync([EnumeratorCancellation] CancellationToken cancellationToken = default) 469await foreach (var entry in channel.GetBatchesAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) 610private static LogLine[] CreateLogLines(ref int lineNumber, IReadOnlyList<LogEntry> entries) 657public IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
710await foreach (var batch in logStream.WithCancellation(cancellationToken).ConfigureAwait(false))
Backchannel\BackchannelDataTypes.cs (4)
478public IReadOnlyList<BackchannelPipelineSummaryItem>? PipelineSummary { get; init; } 483public IReadOnlyList<PublishingPromptInput>? Inputs { get; init; } 551public IReadOnlyList<KeyValuePair<string, string>>? Options { get; init; } 561public IReadOnlyList<string>? ValidationErrors { get; init; }
Dashboard\DashboardEventHandlers.cs (1)
830await foreach (var batch in resourceLoggerService.WatchAsync(dashboardResourceId).WithCancellation(cancellationToken).ConfigureAwait(false))
Dashboard\DashboardService.cs (2)
274await foreach (var batch in updates.WithCancellation(cancellationToken).ConfigureAwait(false)) 323await foreach (var group in enumerable.WithCancellation(cancellationToken).ConfigureAwait(false))
Dashboard\DashboardServiceData.cs (6)
125internal IAsyncEnumerable<IReadOnlyList<LogLine>>? SubscribeConsoleLogs(string resourceName) 131async IAsyncEnumerable<IReadOnlyList<LogLine>> Enumerate([EnumeratorCancellation] CancellationToken cancellationToken = default) 135await foreach (var item in sequence.WithCancellation(linked.Token).ConfigureAwait(false)) 142internal IAsyncEnumerable<IReadOnlyList<LogLine>>? GetConsoleLogs(string resourceName) 148async IAsyncEnumerable<IReadOnlyList<LogLine>> Enumerate([EnumeratorCancellation] CancellationToken cancellationToken = default) 152await foreach (var item in sequence.WithCancellation(linked.Token).ConfigureAwait(false))
Dashboard\ResourcePublisher.cs (3)
58async IAsyncEnumerable<IReadOnlyList<ResourceSnapshotChange>> StreamUpdates([EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default) 64await foreach (var batch in channel.GetBatchesAsync(cancellationToken: linked.Token).ConfigureAwait(false)) 113IAsyncEnumerable<IReadOnlyList<ResourceSnapshotChange>> Subscription);
Dcp\DcpExecutor.cs (6)
643public async IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 645IAsyncEnumerable<IReadOnlyList<(string, bool)>>? enumerable = null; 661await foreach (var batch in enumerable.WithCancellation(cancellationToken).ConfigureAwait(false)) 674private static IEnumerable<LogEntry> CreateLogEntries(IReadOnlyList<(string, bool)> batch) 693IAsyncEnumerable<IReadOnlyList<(string, bool)>>? enumerable = resource switch 725await foreach (var batch in enumerable.WithCancellation(cancellation.Token).ConfigureAwait(false))
Dcp\ResourceLogSource.cs (4)
11using LogEntryList = IReadOnlyList<(string Content, bool IsErrorMessage)>; 18IAsyncEnumerable<LogEntryList> 21public async IAsyncEnumerator<LogEntryList> GetAsyncEnumerator(CancellationToken cancellationToken) 122await foreach (var batch in channel.GetBatchesAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
Devcontainers\DevcontainerSettingsWriter.cs (1)
102private async Task WriteSettingsAsync(IReadOnlyList<PortForwardEntry> newPorts, CancellationToken cancellationToken)
Exec\ExecResourceManager.cs (1)
113await foreach (var logs in _resourceLoggerService.WatchAsync(dcpExecResourceName).WithCancellation(cancellationToken).ConfigureAwait(false))
IConsoleLogsService.cs (1)
10IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken);
IInteractionService.cs (4)
88Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 225public IReadOnlyList<string>? DependsOnInputs { get; init; } 300public IReadOnlyList<KeyValuePair<string, string>>? Options { get; set; } 361public InteractionInputCollection(IReadOnlyList<InteractionInput> inputs)
InteractionService.cs (4)
122public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 209return completion.State is not IReadOnlyList<InteractionInput> inputState 367if (result.State is IReadOnlyList<InteractionInput> inputs) 408var options = input.Options;
Pipelines\PipelineConfigurationContext.cs (1)
24public required IReadOnlyList<PipelineStep> Steps
Pipelines\PublishCompletionOptions.cs (1)
29public IReadOnlyList<PipelineSummaryItem>? PipelineSummary { get; set; }
Publishing\ManifestPublishingContext.cs (3)
490var resolvedEndpoints = resource.ResolveEndpoints(_portAllocator); 739var providers = referenceExpression.ValueProviders; 740var formats = referenceExpression.StringFormats;
ResourceLoggerForwarderService.cs (1)
67await foreach (var logEvent in resourceLoggerService.WatchAsync(resourceId).WithCancellation(cancellationToken).ConfigureAwait(false))
src\Shared\ChannelExtensions.cs (1)
25public static async IAsyncEnumerable<IReadOnlyList<T>> GetBatchesAsync<T>(
Aspire.Hosting.Azure.AppConfiguration (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.AppContainers (1)
ContainerAppContext.cs (1)
141var resolvedEndpoints = Resource.ResolveEndpoints();
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
96var resolvedEndpoints = resource.ResolveEndpoints();
Aspire.Hosting.Azure.CognitiveServices (3)
AzureOpenAIResource.cs (2)
59public IReadOnlyList<AzureOpenAIDeployment> Deployments => _deployments; 61internal IReadOnlyList<AzureOpenAIDeploymentResource> DeploymentResources => _deploymentResources;
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.ContainerRegistry (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBContainerResource.cs (1)
87public IReadOnlyList<string> PartitionKeyPaths
Aspire.Hosting.Azure.EventHubs (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.Functions (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.KeyVault (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.Kusto (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (2)
192var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot(); 224var snapshot = app.Services.GetRequiredService<FakeLogCollector>().GetSnapshot();
Aspire.Hosting.Azure.Search (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.ServiceBus (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.SignalR (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.Storage (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestInteractionService.cs (1)
36public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
tests\Shared\TestPipelineActivityReporter.cs (1)
86public IReadOnlyList<PipelineSummaryItem>? PipelineSummary { get; private set; }
Aspire.Hosting.Azure.WebPubSub (1)
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.CodeGeneration.Go (12)
AtsGoCodeGenerator.cs (12)
64var capabilities = context.Capabilities; 65var dtoTypes = context.DtoTypes; 66var enumTypes = context.EnumTypes; 80var handleTypes = BuildHandleTypes(context); 108private void GenerateEnumTypes(IReadOnlyList<AtsEnumTypeInfo> enumTypes) 142private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 198IReadOnlyList<GoHandleType> handleTypes, 446IReadOnlyList<GoHandleType> handleTypes, 528private IReadOnlyList<GoHandleType> BuildHandleTypes(AtsContext context) 587IReadOnlyList<AtsCapabilityInfo> capabilities) 598var targetTypes = capability.ExpandedTargetTypes.Count > 0 623private static Dictionary<string, bool> CollectListAndDictTypeIds(IReadOnlyList<AtsCapabilityInfo> capabilities)
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
586IReadOnlyList<string> endpoints) where T : IResource
Aspire.Hosting.CodeGeneration.Java (12)
AtsJavaCodeGenerator.cs (12)
63var capabilities = context.Capabilities; 64var dtoTypes = context.DtoTypes; 65var enumTypes = context.EnumTypes; 79var handleTypes = BuildHandleTypes(context); 111private void GenerateEnumTypes(IReadOnlyList<AtsEnumTypeInfo> enumTypes) 161private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 223IReadOnlyList<JavaHandleType> handleTypes, 420IReadOnlyList<JavaHandleType> handleTypes, 498private IReadOnlyList<JavaHandleType> BuildHandleTypes(AtsContext context) 557IReadOnlyList<AtsCapabilityInfo> capabilities) 568var targetTypes = capability.ExpandedTargetTypes.Count > 0 593private static Dictionary<string, bool> CollectListAndDictTypeIds(IReadOnlyList<AtsCapabilityInfo> capabilities)
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
586IReadOnlyList<string> endpoints) where T : IResource
Aspire.Hosting.CodeGeneration.Python (13)
AtsPythonCodeGenerator.cs (13)
62var capabilities = context.Capabilities; 63var dtoTypes = context.DtoTypes; 64var enumTypes = context.EnumTypes; 78var handleTypes = BuildHandleTypes(context); 110private void GenerateEnumTypes(IReadOnlyList<AtsEnumTypeInfo> enumTypes) 141private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 190IReadOnlyList<PythonHandleType> handleTypes, 349IReadOnlyList<PythonHandleType> handleTypes, 411private IReadOnlyList<PythonHandleType> BuildHandleTypes(AtsContext context) 462IReadOnlyList<AtsCapabilityInfo> capabilities) 473var targetTypes = capability.ExpandedTargetTypes.Count > 0 498private static Dictionary<string, bool> CollectListAndDictTypeIds(IReadOnlyList<AtsCapabilityInfo> capabilities) 636IReadOnlyList<AtsCallbackParameterInfo>? parameters,
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
586IReadOnlyList<string> endpoints) where T : IResource
Aspire.Hosting.CodeGeneration.Rust (12)
AtsRustCodeGenerator.cs (12)
75var capabilities = context.Capabilities; 76var dtoTypes = context.DtoTypes; 77var enumTypes = context.EnumTypes; 91var handleTypes = BuildHandleTypes(context); 127private void GenerateEnumTypes(IReadOnlyList<AtsEnumTypeInfo> enumTypes) 181private void GenerateDtoTypes(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 248IReadOnlyList<RustHandleType> handleTypes, 545IReadOnlyList<RustHandleType> handleTypes, 606private IReadOnlyList<RustHandleType> BuildHandleTypes(AtsContext context) 665IReadOnlyList<AtsCapabilityInfo> capabilities) 676var targetTypes = capability.ExpandedTargetTypes.Count > 0 701private static HashSet<string> CollectListAndDictTypeIds(IReadOnlyList<AtsCapabilityInfo> capabilities)
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (1)
586IReadOnlyList<string> endpoints) where T : IResource
Aspire.Hosting.CodeGeneration.TypeScript (14)
AtsTypeScriptCodeGenerator.cs (14)
408var capabilities = context.Capabilities; 409var dtoTypes = context.DtoTypes; 410var enumTypes = context.EnumTypes; 595private void GenerateEnumTypes(IReadOnlyList<AtsEnumTypeInfo> enumTypes) 629private void GenerateDtoInterfaces(IReadOnlyList<AtsDtoTypeInfo> dtoTypes) 860var aCallbackParams = a.CallbackParameters ?? []; 861var bCallbackParams = b.CallbackParameters ?? []; 1394private string GenerateCallbackTypeSignature(IReadOnlyList<AtsCallbackParameterInfo>? callbackParameters, AtsTypeRef? callbackReturnType) 1420var callbackParameters = callbackParam.CallbackParameters; 1466private void GenerateCallbackBody(AtsParameterInfo callbackParam, IReadOnlyList<AtsCallbackParameterInfo>? callbackParameters) 2519private static List<BuilderModel> CreateBuilderModels(IReadOnlyList<AtsCapabilityInfo> capabilities) 2556var expandedTypes = cap.ExpandedTargetTypes; 2713private static Dictionary<string, AtsTypeRef> CollectAllReferencedTypes(IReadOnlyList<AtsCapabilityInfo> capabilities) 2773private static List<AtsCapabilityInfo> GetEntryPointCapabilities(IReadOnlyList<AtsCapabilityInfo> capabilities)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
TestTypes\TestExtensions.cs (1)
586IReadOnlyList<string> endpoints) where T : IResource
Aspire.Hosting.Containers.Tests (1)
WithDockerfileTests.cs (1)
80var logs = collector.GetSnapshot();
Aspire.Hosting.DevTunnels (7)
IDevTunnelClient.cs (7)
40internal sealed record DevTunnelStatus(string TunnelId, int HostConnections, int ClientConnections, string Description, IReadOnlyList<string> Labels) 42public IReadOnlyList<DevTunnelPort> Ports { get; init; } = []; 47public IReadOnlyList<DevTunnelPort> Ports { get; init; } = []; 63public IReadOnlyList<AccessControlEntry> AccessControlEntries { get; init; } = []; 65public sealed record AccessControlEntry(string Type, bool IsDeny, bool IsInherited, IReadOnlyList<string> Subjects, IReadOnlyList<string> Scopes); 74var entries = AccessControlEntries;
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentContext.cs (1)
41var resolvedEndpoints = serviceResource.TargetResource.ResolveEndpoints(environment.PortAllocator);
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestPipelineActivityReporter.cs (1)
86public IReadOnlyList<PipelineSummaryItem>? PipelineSummary { get; private set; }
Aspire.Hosting.Foundry (2)
FoundryResource.cs (1)
63public IReadOnlyList<FoundryDeploymentResource> Deployments => _deployments;
src\Shared\AzureRoleAssignmentUtils.cs (1)
25private static HashSet<RoleDefinition> CreateRoleDefinitions<TBuiltInRole>(IReadOnlyList<TBuiltInRole> roles, Func<TBuiltInRole, string> getName)
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
168var resolvedEndpoints = resource.ResolveEndpoints(Parent.PortAllocator);
Aspire.Hosting.Milvus.Tests (2)
MilvusFunctionalTests.cs (2)
61var collections = await milvusClient.ListCollectionsAsync(cancellationToken: token); 172var collections = await milvusClient.ListCollectionsAsync();
Aspire.Hosting.MySql (1)
MySqlServerResource.cs (1)
113internal IReadOnlyList<MySqlDatabaseResource> DatabaseResources => _databaseResources;
Aspire.Hosting.Qdrant.Tests (2)
QdrantFunctionalTests.cs (2)
60var results = await qdrantClient.SearchAsync(CollectionName, s_testVector, limit: 1, cancellationToken: token); 190var results = await qdrantClient.SearchAsync(CollectionName, s_testVector, limit: 1, cancellationToken: token);
Aspire.Hosting.RemoteHost (17)
AssemblyLoader.cs (6)
16private readonly Lazy<IReadOnlyList<Assembly>> _assemblies; 33_assemblies = new Lazy<IReadOnlyList<Assembly>>( 37public IReadOnlyList<Assembly> GetAssemblies() => _assemblies.Value; 39internal static IReadOnlyList<string> GetAssemblyNamesToLoad( 66internal static IReadOnlyList<string> DiscoverAspireHostingAssemblies(IEnumerable<string?> directories) 114var assemblyNames = GetAssemblyNamesToLoad(configuration, integrationLibsPath, applicationBasePath);
Ats\AtsMarshaller.cs (1)
415if (genericDef == typeof(List<>) || genericDef == typeof(IList<>) || genericDef == typeof(IEnumerable<>) || genericDef == typeof(ICollection<>) || genericDef == typeof(IReadOnlyList<>) || genericDef == typeof(IReadOnlyCollection<>))
Ats\CapabilityDispatcher.cs (1)
75IReadOnlyList<Assembly> assemblies)
AtsCapabilityScanner.cs (6)
650private static string? FindUnknownTypeInParameters(IReadOnlyList<AtsParameterInfo> parameters) 1556IReadOnlyList<AtsCallbackParameterInfo>? callbackParameters = null; 1588private static (IReadOnlyList<AtsCallbackParameterInfo>? Parameters, AtsTypeRef? ReturnType) ExtractCallbackSignature( 1652private static (IReadOnlyList<AtsCallbackParameterInfo>? Parameters, AtsTypeRef? ReturnType) ExtractWellKnownDelegateSignature( 1844if (genericDef == typeof(IReadOnlyList<>) || genericDef == typeof(IReadOnlyCollection<>) || genericDef == typeof(IEnumerable<>)) 2152if (genericDef == typeof(IReadOnlyList<>) || genericDef == typeof(IReadOnlyCollection<>) || genericDef == typeof(IEnumerable<>))
AtsContextFactory.cs (1)
28private static AtsContext Create(IReadOnlyList<Assembly> assemblies, ILogger logger)
CodeGeneration\CodeGeneratorResolver.cs (1)
42IReadOnlyList<Assembly> assemblies)
Language\LanguageSupportResolver.cs (1)
51IReadOnlyList<Assembly> assemblies)
Aspire.Hosting.RemoteHost.Tests (4)
AssemblyLoaderTests.cs (3)
25var assemblyNames = AssemblyLoader.DiscoverAspireHostingAssemblies( 56var assemblyNames = AssemblyLoader.GetAssemblyNamesToLoad( 84var assemblies = loader.GetAssemblies();
CapabilityDispatcherTests.cs (1)
1699public static int SumReadOnlyList(IReadOnlyList<int> values)
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
150internal IReadOnlyList<SqlServerDatabaseResource> DatabaseResources => _databaseResources;
Aspire.Hosting.Testing.Tests (12)
ResourceLoggerForwarderServiceTests.cs (1)
130var hostLogs = fakeLoggerProvider.Collector.GetSnapshot();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
162await foreach (var logEvent in resourceLoggerService.WatchAsync(resourceId).WithCancellation(cancellationTokenSource.Token).ConfigureAwait(false))
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (8)
8public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(ResourceLoggerService service, int targetLogCount, IResource resource) 14public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(IAsyncEnumerable<IReadOnlyList<LogLine>> watchEnumerable, int targetLogCount) 19await foreach (var log in watchEnumerable) 27return (IReadOnlyList<LogLine>)logs; 31public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(IAsyncEnumerator<IReadOnlyList<LogLine>> watchEnumerator, int targetLogCount) 45return (IReadOnlyList<LogLine>)logs;
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
Aspire.Hosting.Tests (68)
Backchannel\AuxiliaryBackchannelTests.cs (1)
596var logs = collector.GetSnapshot();
Backchannel\BackchannelContractTests.cs (1)
149genericDef == typeof(IReadOnlyList<>) ||
Codespaces\CodespacesUrlRewriterTests.cs (1)
41var logs = collector.GetSnapshot();
ConnectionPropertiesExtensionsTests.cs (1)
42private readonly IReadOnlyList<KeyValuePair<string, ReferenceExpression>> _properties = new List<KeyValuePair<string, ReferenceExpression>>(properties);
Dashboard\DashboardServiceTests.cs (1)
36var getConsoleLogsChannel = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>();
Dashboard\ResourcePublisherTests.cs (3)
36var tcs = new TaskCompletionSource<IReadOnlyList<ResourceSnapshotChange>>(TaskCreationOptions.RunContinuationsAsynchronously); 40await foreach (var change in subscription) 165await foreach (var item in subscription.WithCancellation(cts.Token).ConfigureAwait(false))
Dcp\DcpExecutorTests.cs (3)
747var watchLogsResults1 = await watchLogsTask1; 760var watchLogsResults2 = await watchLogsTask2; 826var watchLogsResults = await watchLogsTask;
HealthCheckTests.cs (1)
140var logs = collector.GetSnapshot();
Helpers\DashboardServiceDataExtensions.cs (1)
19await foreach (var changes in updates.WithCancellation(cancellationToken).ConfigureAwait(false))
InteractionServiceTests.cs (2)
996LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string> 1029LoadCallback = c => Task.FromResult<IReadOnlyList<KeyValuePair<string, string>>>(new Dictionary<string, string>
Orchestrator\ParameterProcessorTests.cs (3)
331var logs = await logsTask.DefaultTimeout(); 355var logs = await logsTask.DefaultTimeout(); 398var logs = await logsTask.DefaultTimeout();
Publishing\ResourceContainerImageManagerTests.cs (14)
43var logs = collector.GetSnapshot(); 75var logs = collector.GetSnapshot(); 106var logs = collector.GetSnapshot(); 143var logs = collector.GetSnapshot(); 177var logs = collector.GetSnapshot(); 207var logs = collector.GetSnapshot(); 243var logs = collector.GetSnapshot(); 282var logs = collector.GetSnapshot(); 317var logs = collector.GetSnapshot(); 349var logs = collector.GetSnapshot(); 380var logs = collector.GetSnapshot(); 430var logs = collector.GetSnapshot(); 619var logs = collector.GetSnapshot(); 662var logs = collector.GetSnapshot();
ResourceLoggerServiceTests.cs (14)
35var allLogs = await logsLoop.DefaultTimeout(); 79var allLogs = await logsLoop.DefaultTimeout(); 116var allLogs = await logsLoop.DefaultTimeout(); 168var allLogs = await logsLoop.DefaultTimeout(); 240var allLogs = await logsLoop.DefaultTimeout(); 262var consoleLogsChannel0 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 266var consoleLogsChannel1 = Channel.CreateUnbounded<IReadOnlyList<LogEntry>>(); 291await foreach (var logs in service.GetAllAsync(testResource).DefaultTimeout()) 322await foreach (var batch in service.WatchAsync(testResource)) 326return (IReadOnlyList<LogLine>)logs; 339var allLogs = await watchTask.DefaultTimeout(); 356await foreach (var batch in service.WatchAsync("nonexistent")) 360return (IReadOnlyList<LogLine>)logs; 370var allLogs = await watchTask.DefaultTimeout();
ResourceNotificationTests.cs (4)
366var logs = logger.Collector.GetSnapshot(); 437var logs = logger.Collector.GetSnapshot(); 645var logRecords = logger.Collector.GetSnapshot(); 713var logRecords = logger.Collector.GetSnapshot();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (8)
8public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(ResourceLoggerService service, int targetLogCount, IResource resource) 14public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(IAsyncEnumerable<IReadOnlyList<LogLine>> watchEnumerable, int targetLogCount) 19await foreach (var log in watchEnumerable) 27return (IReadOnlyList<LogLine>)logs; 31public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(IAsyncEnumerator<IReadOnlyList<LogLine>> watchEnumerator, int targetLogCount) 45return (IReadOnlyList<LogLine>)logs;
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
tests\Shared\TestInteractionService.cs (1)
36public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
tests\Shared\TestPipelineActivityReporter.cs (1)
86public IReadOnlyList<PipelineSummaryItem>? PipelineSummary { get; private set; }
Utils\LoggerNotificationExtensions.cs (1)
162await foreach (var logEvent in resourceLoggerService.WatchAsync(resourceId).WithCancellation(cancellationTokenSource.Token).ConfigureAwait(false))
Utils\TestConsoleLogsService.cs (4)
12private readonly Func<string, Channel<IReadOnlyList<LogEntry>>>? _getConsoleLogsChannel; 14public TestConsoleLogsService(Func<string, Channel<IReadOnlyList<LogEntry>>>? getConsoleLogsChannel = null) 19public async IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 28await foreach (var result in channel.Reader.ReadAllAsync(cancellationToken))
WaitForTests.cs (1)
577var logs = collector.GetSnapshot();
Aspire.Hosting.Yarp (3)
ConfigurationBuilder\YarpCluster.cs (1)
337private static SslProtocols? MapSslProtocols(IReadOnlyList<YarpSslProtocol>? protocols)
ConfigurationBuilder\YarpRoute.cs (1)
187public static YarpRoute WithTransforms(this YarpRoute route, IReadOnlyList<IReadOnlyDictionary<string, string>>? transforms)
YarpEnvConfigGenerator.cs (1)
58else if (obj is IReadOnlyList<object> list)
Aspire.Playground.Tests (7)
Infrastructure\DistributedApplicationExtensions.cs (4)
113public static (IReadOnlyList<FakeLogRecord> AppHostLogs, IReadOnlyList<FakeLogRecord> ResourceLogs) GetLogs(this DistributedApplication app) 117var logs = logCollector.GetSnapshot(); 154static void AssertDoesNotContain(IReadOnlyList<FakeLogRecord> logs, Func<FakeLogRecord, bool> predicate)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (1)
162await foreach (var logEvent in resourceLoggerService.WatchAsync(resourceId).WithCancellation(cancellationTokenSource.Token).ConfigureAwait(false))
tests\Shared\Logging\LogTestHelpers.cs (2)
30var list = state as IReadOnlyList<KeyValuePair<string, object?>>;
Aspire.RabbitMQ.Client.Tests (4)
AspireRabbitMQLoggingTests.cs (4)
139var errorEvent = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object?>>>(logs[0].State); 185var errorEvent = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object?>>>(logs[0].State);
Aspire.RabbitMQ.Client.v6.Tests (4)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (4)
139var errorEvent = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object?>>>(logs[0].State); 185var errorEvent = Assert.IsAssignableFrom<IReadOnlyList<KeyValuePair<string, object?>>>(logs[0].State);
Aspire.Templates.Tests (2)
TemplateTestsBase.cs (2)
207var allRows = await rowsLocator.AllAsync(); 218var cellLocs = await rowLoc.Locator("//td[@role='gridcell']").AllAsync();
Aspire.TypeSystem (15)
AtsCapabilityInfo.cs (8)
75public IReadOnlyList<AtsTypeRef>? UnionTypes { get; init; } 193public required IReadOnlyList<AtsParameterInfo> Parameters { get; init; } 226public IReadOnlyList<AtsTypeRef> ExpandedTargetTypes { get; set; } = []; 287public IReadOnlyList<AtsCallbackParameterInfo>? CallbackParameters { get; init; } 341public IReadOnlyList<AtsTypeRef> ImplementedInterfaces { get; init; } = []; 348public IReadOnlyList<AtsTypeRef> BaseTypeHierarchy { get; init; } = []; 397public required IReadOnlyList<AtsDtoPropertyInfo> Properties { get; init; } 450public required IReadOnlyList<string> Values { get; init; }
AtsConstants.cs (1)
523return genericDef == typeof(IReadOnlyList<>) ||
AtsContext.cs (6)
51public required IReadOnlyList<AtsCapabilityInfo> Capabilities { get; init; } 58public required IReadOnlyList<AtsTypeInfo> HandleTypes { get; init; } 65public required IReadOnlyList<AtsDtoTypeInfo> DtoTypes { get; init; } 72public required IReadOnlyList<AtsEnumTypeInfo> EnumTypes { get; init; } 77public IReadOnlyList<AtsDiagnostic> Diagnostics { get; init; } = []; 125if (genericDef == typeof(IReadOnlyList<>) || genericDef == typeof(IReadOnlyCollection<>) || genericDef == typeof(IEnumerable<>))
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
207var results = await RestoreRunner.RunAsync(restoreContext).ConfigureAwait(false);
cdac-build-tool (7)
ObjectFileScraper.cs (7)
330public required IReadOnlyList<TypeSpec> TypeSpecs { get; init; } 331public required IReadOnlyList<FieldSpec> FieldSpecs { get; init; } 332public required IReadOnlyList<GlobalLiteralSpec> GlobalLiteralSpecs { get; init; } 333public required IReadOnlyList<GlobalPointerSpec> GlobalPointerSpecs { get; init; } 334public required IReadOnlyList<GlobalStringSpec> GlobalStringSpecs { get; init; } 335public required IReadOnlyList<GlobalPointerSpec> GlobalSubDescriptorSpecs { get; init; } 336public required IReadOnlyList<GlobalContractSpec> GlobalContractSpecs { get; init; }
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
121IReadOnlyList_Unbound = compilation.GetBestTypeByMetadataName(typeof(IReadOnlyList<>))?.ConstructUnboundGenericType();
crossgen2 (3)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
31public static Dictionary<string, string> BuildPathDictionary(IReadOnlyList<Token> tokens, bool strict) 43public static List<string> BuildPathList(IReadOnlyList<Token> tokens) 424public static bool TryReadResponseFile(string filePath, out IReadOnlyList<string> newTokens, out string error)
dotnet (66)
_generated\141\SdkVulnerabilityJsonContext.SdkVulnerabilityInfo.g.cs (4)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>> 108AttributeProviderFactory = static () => typeof(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo).GetProperty("Cves", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>), global::System.Array.Empty<global::System.Type>(), null), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>>(options, info2); 207private static extern void __set_SdkVulnerabilityInfo_Cves(global::Microsoft.DotNet.Cli.SdkVulnerability.SdkVulnerabilityInfo obj, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo> value);
_generated\142\SdkVulnerabilityJsonContext.IReadOnlyListSdkCveInfo.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>>? _IReadOnlyListSdkCveInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>> IReadOnlyListSdkCveInfo 22get => _IReadOnlyListSdkCveInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>> Create_IReadOnlyListSdkCveInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>, global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>(options, info); 47private void IReadOnlyListSdkCveInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>? value)
_generated\147\SdkVulnerabilityJsonContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.DotNet.Cli.SdkVulnerability.SdkCveInfo>))
Commands\New\BuiltInTemplatePackageProvider.cs (2)
31public Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken) 41return Task.FromResult<IReadOnlyList<ITemplatePackage>>(packages);
Commands\New\DotnetCommandCallbacks.cs (1)
54internal static bool AddProjectsToSolution(string solutionPath, IReadOnlyList<string> projectsToAdd, string? solutionFolder, bool? inRoot)
Commands\New\MSBuildEvaluation\CapabilityExpressionEvaluator.cs (3)
14private readonly IReadOnlyList<string> _presentTerms; 35private CapabilityExpressionEvaluator(string expression, IReadOnlyList<string> presentTerms) 54public static bool Evaluate(string expression, IReadOnlyList<string> presentTerms)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (2)
83IReadOnlyList<string> foundFiles = []; 114IReadOnlyList<string>? targetFrameworks = null;
Commands\New\MSBuildEvaluation\MultipleProjectsEvaluationResult.cs (2)
12internal IReadOnlyList<string> ProjectPaths { get; private set; } = []; 14internal static MultipleProjectsEvaluationResult Create(IReadOnlyList<string> projectPaths)
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (2)
49private readonly IReadOnlyList<string> _projectCapabilities; 158private static IReadOnlyList<string> GetProjectCapabilities(MSBuildEvaluationResult result)
Commands\New\OptionalWorkloadProvider.cs (2)
30public Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken) 46return Task.FromResult<IReadOnlyList<ITemplatePackage>>(list);
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)
Commands\New\SdkInfoProvider.cs (2)
64public string ProvideConstraintRemedySuggestion(IReadOnlyList<string> supportedVersions, 65IReadOnlyList<string> viableInstalledVersions)
Commands\New\WorkloadsInfoProvider.cs (1)
23public string ProvideConstraintRemedySuggestion(IReadOnlyList<string> supportedWorkloads) => CliCommandStrings.WorkloadInfoProvider_Message_AddWorkloads;
Commands\Run\VirtualProjectBuildingCommand.cs (1)
428static Lazy<FacadeLogger>? GetBinaryLogger(IReadOnlyList<string>? args)
Commands\Test\VSTest\TestCommand.cs (3)
435string? FindDefaultValue(IReadOnlyList<string> unmatchedTokens) 467bool TryFromCommandLine(IReadOnlyList<string> unmatchedTokens, [NotNullWhen(true)] out string? value) 523internal static Switch? TryFind(IReadOnlyList<string> unmatchedTokens, params string[] names)
Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
25IReadOnlyList<FilePath> manifestFilesContainPackageId;
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
113IReadOnlyList<ToolCommand> toolPackageCommands)
NugetPackageDownloader\NuGetPackageDownloader.cs (2)
318IReadOnlyList<Uri> packageBaseAddress = 520IReadOnlyList<string> sources = packageSourceMapping.GetConfiguredPackageSources(packageId.ToString());
NugetSearch\NugetToolSearchApiRequest.cs (1)
86var uris = resource.GetServiceEntryUris("SearchQueryService/3.5.0");
Parser.cs (1)
199public static bool TokenPerLine(string tokenToReplace, out IReadOnlyList<string>? replacementTokens, out string? errorMessage)
SdkVulnerability\SdkVulnerabilityInfo.cs (1)
13public IReadOnlyList<SdkCveInfo> Cves { get; init; } = [];
ShellShim\IShellShimRepository.cs (1)
14void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null);
ShellShim\ShellShimRepository.cs (2)
24public void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null) 198IReadOnlyList<FilePath> packagedShims,
ToolManifest\IToolManifestFinder.cs (1)
15IReadOnlyList<FilePath> FindByPackageId(PackageId packageId);
ToolManifest\ToolManifestFinder.cs (1)
262public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId)
ToolPackage\IToolPackage.cs (1)
28IReadOnlyList<FilePath> PackagedShims { get; }
ToolPackage\ToolPackageDownloader.cs (3)
215IReadOnlyList<SelectionCriteria> orderedCriteria) 226IReadOnlyList<SelectionCriteria> criteria, 234IReadOnlyList<SelectionCriteria> criteria,
ToolPackage\ToolPackageInstance.cs (1)
34public IReadOnlyList<FilePath> PackagedShims { get; private set; }
dotnet-dev-certs (3)
Program.cs (1)
356private static void ReportCertificates(IReporter reporter, IReadOnlyList<X509Certificate2> certificates, string certificateState)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
833private static bool TryGetNssDbOverrides(out IReadOnlyList<string> overrides) 868if (TryGetNssDbOverrides(out var nssDbOverrides))
dotnet-format (1)
Formatters\DocumentFormatter.cs (1)
162var changes = formattedText.GetTextChanges(originalText);
dotnet-sourcelink (1)
dotnet-suggest (1)
SuggestionDispatcher.cs (1)
205var tokens = parseResult.UnmatchedTokens;
dotnet-svcutil-lib (3)
Shared\ProjectDependency.cs (3)
29private static readonly IReadOnlyList<string> s_binaryExtensions = new List<string> { ".exe", ".dll" }.AsReadOnly(); 30private static readonly IReadOnlyList<string> s_projectExtensions = new List<string> { ".csproj", ".vbproj", ".fsproj", ".vcxproj", ".esproj" }.AsReadOnly(); 31private static readonly IReadOnlyList<string> s_exeExtensions = new List<string> { ".exe" }.AsReadOnly();
dotnet-watch (16)
CommandLine\CommandLineOptions.cs (9)
42public required IReadOnlyList<string> CommandArguments { get; init; } 47public required IReadOnlyList<string> CommandArgumentsWithoutBinLog { get; init; } 52public required IReadOnlyList<string> BuildArguments { get; init; } 58public static CommandLineOptions? Parse(IReadOnlyList<string> args, ILogger logger, TextWriter output, out int errorCode) 120var commandArguments = GetCommandArguments( 126out var commandArgumentsWithoutBinLog); 195private static IReadOnlyList<string> GetCommandArguments( 201out IReadOnlyList<string> argumentsWithoutBinLog) 369private static int IndexOf<T>(IReadOnlyList<T> list, Func<T, bool> predicate)
Program.cs (1)
72private static Program? TryCreate(IReadOnlyList<string> args, IConsole console, EnvironmentOptions environmentOptions, out int errorCode)
UI\SpectreBuildParametersSelectionPrompt.cs (2)
23protected override Task<string> PromptForTargetFrameworkAsync(IReadOnlyList<string> targetFrameworks, CancellationToken cancellationToken) 36protected override Task<DeviceInfo> PromptForDeviceAsync(IReadOnlyList<DeviceInfo> devices, CancellationToken cancellationToken)
Watch\BuildEvaluator.cs (1)
58public IReadOnlyList<string> GetProcessArguments(int iteration)
Watch\MsBuildFileSetFactory.cs (2)
53var arguments = GetMSBuildArguments(watchList); 150private IReadOnlyList<string> GetMSBuildArguments(string watchListFilePath)
Watch\StaticFileHandler.cs (1)
13public async ValueTask<bool> HandleFileChangesAsync(IReadOnlyList<ChangedFile> files, CancellationToken cancellationToken)
GenerateDocumentationAndConfigFiles (52)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
28var existingParameters = generator.GetParameters(declaration); 152IReadOnlyList<SyntaxNode> parameters, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
32public IReadOnlyList<SyntaxNode> OutermostBlockStatements { get; private set; } 33public IReadOnlyList<SyntaxNode> InnermostBlockStatements { get; private set; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
75var textChanges = Text.GetTextChanges(oldDocument.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\ILayeredServiceMetadata.cs (1)
11IReadOnlyList<string> WorkspaceKinds { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
28public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
17public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
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)
ConfigurablePInvokePolicy.cs (2)
19public ConfigurablePInvokePolicy(TargetDetails target, IReadOnlyList<string> directPInvokes, IReadOnlyList<string> directPInvokeLists)
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (3)
31public static Dictionary<string, string> BuildPathDictionary(IReadOnlyList<Token> tokens, bool strict) 43public static List<string> BuildPathList(IReadOnlyList<Token> tokens) 424public static bool TryReadResponseFile(string filePath, out IReadOnlyList<string> newTokens, out string error)
ILCompiler.Compiler (29)
Compiler\Dataflow\CompilerGeneratedState.cs (3)
28IReadOnlyList<GenericParameterDesc?>? OriginalAttributes); 539public IReadOnlyList<GenericParameterDesc?>? GetGeneratedTypeAttributes(MetadataType type) 682public IReadOnlyList<GenericParameterDesc?>? GetGeneratedTypeAttributes(MetadataType type)
Compiler\Dataflow\FlowAnnotations.cs (3)
631var attrs = GetGeneratedTypeAttributes(ecmaType); 650private IReadOnlyList<GenericParameterDesc?>? GetGeneratedTypeAttributes(EcmaType typeDef) 656var attrs = _compilerGeneratedState.GetGeneratedTypeAttributes(typeDef);
Compiler\Dataflow\HandleCallAction.cs (1)
54IReadOnlyList<MultiValue> argumentValues,
Compiler\DependencyAnalysis\EETypeNode.cs (1)
966IReadOnlyList<MethodDesc> virtualSlots = declVTable.Slots;
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
171IReadOnlyList<MethodDesc> virtualSlots = interfaceVTable.Slots;
Compiler\DependencyAnalysis\ResourceDataNode.cs (1)
62public IReadOnlyList<ResourceIndexData> GetOrCreateIndexData(NodeFactory factory)
Compiler\DependencyAnalysis\SealedVTableNode.cs (1)
122IReadOnlyList<MethodDesc> virtualSlots = declTypeVTable.Slots;
Compiler\DependencyAnalysis\VTableSliceNode.cs (3)
58public abstract IReadOnlyList<MethodDesc> Slots 115public override IReadOnlyList<MethodDesc> Slots 168public override IReadOnlyList<MethodDesc> Slots
Compiler\ILScanner.cs (1)
626IReadOnlyList<MethodDesc> slice = factory.VTable(currentType).Slots;
Compiler\ObjectWriter\Dwarf\DwarfInfo.cs (1)
264public IReadOnlyList<DwarfStaticVariableInfo> StaticVariables => _statics ?? [];
Compiler\ObjectWriter\Dwarf\DwarfLineProgramTableWriter.cs (1)
43IReadOnlyList<DwarfFileName> fileNames,
Compiler\VirtualMethodCallHelper.cs (3)
70IReadOnlyList<MethodDesc> virtualSlots = factory.VTable(owningType).Slots; 110IReadOnlyList<MethodDesc> virtualSlots = factory.VTable(implType).Slots; 162IReadOnlyList<MethodDesc> baseVirtualSlots = factory.VTable(baseType).Slots;
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (3)
240public IReadOnlyList<OutputNode> Nodes => _nodes; 241public IReadOnlyList<OutputSection> Sections => _sections; 242public IReadOnlyList<OutputSymbol> Symbols => _symbols;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
227public IReadOnlyList<ModuleDesc> TargetModules => _targetModules;
src\runtime\src\coreclr\tools\Common\Microsoft\SourceLink\Tools\SourceLinkMap.cs (1)
50public IReadOnlyList<Entry> Entries => _entries;
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (4)
31public bool Invoke(MethodProxy calledMethod, MultiValue instanceValue, IReadOnlyList<MultiValue> argumentValues, IntrinsicId intrinsicId, out MultiValue methodReturnValue) 80IReadOnlyList<MultiValue> argumentValues, 87IReadOnlyList<MultiValue> argumentValues, 1761private void ProcessCreateInstanceByName(MethodProxy calledMethod, IReadOnlyList<MultiValue> argumentValues)
ILCompiler.ReadyToRun (6)
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (1)
60public IReadOnlyList<Import> ReferencedImports => _imports;
Compiler\ProfileDataManager.cs (1)
38IReadOnlyList<string> mibcFiles,
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\OutputInfoBuilder.cs (3)
240public IReadOnlyList<OutputNode> Nodes => _nodes; 241public IReadOnlyList<OutputSection> Sections => _sections; 242public IReadOnlyList<OutputSymbol> Symbols => _symbols;
src\runtime\src\coreclr\tools\Common\Compiler\TypeMapMetadata.cs (1)
227public IReadOnlyList<ModuleDesc> TargetModules => _targetModules;
ILCompiler.TypeSystem (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldLayoutIntervalCalculator.cs (1)
51protected IReadOnlyList<FieldLayoutInterval> Intervals => _fieldLayout;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemException.cs (1)
24public IReadOnlyList<string> Arguments
illink (5)
ILLink.RoslynAnalyzer (5)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (4)
31public bool Invoke(MethodProxy calledMethod, MultiValue instanceValue, IReadOnlyList<MultiValue> argumentValues, IntrinsicId intrinsicId, out MultiValue methodReturnValue) 80IReadOnlyList<MultiValue> argumentValues, 87IReadOnlyList<MultiValue> argumentValues, 1761private void ProcessCreateInstanceByName(MethodProxy calledMethod, IReadOnlyList<MultiValue> argumentValues)
TrimAnalysis\HandleCallAction.cs (1)
99IReadOnlyList<MultiValue> argumentValues,
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (2)
31public IReadOnlyList<string> MessageArgs { get; } 32public IReadOnlyList<IOperation>? InterpolationArgs { get; }
Microsoft.Analyzers.Extra.Tests (40)
AsyncCallInsideUsingBlockAnalyzerTests.cs (1)
400var d = await RoslynTestUtils.RunAnalyzer(
AsyncMethodWithoutCancellationTests.cs (1)
161var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\ArraysTests.cs (1)
117var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\LegacyCollectionTests.cs (1)
39var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\LegacyLoggingTests.cs (9)
71var l = await RoslynTestUtils.RunAnalyzerAndFixer( 164var l = await RoslynTestUtils.RunAnalyzerAndFixer( 227var l = await RoslynTestUtils.RunAnalyzerAndFixer( 288var l = await RoslynTestUtils.RunAnalyzerAndFixer( 362var l = await RoslynTestUtils.RunAnalyzerAndFixer( 438var l = await RoslynTestUtils.RunAnalyzerAndFixer( 521var l = await RoslynTestUtils.RunAnalyzerAndFixer( 609var l = await RoslynTestUtils.RunAnalyzerAndFixer( 679var l = await RoslynTestUtils.RunAnalyzerAndFixer(
CallAnalysis\LegacyLoggingTests.Extra.cs (8)
91var l = await RoslynTestUtils.RunAnalyzerAndFixer( 169var l = await RoslynTestUtils.RunAnalyzerAndFixer( 232var l = await RoslynTestUtils.RunAnalyzerAndFixer( 295var l = await RoslynTestUtils.RunAnalyzerAndFixer( 356var l = await RoslynTestUtils.RunAnalyzerAndFixer( 432var l = await RoslynTestUtils.RunAnalyzerAndFixer( 683var l = await RoslynTestUtils.RunAnalyzerAndFixer( 745var l = await RoslynTestUtils.RunAnalyzerAndFixer(
CallAnalysis\SplitTests.cs (1)
29var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\StartsEndsWithTests.cs (2)
56var d = await RoslynTestUtils.RunAnalyzer( 114var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\StaticTimeTests.cs (1)
77var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\ValueTupleTests.cs (1)
46var d = await RoslynTestUtils.RunAnalyzer(
CoalesceAnalyzerTests.cs (3)
37var d = await RoslynTestUtils.RunAnalyzer( 92var d = await RoslynTestUtils.RunAnalyzer( 160var d = await RoslynTestUtils.RunAnalyzer(
ConditionalAccessAnalyzerTests.cs (1)
104var d = await RoslynTestUtils.RunAnalyzer(
MakeExeTypesInternalTests.cs (2)
68var actualFixedSources = await RoslynTestUtils.RunAnalyzerAndFixer( 155var d = await RoslynTestUtils.RunAnalyzer(
Resources\RoslynTestUtils.cs (6)
174public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 203public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 234public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 265private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 286public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer( 404public static async Task<(IReadOnlyList<string> results, string title)> RunAnalyzerAndFixAllCodeAction(
UsingToStringInLoggersTests.cs (2)
65var fullDiags = await RoslynTestUtils.RunAnalyzer( 113var d = await RoslynTestUtils.RunAnalyzer(
Microsoft.Analyzers.Local.Tests (31)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (3)
32var diagnostics = await RoslynTestUtils.RunAnalyzer( 58var diagnostics = await RoslynTestUtils.RunAnalyzer( 85Assembly.GetAssembly(typeof(IReadOnlyList<>))!,
CallAnalysis\ToInvariantStringTests.cs (1)
37var d = await RoslynTestUtils.RunAnalyzer(
CallAnalysis\UseThrowsTests.cs (3)
28var d = await RoslynTestUtils.RunAnalyzer( 42var d = await RoslynTestUtils.RunAnalyzer( 276var d = await RoslynTestUtils.RunAnalyzer(
InternalReferencedInPublicDocAnalyzerTests.cs (18)
41private static IEnumerable<object[]> MakePairs(string firstPrefix, IReadOnlyList<string> firstList, string secondPrefix, IReadOnlyList<string> secondList) 103var result = await Analyze(source); 122var result = await Analyze(source); 147var result = await Analyze(source); 166var result = await Analyze(source); 197var result = await Analyze(source); 227var result = await Analyze(source); 266var result = await Analyze(source); 318var result = await Analyze(source); 370var result = await Analyze(source); 403var result = await Analyze(source); 425var result = await Analyze(source); 449var result = await Analyze(source); 454private static void AssertDetected(IReadOnlyList<Diagnostic> result, string source, int lineNumber, string detectedText) => 457private static void AssertDetected(IReadOnlyList<Diagnostic> result, string source, int[] lineNumbers, string[] detectedTexts) 478private static void AssertNotDetected(IReadOnlyList<Diagnostic> result) 484private static async Task<IReadOnlyList<Diagnostic>> Analyze(string source)
Resources\RoslynTestUtils.cs (6)
174public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 203public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 234public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 266private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 287public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer( 405public static async Task<(IReadOnlyList<string> results, string title)> RunAnalyzerAndFixAllCodeAction(
Microsoft.AspNetCore (1)
WebApplication.cs (1)
271public IReadOnlyList<Endpoint> Endpoints
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)
AuthorizationPolicy.cs (2)
46public IReadOnlyList<IAuthorizationRequirement> Requirements { get; } 52public IReadOnlyList<string> AuthenticationSchemes { get; }
Microsoft.AspNetCore.Authorization.Policy (5)
AuthorizationMiddleware.cs (3)
117var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); 119var policies = endpoint?.Metadata.GetOrderedMetadata<AuthorizationPolicy>() ?? Array.Empty<AuthorizationPolicy>(); 123var requirementData = endpoint?.Metadata?.GetOrderedMetadata<IAuthorizationRequirementData>() ?? Array.Empty<IAuthorizationRequirementData>();
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (2)
16private readonly Func<IReadOnlyList<Endpoint>, T> _initializeCore; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Components (38)
CascadingParameterState.cs (2)
27public static IReadOnlyList<CascadingParameterState> FindCascadingParameters(ComponentState componentState, out bool hasSingleDeliveryParameters) 73return resultStates ?? (IReadOnlyList<CascadingParameterState>)Array.Empty<CascadingParameterState>();
ParameterView.cs (6)
27private readonly IReadOnlyList<CascadingParameterState> _cascadingParameters; 34private ParameterView(in ParameterViewLifetime lifetime, RenderTreeFrame[] frames, int ownerIndex, IReadOnlyList<CascadingParameterState> cascadingParameters) 131internal ParameterView WithCascadingParameters(IReadOnlyList<CascadingParameterState> cascadingParameters) 337internal Enumerator(RenderTreeFrame[] frames, int ownerIndex, IReadOnlyList<CascadingParameterState> cascadingParameters) 419private readonly IReadOnlyList<CascadingParameterState> _cascadingParameters; 423public CascadingParameterEnumerator(IReadOnlyList<CascadingParameterState> cascadingParameters)
PersistentState\PersistentServicesRegistry.cs (1)
44internal IReadOnlyList<IPersistentServiceRegistration> Registrations => _registrations;
Rendering\ComponentState.cs (2)
20private IReadOnlyList<CascadingParameterState> _cascadingParameters; 218_cascadingParameters = (IReadOnlyList<CascadingParameterState>?)remainingCascadingParameters ?? Array.Empty<CascadingParameterState>();
ResourceAsset.cs (2)
15public sealed class ResourceAsset(string url, IReadOnlyList<ResourceAssetProperty>? properties = null) 25public IReadOnlyList<ResourceAssetProperty>? Properties { get; } = properties;
ResourceAssetCollection.cs (3)
21private readonly IReadOnlyList<ResourceAsset> _resources; 27public ResourceAssetCollection(IReadOnlyList<ResourceAsset> resources) 67ResourceAsset IReadOnlyList<ResourceAsset>.this[int index] => _resources[index];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePattern.cs (7)
40IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> parameterPolicies, 42IReadOnlyList<RoutePatternParameterPart> parameters, 43IReadOnlyList<RoutePatternPathSegment> pathSegments) 72public IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> ParameterPolicies { get; } 123public IReadOnlyList<RoutePatternParameterPart> Parameters { get; } 128public IReadOnlyList<RoutePatternPathSegment> PathSegments { get; } 139var parameters = Parameters;
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (5)
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>(),
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParameterPart.cs (1)
49public IReadOnlyList<RoutePatternParameterPolicyReference> ParameterPolicies { get; }
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternPathSegment.cs (3)
26internal RoutePatternPathSegment(IReadOnlyList<RoutePatternPart> parts) 40public IReadOnlyList<RoutePatternPart> Parts { get; } 47internal static string DebuggerToString(IReadOnlyList<RoutePatternPart> parts)
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingTree.cs (1)
249private static bool RemainingSegmentsAreOptional(IReadOnlyList<RoutePatternPathSegment> segments, int currentParameterIndex)
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\11\ResourceCollectionSerializerContext.IReadOnlyListResourceAsset.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>>? _IReadOnlyListResourceAsset; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>> IReadOnlyListResourceAsset 24get => _IReadOnlyListResourceAsset ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>> Create_IReadOnlyListResourceAsset(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>, global::Microsoft.AspNetCore.Components.ResourceAsset>(options, info); 49private void IReadOnlyListResourceAssetSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>? value)
_generated\12\ResourceCollectionSerializerContext.IReadOnlyListResourceAssetProperty.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>? _IReadOnlyListResourceAssetProperty; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> IReadOnlyListResourceAssetProperty 24get => _IReadOnlyListResourceAssetProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> Create_IReadOnlyListResourceAssetProperty(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>, global::Microsoft.AspNetCore.Components.ResourceAssetProperty>(options, info); 49private void IReadOnlyListResourceAssetPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>? value)
_generated\15\ResourceCollectionSerializerContext.GetJsonTypeInfo.g.cs (2)
36if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAsset>)) 40if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>))
_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>),
Builder\RazorComponentEndpointDataSource.cs (1)
65public override IReadOnlyList<Endpoint> Endpoints
Builder\RazorComponentEndpointFactory.cs (2)
26IReadOnlyList<Action<EndpointBuilder>> conventions, 27IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
Builder\ResourceCollectionUrlEndpoint.cs (4)
102JsonSerializer.Serialize<IReadOnlyList<ResourceAsset>>(utf8Writer, resourceCollection, ResourceCollectionSerializerContext.Default.Options); 114var resources = (IReadOnlyList<ResourceAsset>)resourceCollection; 193[JsonSerializable(typeof(IReadOnlyList<ResourceAsset>))]
Discovery\AssemblyComponentLibraryDescriptor.cs (4)
22public AssemblyComponentLibraryDescriptor(string name, IReadOnlyList<PageComponentBuilder> pages, IReadOnlyList<ComponentBuilder> components) 41public IReadOnlyList<PageComponentBuilder> Pages { get; } 46public IReadOnlyList<ComponentBuilder> Components { get; }
Discovery\ComponentCollectionBuilder.cs (3)
12private readonly Dictionary<string, IReadOnlyList<ComponentBuilder>> _components = new(); 41internal void AddFromLibraryInfo(string assemblyName, IReadOnlyList<ComponentBuilder> components) 49foreach (var value in _components.Values)
Discovery\IRazorComponentApplication.cs (2)
20static (IReadOnlyList<PageComponentBuilder>, IReadOnlyList<ComponentBuilder>) CreatePageRouteCollection(string name, Assembly assembly)
Discovery\PageCollectionBuilder.cs (3)
11private readonly Dictionary<string, IReadOnlyList<PageComponentBuilder>> _pages = new(); 40internal void AddFromLibraryInfo(string assemblyName, IReadOnlyList<PageComponentBuilder> pages) 48foreach (var value in _pages.Values)
Discovery\PageComponentBuilder.cs (2)
17private IReadOnlyList<string> _routeTemplates = Array.Empty<string>(); 27public required IReadOnlyList<string> RouteTemplates
Discovery\PageComponentInfo.cs (2)
27IReadOnlyList<object> metadata) 54public IReadOnlyList<object> Metadata { get; }
Discovery\RazorComponentApplication.cs (2)
30public IReadOnlyList<PageComponentInfo> Pages => _pages; 35public IReadOnlyList<ComponentInfo> Components => _components;
FormMapping\Converters\FileConverter.cs (4)
38if (typeof(T) == typeof(IReadOnlyList<IBrowserFile>)) 40var targetFiles = reader.FormFileCollection.GetFiles(reader.CurrentPrefix.ToString()); 46result = (T)(IReadOnlyList<IBrowserFile>)ReadOnlyCollectionBufferAdapter<IBrowserFile>.ToResult(buffer); 52if (typeof(T) == typeof(IReadOnlyList<IFormFile>))
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
84var _ when type == (typeof(IReadOnlyList<TElement>)) => true, 189var _ when type.IsAssignableTo(typeof(IReadOnlyList<TElement>)) => 190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter),
FormMapping\Factories\FileConverterFactory.cs (2)
17public bool CanConvert(Type type, FormDataMapperOptions options) => CanConvertCommon(type) || type == typeof(IBrowserFile) || type == typeof(IReadOnlyList<IBrowserFile>); 22private static bool CanConvertCommon(Type type) => type == typeof(IFormFile) || type == typeof(IFormFileCollection) || type == typeof(IReadOnlyList<IFormFile>);
FormMapping\WellKnownConverters.cs (4)
48{ typeof(IReadOnlyList<IFormFile>), new FileConverter<IReadOnlyList<IFormFile>>() }, 52{ typeof(IReadOnlyList<IBrowserFile>), new FileConverter<IReadOnlyList<IBrowserFile>>() }
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
23var descriptors = StaticAssetsEndpointDataSourceHelper.ResolveStaticAssetDescriptors(endpoints, manifestName);
Microsoft.AspNetCore.Components.Server (17)
Circuits\CircuitFactory.cs (1)
42IReadOnlyList<ComponentDescriptor> components,
Circuits\CircuitHost.cs (3)
53IReadOnlyList<ComponentDescriptor> descriptors, 108public IReadOnlyList<ComponentDescriptor> Descriptors { get; } 665private static Func<Func<Task>, Task> BuildInboundActivityDispatcher(IReadOnlyList<CircuitHandler> circuitHandlers, Circuit circuit)
Circuits\ICircuitFactory.cs (1)
11IReadOnlyList<ComponentDescriptor> components,
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (4)
10IReadOnlyList<ComponentParameter> parameterDefinitions, 11IReadOnlyList<object> serializedParameterValues) 16private readonly IReadOnlyList<ComponentParameter> _parameterDefinitions = parameterDefinitions; 17private readonly IReadOnlyList<object> _serializedParameterValues = serializedParameterValues;
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];
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (3)
91var parameterTypes = binder.GetParameterTypes(target); 121var parameterTypes = binder.GetParameterTypes(target); 296private object?[] BindArguments(ref MessagePackReader reader, IReadOnlyList<Type> parameterTypes)
Microsoft.AspNetCore.Components.Web (5)
Forms\InputFile\InputFileChangeEventArgs.cs (3)
11private readonly IReadOnlyList<IBrowserFile> _files; 17public InputFileChangeEventArgs(IReadOnlyList<IBrowserFile> files) 44public IReadOnlyList<IBrowserFile> GetMultipleFiles(int maximumFileCount = 10)
Forms\Mapping\EditContextFormMappingExtensions.cs (1)
65var errors = error.ErrorMessages;
Forms\Mapping\FormMappingError.cs (1)
51public IReadOnlyList<FormattableString> ErrorMessages => _errorMessages;
Microsoft.AspNetCore.DataProtection (2)
XmlEncryption\EncryptedXmlDecryptor.cs (1)
144if (_options == null || !_options.TryGetKeyDecryptionCertificates(certInfo, out var keyDecryptionCerts))
XmlEncryption\XmlKeyDecryptionOptions.cs (1)
20public bool TryGetKeyDecryptionCertificates(X509Certificate2 certInfo, [NotNullWhen(true)] out IReadOnlyList<X509Certificate2>? keyDecryptionCerts)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
833private static bool TryGetNssDbOverrides(out IReadOnlyList<string> overrides) 868if (TryGetNssDbOverrides(out var nssDbOverrides))
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
352var httpMethods = endpoint.Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods;
Microsoft.AspNetCore.Diagnostics.Middleware (4)
Buffering\IncomingRequestLogBuffer.cs (2)
56IReadOnlyList<KeyValuePair<string, object?>>? attributes = logEntry.State as IReadOnlyList<KeyValuePair<string, object?>>;
Logging\HttpLoggingTagNames.cs (2)
62/// <returns>A read-only <see cref="IReadOnlyList{String}"/> of all dimension names.</returns> 63public static IReadOnlyList<string> DimensionNames { get; } =
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (35)
Logging\AcceptanceTests.cs (25)
228var state = logCollector.LatestRecord.StructuredState!; 288var state = logCollector.LatestRecord.StructuredState!; 341var state = logCollector.LatestRecord.StructuredState!; 389var logRecords = logCollector.GetSnapshot(); 396var requestState = logRecords[0].StructuredState; 397var requestBodyState = logRecords[1].StructuredState; 398var responseState = logRecords[2].StructuredState; 399var responseBodyState = logRecords[3].StructuredState; 400var durationState = logRecords[4].StructuredState; 458var state = lastRecord.StructuredState; 504var state = logCollector.LatestRecord.StructuredState; 546var state = logCollector.LatestRecord.StructuredState; 570var logRecords = logCollector.GetSnapshot(); 577var firstState = logRecords[0].StructuredState; 578var secondState = logRecords[1].StructuredState; 608var logRecords = logCollector.GetSnapshot(); 615var firstRecord = logRecords[0].StructuredState; 616var secondRecord = logRecords[1].StructuredState; 617var thirdRecord = logRecords[2].StructuredState; 618var fourthRecord = logRecords[3].StructuredState; 619var fithRecord = logRecords[4].StructuredState; 620var sixthRecord = logRecords[5].StructuredState; 663var state = logCollector.LatestRecord.StructuredState; 704var state = logCollector.LatestRecord.StructuredState; 738var state = logCollector.LatestRecord.StructuredState;
Logging\AcceptanceTests.Mvc.cs (5)
78var state = logRecord.StructuredState!; 113var state = logRecord.StructuredState!; 159var state = logRecord.StructuredState!; 203var state = logRecord.StructuredState!; 244var state = logRecord.StructuredState!;
Logging\AcceptanceTests.Routing.cs (1)
78var state = logRecord.StructuredState!;
Logging\IncomingHttpDimensionsTests.cs (1)
16var dimensions = HttpLoggingTagNames.DimensionNames;
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
Microsoft.AspNetCore.HeaderParsing (22)
CommonHeaders.cs (8)
25public static HeaderSetup<IReadOnlyList<MediaTypeHeaderValue>> Accept => new(HeaderNames.Accept, MediaTypeHeaderValueListParser.Instance); 30public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptEncoding => new(HeaderNames.AcceptEncoding, StringWithQualityHeaderValueListParser.Instance, cacheable: true); 35public static HeaderSetup<IReadOnlyList<StringWithQualityHeaderValue>> AcceptLanguage => new(HeaderNames.AcceptLanguage, StringWithQualityHeaderValueListParser.Instance, cacheable: true); 55public static HeaderSetup<IReadOnlyList<CookieHeaderValue>> Cookie => new(HeaderNames.Cookie, CookieHeaderValueListParser.Instance); 65public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfMatch => new(HeaderNames.IfMatch, EntityTagHeaderValueListParser.Instance); 70public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfModifiedSince => new(HeaderNames.IfModifiedSince, EntityTagHeaderValueListParser.Instance); 75public static HeaderSetup<IReadOnlyList<EntityTagHeaderValue>> IfNoneMatch => new(HeaderNames.IfNoneMatch, EntityTagHeaderValueListParser.Instance); 100public static HeaderSetup<IReadOnlyList<IPAddress>> XForwardedFor => new("X-Forwarded-For", IPAddressListParser.Instance);
Parsers\CookieHeaderValueListParser.cs (3)
11internal sealed class CookieHeaderValueListParser : HeaderParser<IReadOnlyList<CookieHeaderValue>> 15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<CookieHeaderValue>? result, [NotNullWhen(false)] out string? error) 25result = (IReadOnlyList<CookieHeaderValue>)parsedValue;
Parsers\EntityTagHeaderValueListParser.cs (3)
11internal sealed class EntityTagHeaderValueListParser : HeaderParser<IReadOnlyList<EntityTagHeaderValue>> 15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<EntityTagHeaderValue>? result, [NotNullWhen(false)] out string? error) 25result = (IReadOnlyList<EntityTagHeaderValue>)parsedValues;
Parsers\IPAddressListParser.cs (2)
12internal sealed class IPAddressListParser : HeaderParser<IReadOnlyList<IPAddress>> 16public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<IPAddress>? result, [NotNullWhen(false)] out string? error)
Parsers\MediaTypeHeaderValueListParser.cs (3)
11internal sealed class MediaTypeHeaderValueListParser : HeaderParser<IReadOnlyList<MediaTypeHeaderValue>> 15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<MediaTypeHeaderValue>? result, [NotNullWhen(false)] out string? error) 25result = (IReadOnlyList<MediaTypeHeaderValue>)parsedValues;
Parsers\StringWithQualityHeaderValueListParser.cs (3)
11internal sealed class StringWithQualityHeaderValueListParser : HeaderParser<IReadOnlyList<StringWithQualityHeaderValue>> 15public override bool TryParse(StringValues values, [NotNullWhen(true)] out IReadOnlyList<StringWithQualityHeaderValue>? result, [NotNullWhen(false)] out string? error) 25result = (IReadOnlyList<StringWithQualityHeaderValue>)parsedValues;
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderKeyTests.cs (1)
38var referenceTimeDefault = new HeaderKey<IReadOnlyList<IPAddress>>(TestHeaderName, IPAddressListParser.Instance, TestHeaderPosition);
Microsoft.AspNetCore.Hosting (9)
Internal\WebHostOptions.cs (4)
50public IReadOnlyList<string> HostingStartupAssemblies { get; } 52public IReadOnlyList<string> HostingStartupExcludeAssemblies { get; } 77private static IReadOnlyList<string> Split(string? value) 83private static IReadOnlyList<string> Split(string applicationName, string? environment)
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)
Features\FormFeature.cs (1)
394var formOptionsMetadatas = endpoint.Metadata
FormFileCollection.cs (1)
29public IReadOnlyList<IFormFile> GetFiles(string name)
Microsoft.AspNetCore.Http.Abstractions (6)
Metadata\AcceptsMetadata.cs (1)
33public IReadOnlyList<string> ContentTypes { get; }
Metadata\IAcceptsMetadata.cs (1)
18IReadOnlyList<string> ContentTypes { get; }
Metadata\ITagsMetadata.cs (1)
14IReadOnlyList<string> Tags { get; }
RequestDelegateResult.cs (2)
14public RequestDelegateResult(RequestDelegate requestDelegate, IReadOnlyList<object> metadata) 29public IReadOnlyList<object> EndpointMetadata { get; }
Routing\EndpointMetadataCollection.cs (1)
99public IReadOnlyList<T> GetOrderedMetadata<T>() where T : class
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)
RequestDelegateFactory.cs (2)
304private static IReadOnlyList<object> AsReadOnlyList(IList<object> metadata) 306if (metadata is IReadOnlyList<object> readOnlyList)
RequestDelegateMetadataResult.cs (1)
18public required IReadOnlyList<object> EndpointMetadata { get; init; }
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\FileConverter.cs (1)
52if (typeof(T) == typeof(IReadOnlyList<IFormFile>))
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
84var _ when type == (typeof(IReadOnlyList<TElement>)) => true, 189var _ when type.IsAssignableTo(typeof(IReadOnlyList<TElement>)) => 190CreateConverter<IReadOnlyList<TElement>, List<TElement>>(elementTypeConverter),
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\FileConverterFactory.cs (1)
22private static bool CanConvertCommon(Type type) => type == typeof(IFormFile) || type == typeof(IFormFileCollection) || type == typeof(IReadOnlyList<IFormFile>);
src\aspnetcore\src\Components\Endpoints\src\FormMapping\WellKnownConverters.cs (2)
48{ typeof(IReadOnlyList<IFormFile>), new FileConverter<IReadOnlyList<IFormFile>>() },
TagsAttribute.cs (1)
34public IReadOnlyList<string> Tags { get; }
Microsoft.AspNetCore.Http.Features (3)
IFormFileCollection.cs (3)
30/// Gets an <see cref="IReadOnlyList{T}" /> containing the files of the 35/// An <see cref="IReadOnlyList{T}" /> containing the files of the object 38IReadOnlyList<IFormFile> GetFiles(string name);
Microsoft.AspNetCore.Http.Results (6)
ChallengeHttpResult.cs (2)
62public IReadOnlyList<string> AuthenticationSchemes { get; internal init; } = Array.Empty<string>(); 95public static void ChallengeResultExecuting(ILogger logger, IReadOnlyList<string> authenticationSchemes)
ForbidHttpResult.cs (2)
73public IReadOnlyList<string> AuthenticationSchemes { get; internal init; } 106public static void ForbidResultExecuting(ILogger logger, IReadOnlyList<string> authenticationSchemes)
SignOutHttpResult.cs (2)
62public IReadOnlyList<string> AuthenticationSchemes { get; internal init; } 95public static void SignOutResultExecuting(ILogger logger, IReadOnlyList<string> authenticationSchemes)
Microsoft.AspNetCore.Identity (92)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (10)
167var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 353var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 469var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 615var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 734var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 850var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 966var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 1085var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 1187var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty; 1309var metadata = inferredMetadataResult?.EndpointMetadata ?? ReadOnlyCollection<object>.Empty;
_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\34\IdentityJsonSerializerContext.PublicKeyCredentialDescriptor.g.cs (5)
99var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 114AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor).GetProperty("Transports", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 117properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info2); 147global::System.Collections.Generic.IReadOnlyList<string> __value_Transports = ((global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor)value).Transports; 183private static extern void __set_PublicKeyCredentialDescriptor_Transports(global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor 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);
_generated\40\IdentityJsonSerializerContext.IReadOnlyListPublicKeyCredentialDescriptor.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>? _IReadOnlyListPublicKeyCredentialDescriptor; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>> IReadOnlyListPublicKeyCredentialDescriptor 22get => _IReadOnlyListPublicKeyCredentialDescriptor ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>> Create_IReadOnlyListPublicKeyCredentialDescriptor(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>, global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>(options, info); 47private void IReadOnlyListPublicKeyCredentialDescriptorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>? value)
_generated\41\IdentityJsonSerializerContext.IReadOnlyListPublicKeyCredentialParameters.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>? _IReadOnlyListPublicKeyCredentialParameters; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>> IReadOnlyListPublicKeyCredentialParameters 22get => _IReadOnlyListPublicKeyCredentialParameters ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>> Create_IReadOnlyListPublicKeyCredentialParameters(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>, global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>(options, info); 47private void IReadOnlyListPublicKeyCredentialParametersSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>? value)
_generated\42\IdentityJsonSerializerContext.IReadOnlyListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>? _IReadOnlyListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> IReadOnlyListString 22get => _IReadOnlyListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> Create_IReadOnlyListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<string>, string>(options, info); 47private void IReadOnlyListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<string>? value)
_generated\51\IdentityJsonSerializerContext.GetJsonTypeInfo.g.cs (3)
102if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialDescriptor>)) 106if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Identity.PublicKeyCredentialParameters>)) 110if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
PasskeyHandler.cs (1)
46var pubKeyCredParams = _options.IsAllowedAlgorithm is { } isAllowedAlgorithm
Passkeys\CredentialPublicKey.cs (1)
25internal static IReadOnlyList<PublicKeyCredentialParameters> AllSupportedParameters { get; } =
Passkeys\PublicKeyCredentialCreationOptions.cs (4)
34public IReadOnlyList<PublicKeyCredentialParameters> PubKeyCredParams { get; init; } = []; 44public IReadOnlyList<PublicKeyCredentialDescriptor> ExcludeCredentials { get; init; } = []; 54public IReadOnlyList<string> Hints { get; init; } = []; 64public IReadOnlyList<string> AttestationFormats { get; init; } = [];
Passkeys\PublicKeyCredentialDescriptor.cs (1)
27public IReadOnlyList<string> Transports { get; init; } = [];
Passkeys\PublicKeyCredentialRequestOptions.cs (2)
34public IReadOnlyList<PublicKeyCredentialDescriptor> AllowCredentials { get; init; } = []; 44public IReadOnlyList<string> Hints { get; init; } = [];
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)
ActionConstraints\ActionConstraintContext.cs (1)
17public IReadOnlyList<ActionSelectorCandidate> Candidates { get; set; } = Array.Empty<ActionSelectorCandidate>();
ActionConstraints\ActionSelectorCandidate.cs (2)
20public ActionSelectorCandidate(ActionDescriptor action, IReadOnlyList<IActionConstraint>? constraints) 36public IReadOnlyList<IActionConstraint>? Constraints { get; }
ApiExplorer\ApiDescriptionProviderContext.cs (2)
17public ApiDescriptionProviderContext(IReadOnlyList<ActionDescriptor> actions) 29public IReadOnlyList<ActionDescriptor> Actions { get; }
ModelBinding\ModelMetadata.cs (6)
45private IReadOnlyList<ModelMetadata>? _boundProperties; 124internal IReadOnlyList<ModelMetadata> BoundProperties 140var boundParameters = BoundConstructor.BoundConstructorParameters!; 198public virtual IReadOnlyList<ModelMetadata>? BoundConstructorParameters { get; } 444public abstract IReadOnlyList<object> ValidatorMetadata { get; } 666var boundParameters = BoundConstructor!.BoundConstructorParameters!;
ModelBinding\ModelStateDictionary.cs (1)
839public override IReadOnlyList<ModelStateEntry>? Children => ChildNodes;
ModelBinding\ModelStateEntry.cs (1)
71public abstract IReadOnlyList<ModelStateEntry>? Children { get; }
ModelBinding\Validation\ClientValidatorProviderContext.cs (1)
34public IReadOnlyList<object> ValidatorMetadata => ModelMetadata.ValidatorMetadata;
ModelBinding\Validation\ModelValidatorProviderContext.cs (1)
33public IReadOnlyList<object> ValidatorMetadata => ModelMetadata.ValidatorMetadata;
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
SymbolApiResponseMetadataProvider.cs (4)
30var conventionTypeAttributes = GetConventionTypes(symbolCache, method); 67IReadOnlyList<ITypeSymbol> conventionTypes) 119IReadOnlyList<ITypeSymbol> conventionTypes) 161internal static IReadOnlyList<ITypeSymbol> GetConventionTypes(in ApiControllerSymbolCache symbolCache, IMethodSymbol method)
Microsoft.AspNetCore.Mvc.ApiExplorer (24)
ApiDescriptionGroup.cs (2)
28public ApiDescriptionGroup(string? groupName, IReadOnlyList<ApiDescription> items) 42public IReadOnlyList<ApiDescription> Items { get; }
ApiDescriptionGroupCollection.cs (3)
16public ApiDescriptionGroupCollection(IReadOnlyList<ApiDescriptionGroup> items, int version) 25/// Returns the list of <see cref="IReadOnlyList{ApiDescriptionGroup}"/>. 27public IReadOnlyList<ApiDescriptionGroup> Items { get; }
ApiParameterContext.cs (2)
15IReadOnlyList<TemplatePart> routeParameters) 30public IReadOnlyList<TemplatePart> RouteParameters { get; }
ApiResponseTypeProvider.cs (7)
91IReadOnlyList<ApiResponseMetadataProviderWithScope> responseMetadataAttributes, 92IReadOnlyList<IProducesResponseTypeMetadata> producesResponseMetadata, 160IReadOnlyList<IApiResponseMetadataProvider> responseMetadataAttributes, 184IReadOnlyList<ApiResponseMetadataProviderWithScope> responseMetadataAttributes, 304IReadOnlyList<IProducesResponseTypeMetadata> responseMetadata, 408var formatterSupportedContentTypes = responseTypeMetadataProvider.GetSupportedContentTypes( 515private static bool HasSignificantMetadataProvider(IReadOnlyList<ApiResponseMetadataProviderWithScope> providers)
DefaultApiDescriptionProvider.cs (4)
143var requestFormats = GetSupportedFormats(contentTypes, parameter.Type); 433private IReadOnlyList<ApiRequestFormat> GetSupportedFormats(MediaTypeCollection contentTypes, Type type) 450var supportedTypes = requestFormatMetadataProvider.GetSupportedContentTypes(contentType, type); 470internal static MediaTypeCollection GetDeclaredContentTypes(IReadOnlyList<IApiRequestMetadataProvider>? requestMetadataAttributes, IAcceptsMetadata? acceptsMetadata)
EndpointMetadataApiDescriptionProvider.cs (5)
117var parameters = routeEndpoint.Metadata.GetOrderedMetadata<IParameterBindingMetadata>(); 229if (pattern.ParameterPolicies.TryGetValue(parameter.Name, out var parameterPolicyReferences)) 330var responseProviderMetadata = endpointMetadata.GetOrderedMetadata<IApiResponseMetadataProvider>(); 331var producesResponseMetadata = endpointMetadata.GetOrderedMetadata<IProducesResponseTypeMetadata>(); 535private static void AddResponseContentTypes(IList<ApiResponseFormat> apiResponseFormats, IReadOnlyList<string> contentTypes)
EndpointModelMetadata.cs (1)
53public override IReadOnlyList<object> ValidatorMetadata { get; } = Array.Empty<object>();
Microsoft.AspNetCore.Mvc.Core (156)
ActionConstraints\ActionConstraintCache.cs (6)
45public IReadOnlyList<IActionConstraint>? GetActionConstraints(HttpContext httpContext, ActionDescriptor action) 67var actionConstraints = ExtractActionConstraints(items); 93private IReadOnlyList<IActionConstraint>? GetActionConstraintsFromEntry(CacheEntry entry, HttpContext httpContext, ActionDescriptor action) 136private static IReadOnlyList<IActionConstraint>? ExtractActionConstraints(List<ActionConstraintItem> items) 183public CacheEntry(IReadOnlyList<IActionConstraint> actionConstraints) 195public IReadOnlyList<IActionConstraint>? ActionConstraints { get; }
ActionConstraints\HttpMethodActionConstraint.cs (1)
22private readonly IReadOnlyList<string> _httpMethods;
ApiBehaviorOptions.cs (1)
17private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
ApiExplorer\ApiConventionResult.cs (2)
19public ApiConventionResult(IReadOnlyList<IApiResponseMetadataProvider> responseMetadataProviders) 28public IReadOnlyList<IApiResponseMetadataProvider> ResponseMetadataProviders { get; }
ApiExplorer\IApiRequestFormatMetadataProvider.cs (1)
27IReadOnlyList<string>? GetSupportedContentTypes(
ApiExplorer\IApiResponseTypeMetadataProvider.cs (1)
27IReadOnlyList<string>? GetSupportedContentTypes(
ApplicationModels\ActionModel.cs (2)
27IReadOnlyList<object> attributes) 95public IReadOnlyList<object> Attributes { get; }
ApplicationModels\ApplicationModelConventions.cs (1)
101IReadOnlyList<object> attributes)
ApplicationModels\ControllerModel.cs (2)
26IReadOnlyList<object> attributes) 96public IReadOnlyList<object> Attributes { get; }
ApplicationModels\ICommonModel.cs (1)
16IReadOnlyList<object> Attributes { get; }
ApplicationModels\ParameterModel.cs (2)
23IReadOnlyList<object> attributes) 55public new IReadOnlyList<object> Attributes => base.Attributes;
ApplicationModels\ParameterModelBase.cs (2)
23IReadOnlyList<object> attributes) 49public IReadOnlyList<object> Attributes { get; }
ApplicationModels\PropertyModel.cs (2)
23IReadOnlyList<object> attributes) 54public new IReadOnlyList<object> Attributes => base.Attributes;
ApplicationParts\RelatedAssemblyAttribute.cs (2)
39public static IReadOnlyList<Assembly> GetRelatedAssemblies(Assembly assembly, bool throwOnError) 47internal static IReadOnlyList<Assembly> GetRelatedAssemblies(
Authorization\AuthorizeFilter.cs (1)
146var endpointAuthorizeData = endpoint.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>();
ConsumesAttribute.cs (1)
103IReadOnlyList<string> IAcceptsMetadata.ContentTypes => _contentTypes;
Diagnostics\EventData.cs (1)
27KeyValuePair<string, object> IReadOnlyList<KeyValuePair<string, object>>.this[int index] => this[index];
Formatters\InputFormatter.cs (1)
121public virtual IReadOnlyList<string>? GetSupportedContentTypes(string? contentType, Type objectType)
Formatters\OutputFormatter.cs (1)
32public virtual IReadOnlyList<string>? GetSupportedContentTypes(
Infrastructure\ActionDescriptorCollection.cs (3)
20public ActionDescriptorCollection(IReadOnlyList<ActionDescriptor> items, int version) 29/// Returns the cached <see cref="IReadOnlyList{ActionDescriptor}"/>. 31public IReadOnlyList<ActionDescriptor> Items { get; }
Infrastructure\ActionSelectionTable.cs (1)
162public IReadOnlyList<TItem> Select(RouteValueDictionary values)
Infrastructure\ActionSelector.cs (11)
63public IReadOnlyList<ActionDescriptor> SelectCandidates(RouteContext context) 69var matches = cache.Select(context.RouteData.Values); 79public ActionDescriptor? SelectBestCandidate(RouteContext context, IReadOnlyList<ActionDescriptor> candidates) 84var finalMatches = EvaluateActionConstraints(context, candidates); 111private IReadOnlyList<ActionDescriptor>? EvaluateActionConstraints( 113IReadOnlyList<ActionDescriptor> actions) 122var constraints = _actionConstraintCache.GetActionConstraints(context.HttpContext, action); 126var matches = EvaluateActionConstraintsCore(context, candidates, startingOrder: null); 144private IReadOnlyList<ActionSelectorCandidate>? EvaluateActionConstraintsCore( 146IReadOnlyList<ActionSelectorCandidate> candidates, 232var matches = EvaluateActionConstraintsCore(context, actionsWithConstraint, order);
Infrastructure\ControllerActionInvokerProvider.cs (1)
19private readonly IReadOnlyList<IValueProviderFactory> _valueProviderFactories;
Infrastructure\CopyOnWriteList.cs (3)
14private readonly IReadOnlyList<T> _source; 17public CopyOnWriteList(IReadOnlyList<T> source) 22private IReadOnlyList<T> Readable => _copy ?? _source;
Infrastructure\IActionSelector.cs (2)
31IReadOnlyList<ActionDescriptor>? SelectCandidates(RouteContext context); 55ActionDescriptor? SelectBestCandidate(RouteContext context, IReadOnlyList<ActionDescriptor> candidates);
ModelBinding\Binders\ComplexObjectModelBinder.cs (5)
34private readonly IReadOnlyList<IModelBinder> _parameterBinders; 40IReadOnlyList<IModelBinder> parameterBinders, 225IReadOnlyList<ModelMetadata> parameters, 322IReadOnlyList<ModelMetadata> boundProperties) 613var parameters = bindingContext.ModelMetadata.BoundConstructor!.BoundConstructorParameters!;
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (2)
26var parameterBinders = GetParameterBinders(context); 41private static IReadOnlyList<IModelBinder> GetParameterBinders(ModelBinderProviderContext context)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
94IReadOnlyList<IFormFile> IFormFileCollection.GetFiles(string name) => Array.Empty<IFormFile>();
ModelBinding\Binders\FormFileModelBinder.cs (1)
193public IReadOnlyList<IFormFile> GetFiles(string name)
ModelBinding\Metadata\BindingMetadataProviderContext.cs (4)
36public IReadOnlyList<object> Attributes { get; } 46public IReadOnlyList<object>? ParameterAttributes { get; } 51public IReadOnlyList<object>? PropertyAttributes { get; } 56public IReadOnlyList<object>? TypeAttributes { get; }
ModelBinding\Metadata\DefaultModelMetadata.cs (3)
396public override IReadOnlyList<ModelMetadata>? BoundConstructorParameters => _details.BoundConstructorParameters; 511var parameters = defaultModelMetadata.BoundConstructor?.BoundConstructorParameters ?? Array.Empty<ModelMetadata>(); 534public override IReadOnlyList<object> ValidatorMetadata
ModelBinding\Metadata\DisplayMetadataProviderContext.cs (3)
35public IReadOnlyList<object> Attributes { get; } 50public IReadOnlyList<object>? PropertyAttributes { get; } 55public IReadOnlyList<object>? TypeAttributes { get; }
ModelBinding\Metadata\ModelAttributes.cs (7)
21internal ModelAttributes(IReadOnlyList<object> attributes) 81public IReadOnlyList<object> Attributes { get; } 87public IReadOnlyList<object>? PropertyAttributes { get; } 93public IReadOnlyList<object>? ParameterAttributes { get; } 101public IReadOnlyList<object>? TypeAttributes { get; } 185var typeAttributes = GetAttributesForType(parameterInfo.ParameterType).TypeAttributes!; 209var typeAttributes = GetAttributesForType(modelType).TypeAttributes!;
ModelBinding\Metadata\SystemTextJsonValidationMetadataProvider.cs (1)
68private static string? ReadPropertyNameFrom(IReadOnlyList<object> attributes)
ModelBinding\Metadata\ValidationMetadataProviderContext.cs (4)
36public IReadOnlyList<object> Attributes { get; } 46public IReadOnlyList<object>? ParameterAttributes { get; } 51public IReadOnlyList<object>? PropertyAttributes { get; } 56public IReadOnlyList<object>? TypeAttributes { get; }
ModelBinding\Validation\ClientValidatorCache.cs (6)
25public IReadOnlyList<IClientModelValidator> GetValidators(ModelMetadata metadata, IClientModelValidatorProvider validatorProvider) 49var validators = ExtractValidators(items); 76private static IReadOnlyList<IClientModelValidator> GetValidatorsFromEntry(CacheEntry entry, ModelMetadata metadata, IClientModelValidatorProvider validationProvider) 111private static IReadOnlyList<IClientModelValidator> ExtractValidators(List<ClientValidatorItem> items) 143public CacheEntry(IReadOnlyList<IClientModelValidator> validators) 155public IReadOnlyList<IClientModelValidator>? Validators { get; }
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
29public IReadOnlyList<IClientModelValidatorProvider> ValidatorProviders { get; }
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
40private readonly IReadOnlyList<ModelMetadata> _parameters; 41private readonly IReadOnlyList<ModelMetadata> _properties;
ModelBinding\Validation\ValidationVisitor.cs (1)
211var validators = Cache.GetValidators(Metadata, ValidatorProvider);
ModelBinding\Validation\ValidatorCache.cs (6)
24public IReadOnlyList<IModelValidator> GetValidators(ModelMetadata metadata, IModelValidatorProvider validatorProvider) 39var validators = ExtractValidators(items); 66private static IReadOnlyList<IModelValidator> GetValidatorsFromEntry(CacheEntry entry, ModelMetadata metadata, IModelValidatorProvider validationProvider) 100private static IReadOnlyList<IModelValidator> ExtractValidators(List<ValidatorItem> items) 133public CacheEntry(IReadOnlyList<IModelValidator> validators) 145public IReadOnlyList<IModelValidator>? Validators { get; }
MvcOptions.cs (1)
28private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
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\ActionEndpointDataSourceBase.cs (7)
41public override IReadOnlyList<Endpoint> Endpoints 52public override IReadOnlyList<Endpoint> GetGroupedEndpoints(RouteGroupContext context) 66IReadOnlyList<ActionDescriptor> actions, 67IReadOnlyList<Action<EndpointBuilder>> conventions, 68IReadOnlyList<Action<EndpointBuilder>> groupConventions, 69IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 70IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions);
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\AttributeRoute.cs (1)
135private static List<RouteInfo> GetRouteInfos(IReadOnlyList<ActionDescriptor> actions)
Routing\ControllerActionEndpointDataSource.cs (5)
67IReadOnlyList<ActionDescriptor> actions, 68IReadOnlyList<Action<EndpointBuilder>> conventions, 69IReadOnlyList<Action<EndpointBuilder>> groupConventions, 70IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 71IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Routing\ControllerRequestDelegateFactory.cs (1)
20private readonly IReadOnlyList<IValueProviderFactory> _valueProviderFactories;
Routing\ConventionalRouteEntry.cs (2)
17public readonly IReadOnlyList<Action<EndpointBuilder>> Conventions; 18public readonly IReadOnlyList<Action<EndpointBuilder>> FinallyConventions;
Routing\DynamicControllerEndpointMatcherPolicy.cs (2)
30public bool AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 116var endpoints = selector.SelectEndpoints(dynamicValues);
Routing\DynamicControllerEndpointSelector.cs (3)
23public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values) 28var matches = table.Select(values); 32private static ActionSelectionTable<Endpoint> Initialize(IReadOnlyList<Endpoint> endpoints)
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);
Routing\MvcRouteHandler.cs (1)
43var candidates = _actionSelector.SelectCandidates(context);
src\aspnetcore\src\Http\Routing\src\DataSourceDependentCache.cs (2)
16private readonly Func<IReadOnlyList<Endpoint>, T> _initializeCore; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (2)
58var attributes = context.Attributes; 303var contextAttributes = context.Attributes;
MvcDataAnnotationsLocalizationOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
MvcXmlOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.Razor (7)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
84public override IReadOnlyList<object> Metadata => Type.GetCustomAttributes(inherit: true);
RazorView.cs (2)
40IReadOnlyList<IRazorPage> viewStartPages, 71public IReadOnlyList<IRazorPage> ViewStartPages { get; }
RazorViewEngine.cs (2)
413var viewStartPages = isMainPage ? 425private IReadOnlyList<ViewLocationCacheItem> GetViewStartPages(
ViewLocationCacheResult.cs (2)
19IReadOnlyList<ViewLocationCacheItem> viewStarts) 50public IReadOnlyList<ViewLocationCacheItem>? ViewStartEntries { get; }
Microsoft.AspNetCore.Mvc.RazorPages (32)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
64var handlerMetatdata = applicationModel.HandlerTypeAttributes;
ApplicationModels\PageApplicationModel.cs (3)
23IReadOnlyList<object> handlerAttributes) 35IReadOnlyList<object> handlerAttributes) 143public IReadOnlyList<object> HandlerTypeAttributes { get; }
ApplicationModels\PageHandlerModel.cs (2)
23IReadOnlyList<object> attributes) 86public IReadOnlyList<object> Attributes { get; }
ApplicationModels\PageParameterModel.cs (1)
22IReadOnlyList<object> attributes)
ApplicationModels\PagePropertyModel.cs (1)
23IReadOnlyList<object> attributes)
ApplicationModels\TempDataFilterPageApplicationModelProvider.cs (1)
33var tempDataProperties = SaveTempDataPropertyFilterBase.GetTempDataProperties(_tempDataSerializer, handlerType);
ApplicationModels\ViewDataAttributePageApplicationModelProvider.cs (1)
27var viewDataProperties = ViewDataAttributePropertyProvider.GetViewDataProperties(handlerType);
Filters\PageSaveTempDataPropertyFilterFactory.cs (2)
11public PageSaveTempDataPropertyFilterFactory(IReadOnlyList<LifecycleProperty> properties) 16public IReadOnlyList<LifecycleProperty> Properties { get; }
Filters\PageViewDataAttributeFilter.cs (2)
11public PageViewDataAttributeFilter(IReadOnlyList<LifecycleProperty> properties) 16public IReadOnlyList<LifecycleProperty> Properties { get; }
Filters\PageViewDataAttributeFilterFactory.cs (2)
10public PageViewDataAttributeFilterFactory(IReadOnlyList<LifecycleProperty> properties) 15public IReadOnlyList<LifecycleProperty> Properties { get; }
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
97IReadOnlyList<object> attributes)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (2)
33public bool AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 115var endpoints = selector.SelectEndpoints(dynamicValues);
Infrastructure\DynamicPageEndpointSelector.cs (3)
25public IReadOnlyList<Endpoint> SelectEndpoints(RouteValueDictionary values) 30var matches = table.Select(values); 34private static ActionSelectionTable<Endpoint> Initialize(IReadOnlyList<Endpoint> endpoints)
Infrastructure\PageActionEndpointDataSource.cs (5)
46IReadOnlyList<ActionDescriptor> actions, 47IReadOnlyList<Action<EndpointBuilder>> conventions, 48IReadOnlyList<Action<EndpointBuilder>> groupConventions, 49IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 50IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Infrastructure\PageActionInvokerCacheEntry.cs (2)
24IReadOnlyList<Func<IRazorPage>> viewStartFactories, 71public IReadOnlyList<Func<IRazorPage>> ViewStartFactories { get; }
Infrastructure\PageActionInvokerProvider.cs (1)
20private readonly IReadOnlyList<IValueProviderFactory> _valueProviderFactories;
Infrastructure\PageRequestDelegateFactory.cs (1)
21private readonly IReadOnlyList<IValueProviderFactory> _valueProviderFactories;
RazorPagesOptions.cs (1)
15private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
Microsoft.AspNetCore.Mvc.TagHelpers (8)
GlobbingUrlBuilder.cs (3)
69public virtual IReadOnlyList<string> BuildUrlList( 75var globbedUrls = ExpandGlobbedUrl(includePattern, excludePattern); 99private IReadOnlyList<string> ExpandGlobbedUrl(string include, string exclude)
LinkTagHelper.cs (3)
319var urls = GlobbingUrlBuilder.BuildUrlList(null, HrefInclude, HrefExclude); 340var fallbackHrefs = GlobbingUrlBuilder.BuildUrlList( 431private void AppendFallbackHrefs(TagHelperContent builder, IReadOnlyList<string> fallbackHrefs)
ScriptTagHelper.cs (2)
348var urls = GlobbingUrlBuilder.BuildUrlList(null, SrcInclude, SrcExclude); 368var fallbackSrcs = GlobbingUrlBuilder.BuildUrlList(FallbackSrc, FallbackSrcInclude, FallbackSrcExclude);
Microsoft.AspNetCore.Mvc.ViewFeatures (20)
DefaultValidationHtmlAttributeProvider.cs (1)
59var validators = _clientValidatorCache.GetValidators(
Filters\AntiforgeryApplicationModelProvider.cs (1)
52private static bool HasValidAntiforgeryMetadata(IReadOnlyList<object> attributes, IList<IFilterMetadata> filters)
Filters\ControllerSaveTempDataPropertyFilterFactory.cs (2)
11public ControllerSaveTempDataPropertyFilterFactory(IReadOnlyList<LifecycleProperty> properties) 16public IReadOnlyList<LifecycleProperty> TempDataProperties { get; }
Filters\ControllerViewDataAttributeFilter.cs (2)
10public ControllerViewDataAttributeFilter(IReadOnlyList<LifecycleProperty> properties) 17public IReadOnlyList<LifecycleProperty> Properties { get; }
Filters\ControllerViewDataAttributeFilterFactory.cs (2)
10public ControllerViewDataAttributeFilterFactory(IReadOnlyList<LifecycleProperty> properties) 15public IReadOnlyList<LifecycleProperty> Properties { get; }
Filters\SaveTempDataPropertyFilterBase.cs (2)
23public IReadOnlyList<LifecycleProperty> Properties { get; set; } 82public static IReadOnlyList<LifecycleProperty> GetTempDataProperties(
Filters\TempDataApplicationModelProvider.cs (1)
36var tempDataProperties = SaveTempDataPropertyFilterBase.GetTempDataProperties(_tempDataSerializer, modelType);
Filters\ViewDataAttributeApplicationModelProvider.cs (1)
28var viewDataProperties = ViewDataAttributePropertyProvider.GetViewDataProperties(controllerType);
Filters\ViewDataAttributePropertyProvider.cs (1)
11public static IReadOnlyList<LifecycleProperty> GetViewDataProperties(Type type)
MvcViewOptions.cs (1)
19private readonly IReadOnlyList<ICompatibilitySwitch> _switches = Array.Empty<ICompatibilitySwitch>();
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
32var descriptors = StaticAssetsEndpointDataSourceHelper.ResolveStaticAssetDescriptors(endpoints, ManifestName);
ViewComponents\ViewComponentDescriptor.cs (1)
127public IReadOnlyList<ParameterInfo> Parameters { get; set; }
ViewComponents\ViewComponentDescriptorCollection.cs (2)
25/// Returns the cached <see cref="IReadOnlyList{ViewComponentDescriptor}"/>. 27public IReadOnlyList<ViewComponentDescriptor> Items { get; }
ViewEngines\CompositeViewEngine.cs (1)
25public IReadOnlyList<IViewEngine> ViewEngines { get; }
ViewEngines\ICompositeViewEngine.cs (1)
17IReadOnlyList<IViewEngine> ViewEngines { get; }
Microsoft.AspNetCore.OutputCaching (8)
DefaultOutputCachePolicyProvider.cs (1)
24public IReadOnlyList<IOutputCachePolicy> GetBasePolicies()
IOutputCachePolicyProvider.cs (1)
15IReadOnlyList<IOutputCachePolicy> GetBasePolicies();
OutputCacheMiddleware.cs (6)
91if (!TryGetRequestPolicies(httpContext, out var policies)) 99private async Task InvokeAwaited(HttpContext httpContext, IReadOnlyList<IOutputCachePolicy> policies) 222internal bool TryGetRequestPolicies(HttpContext httpContext, out IReadOnlyList<IOutputCachePolicy> policies) 227var basePolicies = _policyProvider.GetBasePolicies(); 261internal async Task<bool> TryServeCachedResponseAsync(OutputCacheContext context, OutputCacheEntry? cacheEntry, IReadOnlyList<IOutputCachePolicy> policies) 331internal async Task<bool> TryServeFromCacheAsync(OutputCacheContext cacheContext, IReadOnlyList<IOutputCachePolicy> policies)
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)
TagHelpers\ReadOnlyTagHelperAttributeList.cs (2)
114public bool TryGetAttributes(string name, out IReadOnlyList<TagHelperAttribute> attributes) 136attributes = matchedAttributes ?? (IReadOnlyList<TagHelperAttribute>)Array.Empty<TagHelperAttribute>();
Microsoft.AspNetCore.Razor.Runtime (4)
Hosting\DefaultRazorCompiledItem.cs (1)
25public override IReadOnlyList<object> Metadata
Hosting\RazorCompiledItem.cs (1)
30public abstract IReadOnlyList<object> Metadata { get; }
Hosting\RazorCompiledItemExtensions.cs (1)
18public static IReadOnlyList<IRazorSourceChecksumMetadata> GetChecksumMetadata(this RazorCompiledItem item)
Hosting\RazorCompiledItemLoader.cs (1)
34public virtual IReadOnlyList<RazorCompiledItem> LoadItems(Assembly assembly)
Microsoft.AspNetCore.Razor.Utilities.Shared (182)
EnumerableExtensions.cs (15)
39if (source is IReadOnlyList<T> list) 108if (source is IReadOnlyList<T> list) 214case IReadOnlyList<T> list: 265if (sequence is IReadOnlyList<T> list) 290if (sequence is IReadOnlyList<T> list) 315if (sequence is IReadOnlyList<T> list) 339if (sequence is IReadOnlyList<T> list) 364if (sequence is IReadOnlyList<T> list) 389if (sequence is IReadOnlyList<T> list) 416if (sequence is IReadOnlyList<TElement> list) 444if (sequence is IReadOnlyList<TElement> list) 472if (sequence is IReadOnlyList<TElement> list) 499if (sequence is IReadOnlyList<TElement> list) 527if (sequence is IReadOnlyList<TElement> list) 555if (sequence is IReadOnlyList<TElement> list)
PooledObjects\PooledArrayBuilder`1.cs (4)
290where TList : struct, IReadOnlyList<T> 294where TList : struct, IReadOnlyList<T> 451where TList : struct, IReadOnlyList<T> 455where TList : struct, IReadOnlyList<T>
PooledObjects\PooledDictionaryBuilder`2.cs (1)
59public void AddRange(IReadOnlyList<KeyValuePair<TKey, TValue>> items)
PooledObjects\PooledHashSet`1.cs (1)
215public void UnionWith(IReadOnlyList<T>? other)
PooledObjects\PooledList`1.cs (1)
70public void AddRange(IReadOnlyList<T> items)
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)
Threading\SpecializedTasks.cs (3)
30public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 56public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult<IReadOnlyList<T>>([]);
Utilities\SortHelper`1.cs (2)
144public bool ComputeKeys<TElement>(IReadOnlyList<TElement> items, Func<TElement, T> keySelector, Span<SortKey<T>> keys) 178private bool ComputeIdentityKeys<TElement>(IReadOnlyList<TElement> items, Span<SortKey<T>> keys)
Microsoft.AspNetCore.Routing (111)
Builder\EndpointRouteBuilderExtensions.cs (1)
213IReadOnlyList<object> metadata = options.EndpointBuilder?.Metadata is not null ?
CompositeEndpointDataSource.cs (2)
69public override IReadOnlyList<Endpoint> Endpoints 79public override IReadOnlyList<Endpoint> GetGroupedEndpoints(RouteGroupContext context)
DataSourceDependentCache.cs (2)
16private readonly Func<IReadOnlyList<Endpoint>, T> _initializeCore; 27public DataSourceDependentCache(EndpointDataSource dataSource, Func<IReadOnlyList<Endpoint>, T> initialize)
DecisionTree\DecisionTreeBuilder.cs (1)
73public static DecisionTreeNode<TItem> GenerateTree(IReadOnlyList<TItem> items, IClassifier<TItem> classifier)
DefaultEndpointDataSource.cs (2)
17private readonly IReadOnlyList<Endpoint> _endpoints; 51public override IReadOnlyList<Endpoint> Endpoints => _endpoints;
DefaultLinkGenerator.cs (1)
327private IReadOnlyList<Endpoint> Endpoints => _serviceProvider.GetRequiredService<EndpointDataSource>().Endpoints;
EndpointDataSource.cs (4)
26public abstract IReadOnlyList<Endpoint> Endpoints { get; } 35public virtual IReadOnlyList<Endpoint> GetGroupedEndpoints(RouteGroupContext context) 38var endpoints = Endpoints; 89internal static string GetDebuggerDisplayStringForEndpoints(IReadOnlyList<Endpoint>? endpoints)
EndpointNameAddressScheme.cs (1)
33private static FrozenDictionary<string, Endpoint[]> Initialize(IReadOnlyList<Endpoint> endpoints)
HostAttribute.cs (1)
49public IReadOnlyList<string> Hosts { get; }
HttpMethodMetadata.cs (1)
54public IReadOnlyList<string> HttpMethods { get; }
IHostMetadata.cs (1)
16IReadOnlyList<string> Hosts { get; }
IHttpMethodMetadata.cs (1)
24IReadOnlyList<string> HttpMethods { get; }
Internal\DfaGraphWriter.cs (1)
44var endpoints = dataSource.Endpoints;
Matching\AcceptsMatcherPolicy.cs (8)
22bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 34bool IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 42private static bool AppliesToEndpointsCore(IReadOnlyList<Endpoint> endpoints) 138public IReadOnlyList<PolicyNodeEdge> GetEdges(IReadOnlyList<Endpoint> endpoints) 154var contentTypes = endpoint.Metadata.GetMetadata<IAcceptsMetadata>()?.ContentTypes; 176var contentTypes = endpoint.Metadata.GetMetadata<IAcceptsMetadata>()?.ContentTypes ?? Array.Empty<string>(); 260public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Matching\CandidateSet.cs (1)
208public void ExpandEndpoint(int index, IReadOnlyList<Endpoint> endpoints, IComparer<Endpoint> comparer)
Matching\DataSourceDependentMatcher.cs (1)
38private Matcher CreateMatcher(IReadOnlyList<Endpoint> endpoints)
Matching\DfaMatcherBuilder.cs (9)
325if (endpoint.RoutePattern.ParameterPolicies.TryGetValue(parameterPart.Name, out var parameterPolicyReferences)) 400if (endpoint.RoutePattern.ParameterPolicies.TryGetValue(partParameter.Name, out var parameterPolicyReferences)) 425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 475if (endpoint.RoutePattern.ParameterPolicies.TryGetValue(parameterPart.Name, out var parameterPolicyReferences)) 705internal Candidate[] CreateCandidates(IReadOnlyList<Endpoint> endpoints) 814var parameterPolicyReferences = kvp.Value; 911if (!nodeBuilder.AppliesToEndpoints(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>())) 921var edges = nodeBuilder.GetEdges(parent.Matches ?? (IReadOnlyList<Endpoint>)Array.Empty<Endpoint>());
Matching\EndpointMetadataComparer.cs (1)
15/// provider and provided to <see cref="CandidateSet.ExpandEndpoint(int, IReadOnlyList{Endpoint}, IComparer{Endpoint})"/>.
Matching\HostMatcherPolicy.cs (8)
26bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 33bool IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 46private static bool AppliesToEndpointsCore(IReadOnlyList<Endpoint> endpoints) 50var hosts = e.Metadata.GetMetadata<IHostMetadata>()?.Hosts; 83var hosts = candidates[i].Endpoint.Metadata.GetMetadata<IHostMetadata>()?.Hosts; 191public IReadOnlyList<PolicyNodeEdge> GetEdges(IReadOnlyList<Endpoint> endpoints) 292public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Matching\HttpMethodMatcherPolicy.cs (7)
39bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 51bool IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) 59private static bool AppliesToEndpointsCore(IReadOnlyList<Endpoint> endpoints) 164public IReadOnlyList<PolicyNodeEdge> GetEdges(IReadOnlyList<Endpoint> endpoints) 298static (IReadOnlyList<string> httpMethods, bool acceptCorsPreflight) GetHttpMethods(Endpoint e) 311public PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Matching\IEndpointSelectorPolicy.cs (1)
24bool AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints);
Matching\INodeBuilderPolicy.cs (4)
18bool AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints); 25IReadOnlyList<PolicyNodeEdge> GetEdges(IReadOnlyList<Endpoint> endpoints); 33PolicyJumpTable BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges);
Matching\MatcherPolicy.cs (1)
47protected static bool ContainsDynamicEndpoints(IReadOnlyList<Endpoint> endpoints)
Matching\NegotiationMatcherPolicy.cs (6)
23bool INodeBuilderPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) => 26bool IEndpointSelectorPolicy.AppliesToEndpoints(IReadOnlyList<Endpoint> endpoints) => 29private bool AppliesToEndpointsCore(IReadOnlyList<Endpoint> endpoints) 250public IReadOnlyList<PolicyNodeEdge> GetEdges(IReadOnlyList<Endpoint> endpoints) 358PolicyJumpTable INodeBuilderPolicy.BuildJumpTable(int exitDestination, IReadOnlyList<PolicyJumpTableEdge> edges)
Matching\PolicyNodeEdge.cs (2)
18public PolicyNodeEdge(object state, IReadOnlyList<Endpoint> endpoints) 27public IReadOnlyList<Endpoint> Endpoints { get; }
Patterns\DefaultRoutePatternTransformer.cs (1)
199if (pattern.ParameterPolicies.TryGetValue(key, out var policies))
Patterns\RoutePattern.cs (7)
40IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> parameterPolicies, 42IReadOnlyList<RoutePatternParameterPart> parameters, 43IReadOnlyList<RoutePatternPathSegment> pathSegments) 72public IReadOnlyDictionary<string, IReadOnlyList<RoutePatternParameterPolicyReference>> ParameterPolicies { get; } 123public IReadOnlyList<RoutePatternParameterPart> Parameters { get; } 128public IReadOnlyList<RoutePatternPathSegment> PathSegments { get; } 139var parameters = Parameters;
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,
Patterns\RoutePatternParameterPart.cs (1)
49public IReadOnlyList<RoutePatternParameterPolicyReference> ParameterPolicies { get; }
Patterns\RoutePatternPathSegment.cs (3)
26internal RoutePatternPathSegment(IReadOnlyList<RoutePatternPart> parts) 40public IReadOnlyList<RoutePatternPart> Parts { get; } 47internal static string DebuggerToString(IReadOnlyList<RoutePatternPart> parts)
RouteEndpointDataSource.cs (4)
93public override IReadOnlyList<RouteEndpoint> Endpoints 106public override IReadOnlyList<RouteEndpoint> GetGroupedEndpoints(RouteGroupContext context) 130RouteEntry entry, RoutePattern? groupPrefix = null, IReadOnlyList<Action<EndpointBuilder>>? groupConventions = null, IReadOnlyList<Action<EndpointBuilder>>? groupFinallyConventions = null)
RouteGroupBuilder.cs (10)
50public override IReadOnlyList<Endpoint> Endpoints => 54public override IReadOnlyList<Endpoint> GetGroupedEndpoints(RouteGroupContext context) => 57public IReadOnlyList<Endpoint> GetGroupedEndpointsWithNullablePrefix( 59IReadOnlyList<Action<EndpointBuilder>> conventions, 60IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 90IReadOnlyList<Action<EndpointBuilder>> conventions, 91IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 96var combinedConventions = RoutePatternFactory.CombineLists(conventions, _routeGroupBuilder._conventions); 97var combinedFinallyConventions = RoutePatternFactory.CombineLists(_routeGroupBuilder._finallyConventions, finallyConventions); 107private IReadOnlyList<Endpoint> SelectEndpointsFromAllDataSources(RouteGroupContext context)
RouteGroupContext.cs (2)
26public IReadOnlyList<Action<EndpointBuilder>> Conventions { get; init; } = Array.Empty<Action<EndpointBuilder>>(); 33public IReadOnlyList<Action<EndpointBuilder>> FinallyConventions { get; init; } = Array.Empty<Action<EndpointBuilder>>();
RouteValuesAddressScheme.cs (1)
70private StateEntry Initialize(IReadOnlyList<Endpoint> endpoints)
Template\TemplateBinder.cs (3)
253var parameters = _pattern.Parameters; 513var segments = _pattern.PathSegments; 521var parts = segments[i].Parts;
Tree\LinkGenerationDecisionTree.cs (1)
26public LinkGenerationDecisionTree(IReadOnlyList<OutboundMatch> entries)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
833private static bool TryGetNssDbOverrides(out IReadOnlyList<string> overrides) 868if (TryGetNssDbOverrides(out var nssDbOverrides))
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)
IInvocationBinder.cs (1)
27IReadOnlyList<Type> GetParameterTypes(string methodName);
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);
DynamicHubClients.cs (5)
37public dynamic AllExcept(IReadOnlyList<string> excludedConnectionIds) => new DynamicClientProxy(_clients.AllExcept(excludedConnectionIds)); 56public dynamic Clients(IReadOnlyList<string> connectionIds) => new DynamicClientProxy(_clients.Clients(connectionIds)); 70public dynamic Groups(IReadOnlyList<string> groupNames) => new DynamicClientProxy(_clients.Groups(groupNames)); 78public dynamic GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) => new DynamicClientProxy(_clients.GroupExcept(groupName, excludedConnectionIds)); 103public dynamic Users(IReadOnlyList<string> userIds) => new DynamicClientProxy(_clients.Users(userIds));
HubConnectionContext.cs (1)
530internal async Task<bool> HandshakeAsync(TimeSpan timeout, IReadOnlyList<string>? supportedProtocols, IHubProtocolResolver protocolResolver,
HubConnectionHandler.cs (2)
139var resolvedSupportedProtocols = (supportedProtocols as IReadOnlyList<string>) ?? supportedProtocols.ToList();
HubInvocationContext.cs (2)
24public HubInvocationContext(HubCallerContext context, IServiceProvider serviceProvider, Hub hub, MethodInfo hubMethod, IReadOnlyList<object?> hubMethodArguments) 57public IReadOnlyList<object?> HubMethodArguments { get; }
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);
IHubClients`T.cs (5)
23T AllExcept(IReadOnlyList<string> excludedConnectionIds); 37T Clients(IReadOnlyList<string> connectionIds); 51T Groups(IReadOnlyList<string> groupNames); 59T GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds); 73T Users(IReadOnlyList<string> userIds);
IHubProtocolResolver.cs (2)
16IReadOnlyList<IHubProtocol> AllProtocols { get; } 24IHubProtocol? GetProtocol(string protocolName, IReadOnlyList<string>? supportedProtocols);
Internal\DefaultHubDispatcher.cs (1)
811public override IReadOnlyList<Type> GetParameterTypes(string methodName)
Internal\DefaultHubProtocolResolver.cs (2)
17public IReadOnlyList<IHubProtocol> AllProtocols => _hubProtocols; 32public IHubProtocol? GetProtocol(string protocolName, IReadOnlyList<string>? supportedProtocols)
Internal\HubCallerClients.cs (5)
43public IClientProxy AllExcept(IReadOnlyList<string> excludedConnectionIds) 63public IClientProxy Groups(IReadOnlyList<string> groupNames) 73public IClientProxy GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 83public IClientProxy Clients(IReadOnlyList<string> connectionIds) 88public IClientProxy Users(IReadOnlyList<string> userIds)
Internal\HubClients.cs (5)
18public IClientProxy AllExcept(IReadOnlyList<string> excludedConnectionIds) 34public IClientProxy GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 39public IClientProxy Clients(IReadOnlyList<string> connectionIds) 44public IClientProxy Groups(IReadOnlyList<string> groupNames) 54public IClientProxy Users(IReadOnlyList<string> userIds)
Internal\HubClients`T.cs (5)
21public T AllExcept(IReadOnlyList<string> excludedConnectionIds) 31public T Clients(IReadOnlyList<string> connectionIds) 41public T GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 46public T Groups(IReadOnlyList<string> groupNames) 56public T Users(IReadOnlyList<string> userIds)
Internal\HubConnectionBinder.cs (1)
21public IReadOnlyList<Type> GetParameterTypes(string methodName)
Internal\HubDispatcher.cs (1)
14public abstract IReadOnlyList<Type> GetParameterTypes(string name);
Internal\HubMethodDescriptor.cs (2)
165public IReadOnlyList<Type> ParameterTypes { get; } 167public IReadOnlyList<Type>? OriginalParameterTypes { get; }
Internal\Proxies.cs (10)
27private readonly IReadOnlyList<string> _userIds; 30public MultipleUserProxy(HubLifetimeManager<THub> lifetimeManager, IReadOnlyList<string> userIds) 64private readonly IReadOnlyList<string> _groupNames; 66public MultipleGroupProxy(HubLifetimeManager<THub> lifetimeManager, IReadOnlyList<string> groupNames) 82private readonly IReadOnlyList<string> _excludedConnectionIds; 84public GroupExceptProxy(HubLifetimeManager<THub> lifetimeManager, string groupName, IReadOnlyList<string> excludedConnectionIds) 117private readonly IReadOnlyList<string> _excludedConnectionIds; 119public AllClientsExceptProxy(HubLifetimeManager<THub> lifetimeManager, IReadOnlyList<string> excludedConnectionIds) 134private readonly IReadOnlyList<string> _connectionIds; 136public MultipleClientProxy(HubLifetimeManager<THub> lifetimeManager, IReadOnlyList<string> connectionIds)
Internal\TypedHubClients.cs (5)
26public T AllExcept(IReadOnlyList<string> excludedConnectionIds) => TypedClientBuilder<T>.Build(_hubClients.AllExcept(excludedConnectionIds)); 33public T GroupExcept(string groupName, IReadOnlyList<string> excludedConnectionIds) 38public T Clients(IReadOnlyList<string> connectionIds) 43public T Groups(IReadOnlyList<string> groupNames) 58public T Users(IReadOnlyList<string> userIds)
SerializedHubMessage.cs (2)
28public SerializedHubMessage(IReadOnlyList<SerializedMessage> messages) 75internal IReadOnlyList<SerializedMessage> GetAllSerializations()
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (1)
102public IReadOnlyList<Type> GetParameterTypes(string methodName)
Microsoft.AspNetCore.SignalR.Protocols.Json (4)
Protocol\JsonHubProtocol.cs (4)
309var paramTypes = binder.GetParameterTypes(target); 364var paramTypes = binder.GetParameterTypes(target); 390var paramTypes = binder.GetParameterTypes(target); 832private object?[] BindTypes(ref Utf8JsonReader reader, IReadOnlyList<Type> paramTypes)
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);
_generated\13\StaticAssetsManifestJsonContext.GetJsonTypeInfo.g.cs (3)
42if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>)) 46if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>)) 50if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>))
_generated\6\StaticAssetsManifestJsonContext.IReadOnlyListStaticAssetProperty.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>>? _IReadOnlyListStaticAssetProperty; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>> IReadOnlyListStaticAssetProperty 22get => _IReadOnlyListStaticAssetProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>> Create_IReadOnlyListStaticAssetProperty(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>, global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>(options, info); 47private void IReadOnlyListStaticAssetPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetProperty>? value)
_generated\7\StaticAssetsManifestJsonContext.IReadOnlyListStaticAssetResponseHeader.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>>? _IReadOnlyListStaticAssetResponseHeader; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>> IReadOnlyListStaticAssetResponseHeader 22get => _IReadOnlyListStaticAssetResponseHeader ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>> Create_IReadOnlyListStaticAssetResponseHeader(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>, global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>(options, info); 47private void IReadOnlyListStaticAssetResponseHeaderSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetResponseHeader>? value)
_generated\8\StaticAssetsManifestJsonContext.IReadOnlyListStaticAssetSelector.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>>? _IReadOnlyListStaticAssetSelector; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>> IReadOnlyListStaticAssetSelector 22get => _IReadOnlyListStaticAssetSelector ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>> Create_IReadOnlyListStaticAssetSelector(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>, global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>(options, info); 47private void IReadOnlyListStaticAssetSelectorSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.StaticAssets.StaticAssetSelector>? value)
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (1)
38public static IReadOnlyList<StaticAssetDescriptor> ResolveStaticAssetDescriptors(
StaticAssetDescriptor.cs (6)
19private IReadOnlyList<StaticAssetSelector> _selectors = []; 20private IReadOnlyList<StaticAssetProperty> _endpointProperties = []; 21private IReadOnlyList<StaticAssetResponseHeader> _responseHeaders = []; 56public IReadOnlyList<StaticAssetSelector> Selectors 66public IReadOnlyList<StaticAssetProperty> Properties 76public IReadOnlyList<StaticAssetResponseHeader> ResponseHeaders
StaticAssetEndpointDataSource.cs (2)
59internal IReadOnlyList<StaticAssetDescriptor> Descriptors => _descriptors; 65public override IReadOnlyList<Endpoint> Endpoints
Microsoft.Build (95)
BackEnd\Components\ProjectCache\Experimental\FileAccessContext.cs (2)
14IReadOnlyList<string> targets) 25public IReadOnlyList<string> Targets { get; }
BackEnd\Components\ProjectCache\FileAccessContext.cs (2)
13IReadOnlyList<string> targets) 24public IReadOnlyList<string> Targets { get; }
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
258IReadOnlyList<string> requestedTargetsList = requestedTargets as List<string> ?? requestedTargets.ToList();
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
558private HashSet<string> EvaluateExcludePaths(IReadOnlyList<string> excludes, ElementLocation excludeLocation)
BackEnd\Components\SdkResolution\CachingSdkResolverLoader.cs (8)
20private readonly IReadOnlyList<SdkResolver> _defaultResolvers; 25private readonly ConcurrentDictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _resolversByManifest = new(); 30private IReadOnlyList<SdkResolver>? _allResolvers; 35private IReadOnlyList<SdkResolverManifest>? _resolversManifests; 72internal override IReadOnlyList<SdkResolver> GetDefaultResolvers() => _defaultResolvers; 75internal override IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 84internal override IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 93protected internal override IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
42internal void InitializeForTests(SdkResolverLoader resolverLoader = null, IReadOnlyList<SdkResolver> resolvers = null)
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (9)
37internal virtual IReadOnlyList<SdkResolver> GetDefaultResolvers() 45internal virtual IReadOnlyList<SdkResolver> LoadAllResolvers(ElementLocation location) 53var potentialResolvers = FindPotentialSdkResolvers( 74internal virtual IReadOnlyList<SdkResolverManifest> GetResolversManifests(ElementLocation location) 77IReadOnlyList<SdkResolverManifest> allResolversManifests = null; 97internal virtual IReadOnlyList<string> FindPotentialSdkResolvers(string rootFolder, ElementLocation location) 99var manifestsList = FindPotentialSdkResolversManifests(rootFolder, location); 104internal virtual IReadOnlyList<SdkResolverManifest> FindPotentialSdkResolversManifests(string rootFolder, ElementLocation location) 281protected internal virtual IReadOnlyList<SdkResolver> LoadResolversFromManifest(SdkResolverManifest manifest, ElementLocation location)
BackEnd\Components\SdkResolution\SdkResolverService.cs (12)
46private Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>> _manifestToResolvers; 51protected IReadOnlyList<SdkResolverManifest> _specificResolversManifestsRegistry; 56protected IReadOnlyList<SdkResolverManifest> _generalResolversManifestsRegistry; 274private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 280IReadOnlyList<SdkResolver> newResolvers; 299IReadOnlyList<SdkResolver> resolvers, 405internal virtual IReadOnlyList<SdkResolverManifest> GetResolverManifests(ElementLocation location) => _sdkResolverLoader.GetResolversManifests(location); 412internal virtual void InitializeForTests(SdkResolverLoader resolverLoader = null, IReadOnlyList<SdkResolver> resolvers = null) 431_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 488IReadOnlyList<SdkResolverManifest> allResolversManifests = GetResolverManifests(location); 489_manifestToResolvers = new Dictionary<SdkResolverManifest, IReadOnlyList<SdkResolver>>(); 497IReadOnlyList<SdkResolver> defaultResolvers = _sdkResolverLoader.GetDefaultResolvers();
BuildCheck\API\Check.cs (1)
25public abstract IReadOnlyList<CheckRule> SupportedRules { get; }
BuildCheck\API\ConfigurationContext.cs (2)
28public IReadOnlyList<CustomConfigurationData> CustomConfigurationData { get; init; } 33public IReadOnlyList<CheckConfigurationEffective> CheckConfig { get; init; }
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\DoubleWritesCheck.cs (1)
30public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\ExecCliBuildCheck.cs (1)
50public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
36public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PreferProjectReferenceCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\PropertiesUsageCheck.cs (2)
32internal static readonly IReadOnlyList<CheckRule> SupportedRulesList = [_usedBeforeInitializedRule, _initializedAfterUsedRule, _unusedPropertyRule]; 36public override IReadOnlyList<CheckRule> SupportedRules => SupportedRulesList;
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
21public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\TargetFrameworkUnexpectedCheck.cs (1)
22public override IReadOnlyList<CheckRule> SupportedRules { get; } = [SupportedRule];
BuildCheck\Checks\UntrustedLocationCheck.cs (1)
29public override IReadOnlyList<CheckRule> SupportedRules { get; } = new List<CheckRule>() { SupportedRule };
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (2)
408var telemetryData = item.MaterializedCheck.GetRuleTelemetryData(); 516var telemetryData = checkFactoryContext.MaterializedCheck.GetRuleTelemetryData();
BuildCheck\Infrastructure\CheckWrapper.cs (3)
81IReadOnlyList<CheckConfigurationEffective> effectiveConfigs, 82IReadOnlyList<CheckConfiguration> editorConfigs) 184internal IReadOnlyList<BuildCheckRuleTelemetryData> GetRuleTelemetryData()
BuildCheck\Infrastructure\ConfigurationProvider.cs (3)
111IReadOnlyList<string> ruleIds) 122IReadOnlyList<string> ruleIds) 142private TConfig[] FillConfiguration<TConfig, TRule>(string projectFullPath, IReadOnlyList<TRule> ruleIds, Func<string, TRule, TConfig> configurationProvider)
BuildCheck\Infrastructure\IConfigurationProvider.cs (2)
13IReadOnlyList<string> ruleIds); 25IReadOnlyList<string> ruleIds);
Construction\Solution\ProjectInSolution.cs (2)
113private IReadOnlyList<string> _dependenciesAsReadonly; 230public IReadOnlyList<string> Dependencies => _dependenciesAsReadonly ?? (_dependenciesAsReadonly = _dependencies.AsReadOnly());
Construction\Solution\SolutionFile.cs (4)
209public IReadOnlyList<ProjectInSolution> ProjectsInOrder => _projectsInOrder.AsReadOnly(); 272public IReadOnlyList<SolutionConfigurationInSolution> SolutionConfigurations => _solutionConfigurationsByFullName.Values.ToList().AsReadOnly(); 460IReadOnlyList<string> buildTypes, 461IReadOnlyList<string> platforms)
Evaluation\Context\EvaluationContext.cs (3)
61private ConcurrentDictionary<string, IReadOnlyList<string>> FileEntryExpansionCache { get; } 64ConcurrentDictionary<string, IReadOnlyList<string>> fileEntryExpansionCache = null) 69FileEntryExpansionCache = fileEntryExpansionCache ?? new ConcurrentDictionary<string, IReadOnlyList<string>>();
Evaluation\ExpressionShredder.cs (1)
67internal static ItemsAndMetadataPair GetReferencedItemNamesAndMetadata(IReadOnlyList<string> expressions)
Graph\GraphBuilder.cs (1)
319IReadOnlyList<ProjectInSolution> projectsInSolution = Solution.ProjectsInOrder;
Instance\ProjectInstance.cs (2)
1256public IReadOnlyList<string> ImportPaths { get; private set; } 1261public IReadOnlyList<string> ImportPathsIncludingDuplicates { get; private set; }
Logging\BinaryLogger\BinaryLogger.cs (8)
303IReadOnlyList<string> IFileOutputLogger.OutputFilePaths 317public IReadOnlyList<string> AdditionalFilePaths { get; init; } 839public IReadOnlyList<string> DistinctParameterSets { get; } 850public IReadOnlyList<string> AdditionalFilePaths { get; } 855public IReadOnlyList<string> DuplicateFilePaths { get; } 865IReadOnlyList<string> distinctParameterSets, 867IReadOnlyList<string> additionalFilePaths, 868IReadOnlyList<string> duplicateFilePaths)
Logging\FileLogger.cs (1)
247System.Collections.Generic.IReadOnlyList<string> IFileOutputLogger.OutputFilePaths => new[] { FilePath };
Logging\IFileOutputLogger.cs (1)
23IReadOnlyList<string> OutputFilePaths { get; }
Logging\TerminalLogger\TerminalProjectInfo.cs (1)
126public IReadOnlyList<TerminalBuildMessage>? BuildMessages => _buildMessages;
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Extensions\IEnumerableExtensions.cs (5)
83public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 92return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 581IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 590IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 611public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
Microsoft.Build.Framework (26)
BuildCheck\BuildCheckTracingData.cs (1)
19public BuildCheckTracingData(IReadOnlyList<BuildCheckRuleTelemetryData> telemetryData, Dictionary<string, TimeSpan> infrastructureTracingData)
BuildCheck\EnumerableExtensions.cs (1)
113IReadOnlyList<TValue> another,
FileClassifier.cs (5)
96private volatile IReadOnlyList<string> _knownImmutableDirectoriesSnapshot = []; 101private volatile IReadOnlyList<string> _knownBuiltInLogicDirectoriesSnapshot = []; 103private IReadOnlyList<string> _nugetCacheLocations = []; 227private static bool IsInLocationList(string filePath, IReadOnlyList<string> locations) 399private static string? GetFirstMatchingLocationfromList(string filePath, IReadOnlyList<string> locations)
LoggersRegisteredEventArgs.cs (5)
21public RegisteredLoggerInfo(string loggerName, IReadOnlyList<string>? outputFilePaths = null, LoggerVerbosity? verbosity = null, string? parameters = null) 42public IReadOnlyList<string> OutputFilePaths { get; } 64public LoggersRegisteredEventArgs(IReadOnlyList<RegisteredLoggerInfo> loggers) 75private static string? FormatMessage(IReadOnlyList<RegisteredLoggerInfo> loggers) 93public IReadOnlyList<RegisteredLoggerInfo> Loggers { get; private set; } = Array.Empty<RegisteredLoggerInfo>();
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)
NuGetSdkResolver.cs (1)
213var results = restoreTask.Result;
RestoreRunnerEx.cs (2)
41public static Task<IReadOnlyList<RestoreResultPair>> RunWithoutCommit(LibraryIdentity libraryIdentity, ISettings settings, ILogger logger) 120var requests = requestProvider.CreateRequests(restoreArgs).Result;
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
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)
WriteCodeFragment.cs (2)
413IReadOnlyList<AttributeParameter> parameters, 493private Type[] FindPositionalParameterTypes(Type attributeType, IReadOnlyList<AttributeParameter> positionalParameters)
Microsoft.Build.Tasks.Git (2)
GitDataReader\CollectionExtensions.cs (1)
13this IReadOnlyList<TItem> array,
GitOperations.cs (1)
463internal static int BinarySearch<T, TValue>(IReadOnlyList<T> list, TValue value, Func<T, TValue, int> compare)
Microsoft.CodeAnalysis (117)
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
67public override IReadOnlyList<Location> AdditionalLocations => _originalDiagnostic.AdditionalLocations;
CommandLine\SarifV1ErrorLogger.cs (1)
91private void WriteLocations(Location location, IReadOnlyList<Location> additionalLocations)
CommandLine\SarifV2ErrorLogger.cs (1)
130private void WriteLocations(Location location, IReadOnlyList<Location> additionalLocations)
Diagnostic\Diagnostic.cs (2)
399public abstract IReadOnlyList<Location> AdditionalLocations { get; } 482internal virtual IReadOnlyList<object?> Arguments
Diagnostic\Diagnostic.DiagnosticWithProgrammaticSuppression.cs (2)
46internal override IReadOnlyList<object?> Arguments 76public override IReadOnlyList<Location> AdditionalLocations
Diagnostic\Diagnostic_SimpleDiagnostic.cs (3)
26private readonly IReadOnlyList<Location> _additionalLocations; 111internal override IReadOnlyList<object?> Arguments 136public override IReadOnlyList<Location> AdditionalLocations
Diagnostic\DiagnosticInfo.cs (1)
291public virtual IReadOnlyList<Location> AdditionalLocations
Diagnostic\DiagnosticWithInfo.cs (2)
38public override IReadOnlyList<Location> AdditionalLocations 104internal override IReadOnlyList<object?> Arguments
DiagnosticAnalyzer\CompilerDiagnosticAnalyzer.CompilationAnalyzer.cs (2)
92internal override IReadOnlyList<object?> Arguments => _original.Arguments; 98public override IReadOnlyList<Location> AdditionalLocations => _original.AdditionalLocations;
Emit\EditAndContinue\DeltaMetadataWriter.cs (15)
341protected override IReadOnlyList<IEventDefinition> GetEventDefs() 351protected override IReadOnlyList<IFieldDefinition> GetFieldDefs() 373protected override IReadOnlyList<ITypeDefinition> GetTypeDefs() 391protected override IReadOnlyList<IMethodDefinition> GetMethodDefs() 397protected override IReadOnlyList<IPropertyDefinition> GetPropertyDefs() 403protected override IReadOnlyList<IParameterDefinition> GetParameterDefs() 406protected override IReadOnlyList<IGenericParameter> GetGenericParameters() 435protected override IReadOnlyList<AssemblyIdentity> GetAssemblyRefs() 445protected override IReadOnlyList<string> GetModuleRefs() 455protected override IReadOnlyList<ITypeMemberReference> GetMemberRefs() 465protected override IReadOnlyList<IGenericMethodInstanceReference> GetMethodSpecs() 485protected override IReadOnlyList<ITypeReference> GetTypeRefs() 495protected override IReadOnlyList<ITypeReference> GetTypeSpecs() 505protected override IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles() 1547public IReadOnlyList<T> GetRows()
InternalUtilities\IReadOnlyListExtensions.cs (1)
11public static bool Contains<T>(this IReadOnlyList<T> list, T item, IEqualityComparer<T>? comparer = null)
PEWriter\FullMetadataWriter.cs (15)
146protected override IReadOnlyList<ITypeDefinition> GetTypeDefs() 156protected override IReadOnlyList<IEventDefinition> GetEventDefs() 166protected override IReadOnlyList<IFieldDefinition> GetFieldDefs() 189protected override IReadOnlyList<IMethodDefinition> GetMethodDefs() 199protected override IReadOnlyList<IPropertyDefinition> GetPropertyDefs() 209protected override IReadOnlyList<IParameterDefinition> GetParameterDefs() 214protected override IReadOnlyList<IGenericParameter> GetGenericParameters() 239protected override IReadOnlyList<AssemblyIdentity> GetAssemblyRefs() 249protected override IReadOnlyList<string> GetModuleRefs() 259protected override IReadOnlyList<ITypeMemberReference> GetMemberRefs() 269protected override IReadOnlyList<IGenericMethodInstanceReference> GetMethodSpecs() 289protected override IReadOnlyList<ITypeReference> GetTypeRefs() 299protected override IReadOnlyList<ITypeReference> GetTypeSpecs() 309protected override IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles() 455public IReadOnlyList<T> Rows
PEWriter\MetadataWriter.cs (33)
187protected abstract IReadOnlyList<ITypeDefinition> GetTypeDefs(); 198protected abstract IReadOnlyList<IEventDefinition> GetEventDefs(); 209protected abstract IReadOnlyList<IFieldDefinition> GetFieldDefs(); 233protected abstract IReadOnlyList<IMethodDefinition> GetMethodDefs(); 244protected abstract IReadOnlyList<IPropertyDefinition> GetPropertyDefs(); 255protected abstract IReadOnlyList<IParameterDefinition> GetParameterDefs(); 261protected abstract IReadOnlyList<IGenericParameter> GetGenericParameters(); 289protected abstract IReadOnlyList<AssemblyIdentity> GetAssemblyRefs(); 312protected abstract IReadOnlyList<string> GetModuleRefs(); 325protected abstract IReadOnlyList<ITypeMemberReference> GetMemberRefs(); 338protected abstract IReadOnlyList<IGenericMethodInstanceReference> GetMethodSpecs(); 363protected abstract IReadOnlyList<ITypeReference> GetTypeRefs(); 376protected abstract IReadOnlyList<ITypeReference> GetTypeSpecs(); 389protected abstract IReadOnlyList<BlobHandle> GetStandaloneSignatureBlobHandles(); 1971var assemblyRefs = this.GetAssemblyRefs(); 2023var typeDefs = GetTypeDefs(); 2216var eventDefs = this.GetEventDefs(); 2384var fieldDefs = this.GetFieldDefs(); 2603var memberRefs = this.GetMemberRefs(); 2642var methodSpecs = this.GetMethodSpecs(); 2655var methodDefs = this.GetMethodDefs(); 2675var propertyDefs = this.GetPropertyDefs(); 2676var eventDefs = this.GetEventDefs(); 2752var moduleRefs = this.GetModuleRefs(); 2792var parameterDefs = this.GetParameterDefs(); 2806var propertyDefs = this.GetPropertyDefs(); 2820var typeDefs = this.GetTypeDefs(); 2877var typeRefs = this.GetTypeRefs(); 2937var typeSpecs = this.GetTypeSpecs(); 2948var signatures = GetStandaloneSignatureBlobHandles(); 2959var methods = this.GetMethodDefs(); 2991var methods = this.GetMethodDefs(); 4272public IReadOnlyList<T> Rows
PEWriter\RootModuleType.cs (1)
23private IReadOnlyList<IMethodDefinition>? _methods;
ReferenceManager\CommonReferenceManager.Binding.cs (1)
969private static bool CheckCircularReference(IReadOnlyList<AssemblyReferenceBinding[]> referenceBindings)
SourceGeneration\Nodes\NodeStateTable.cs (2)
502public IReadOnlyList<IncrementalGeneratorRunStep> Steps => (IReadOnlyList<IncrementalGeneratorRunStep>?)_steps ?? ImmutableArray<IncrementalGeneratorRunStep>.Empty;
SpecialType.cs (1)
176/// Indicates that the type is <see cref="IReadOnlyList{T}"/>.
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
Syntax\GreenNode.cs (2)
925IReadOnlyList<TFrom> l => CreateList(l, select), 951public static GreenNode? CreateList<TFrom>(IReadOnlyList<TFrom> list, Func<TFrom, GreenNode> select)
Syntax\SyntaxNodeExtensions_Tracking.cs (5)
124private static IReadOnlyList<SyntaxNode> GetCurrentNodeFromTrueRoots(SyntaxNode trueRoot, SyntaxNode node) 196private readonly ImmutableSegmentedDictionary<SyntaxAnnotation, IReadOnlyList<SyntaxNode>> _idToNodeMap; 220_idToNodeMap = map.ToImmutableSegmentedDictionary(kv => kv.Key, kv => (IReadOnlyList<SyntaxNode>)ImmutableArray.CreateRange(kv.Value)); 223public IReadOnlyList<SyntaxNode> GetNodes(SyntaxAnnotation id) 225IReadOnlyList<SyntaxNode>? nodes;
Text\ChangedText.cs (4)
169public override IReadOnlyList<TextChangeRange> GetChangeRanges(SourceText oldText) 192var changes = GetChangesBetween(oldText, this); 223private static IReadOnlyList<ImmutableArray<TextChangeRange>> GetChangesBetween(SourceText oldText, ChangedText newText) 252private static ImmutableArray<TextChangeRange> Merge(IReadOnlyList<ImmutableArray<TextChangeRange>> changeSets)
Text\CompositeText.cs (1)
369private static void ComputeLengthAndStorageSize(IReadOnlyList<SourceText> segments, out int length, out int size)
Text\SourceText.cs (2)
896public virtual IReadOnlyList<TextChangeRange> GetChangeRanges(SourceText oldText) 918public virtual IReadOnlyList<TextChange> GetTextChanges(SourceText oldText)
Text\TextChange.cs (1)
98public static IReadOnlyList<TextChange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChange>();
Text\TextChangeEventArgs.cs (1)
60public IReadOnlyList<TextChangeRange> Changes { get; }
Text\TextChangeRange.cs (1)
94public static IReadOnlyList<TextChangeRange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChangeRange>();
Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
Microsoft.CodeAnalysis.Analyzers (52)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
28var existingParameters = generator.GetParameters(declaration); 152IReadOnlyList<SyntaxNode> parameters, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
32public IReadOnlyList<SyntaxNode> OutermostBlockStatements { get; private set; } 33public IReadOnlyList<SyntaxNode> InnermostBlockStatements { get; private set; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
75var textChanges = Text.GetTextChanges(oldDocument.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\ILayeredServiceMetadata.cs (1)
11IReadOnlyList<string> WorkspaceKinds { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
28public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
17public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
Microsoft.CodeAnalysis.AnalyzerUtilities (46)
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\ConstructorMapper.cs (3)
30IReadOnlyList<ValueContentAbstractValue> argumentValueContentAbstractValues, 31IReadOnlyList<PointsToAbstractValue> argumentPointsToAbstractValues); 41IReadOnlyList<PointsToAbstractValue> argumentPointsToAbstractValues);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAbstractValue.cs (1)
68private static bool TryGetPooledInstance(IReadOnlyList<PropertySetAbstractValueKind> values, [NotNullWhen(returnValue: true)] out PropertySetAbstractValue? instance)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
Microsoft.CodeAnalysis.CodeStyle (43)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
136where T : IReadOnlyList<SyntaxTrivia>
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
119var existingParameters = generator.GetParameters(methodNode);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
157var statements = generator.GetStatements(node);
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
397var locations = diagnostic.AdditionalLocations;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
28var existingParameters = generator.GetParameters(declaration); 152IReadOnlyList<SyntaxNode> parameters, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
32public IReadOnlyList<SyntaxNode> OutermostBlockStatements { get; private set; } 33public IReadOnlyList<SyntaxNode> InnermostBlockStatements { get; private set; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
75var textChanges = Text.GetTextChanges(oldDocument.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\ILayeredServiceMetadata.cs (1)
11IReadOnlyList<string> WorkspaceKinds { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
28public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
17public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
Microsoft.CodeAnalysis.CSharp (9)
Binder\Semantics\Conversions\CollectionExpressionTypeKind.cs (1)
22/// <item><see cref="IReadOnlyList{T}"/></item>
Errors\CSDiagnosticInfo.cs (2)
21private readonly IReadOnlyList<Location> _additionalLocations; 56public override IReadOnlyList<Location> AdditionalLocations => _additionalLocations;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
92private BoundExpression MakeUtf8Span(BoundExpression node, IReadOnlyList<byte>? bytes) 140private BoundArrayCreation MakeUnderlyingArrayForUtf8Span(SyntaxNode syntax, ArrayTypeSymbol byteArray, IReadOnlyList<byte> bytes, out int length)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
467void assignIndexedNames(IReadOnlyList<AnonymousTypeOrDelegateTemplateSymbol> templates, int nextIndex, bool isDelegate)
Syntax\CSharpSyntaxTree.cs (3)
540var changes = newText.GetChangeRanges(oldText); 554private SyntaxTree WithChanges(SourceText newText, IReadOnlyList<TextChangeRange> changes) 561IReadOnlyList<TextChangeRange>? workingChanges = changes;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
260var blockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(parentBlock);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
55nameof(IReadOnlyList<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (3)
182var statements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(parentBlockLike); 190IReadOnlyList<StatementSyntax> parentStatements, int index, UsingStatementSyntax innermostUsing) 227IReadOnlyList<StatementSyntax> statements,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
36public override IReadOnlyList<StatementSyntax> GetExecutableBlockStatements(SyntaxNode? node) 53public override IReadOnlyList<StatementSyntax> GetStatementContainerStatements(SyntaxNode? node)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
119var statements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(block);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
67var additionalNodes = diagnostic.AdditionalLocations;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (3)
65var originalBlockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(originalBlockLike); 66var currentBlockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(currentBlockLike); 85public static int IndexOf<T>(IReadOnlyList<T> list, Func<T, bool> predicate)
Microsoft.CodeAnalysis.CSharp.Features (15)
AddImport\CSharpAddImportFeatureService.cs (3)
300protected override string GetDescription(IReadOnlyList<string> nameParts) 402SyntaxNode contextNode, IReadOnlyList<string> namespaceParts, 419private static NameSyntax CreateNameSyntax(IReadOnlyList<string> namespaceParts, int index)
ExtractInterface\CSharpExtractInterfaceService.cs (1)
67Solution unformattedSolution, IReadOnlyList<DocumentId> documentIds,
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
260var blockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(parentBlock);
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
55nameof(IReadOnlyList<>),
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (3)
182var statements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(parentBlockLike); 190IReadOnlyList<StatementSyntax> parentStatements, int index, UsingStatementSyntax innermostUsing) 227IReadOnlyList<StatementSyntax> statements,
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
119var statements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(block);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (1)
67var additionalNodes = diagnostic.AdditionalLocations;
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (3)
65var originalBlockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(originalBlockLike); 66var currentBlockStatements = CSharpBlockFacts.Instance.GetExecutableBlockStatements(currentBlockLike); 85public static int IndexOf<T>(IReadOnlyList<T> list, Func<T, bool> predicate)
Wrapping\SeparatedSyntaxList\CSharpParameterWrapper.cs (1)
58var attributes = generator.GetAttributes(declaration);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\InteropServices\CSharpSpecifyMarshalingForPInvokeStringArguments.Fixer.cs (1)
25protected override SyntaxNode FindNamedArgument(IReadOnlyList<SyntaxNode> arguments, string argumentName)
Microsoft.CodeAnalysis.CSharp.Workspaces (24)
CodeGeneration\CSharpSyntaxGenerator.cs (22)
992private static readonly ConditionalWeakTable<SyntaxNode, IReadOnlyList<SyntaxNode>> s_declAttributes = new(); 994public override IReadOnlyList<SyntaxNode> GetAttributes(SyntaxNode declaration) 996if (!s_declAttributes.TryGetValue(declaration, out var attrs)) 1005private static readonly ConditionalWeakTable<SyntaxNode, IReadOnlyList<SyntaxNode>> s_declReturnAttributes = new(); 1007public override IReadOnlyList<SyntaxNode> GetReturnAttributes(SyntaxNode declaration) 1009if (!s_declReturnAttributes.TryGetValue(declaration, out var attrs)) 1028var existingAttributes = this.GetAttributes(declaration); 1063var existingAttributes = this.GetReturnAttributes(d); 1101public override IReadOnlyList<SyntaxNode> GetAttributeArguments(SyntaxNode attributeDeclaration) 1221public override IReadOnlyList<SyntaxNode> GetNamespaceImports(SyntaxNode declaration) 1248public override IReadOnlyList<SyntaxNode> GetMembers(SyntaxNode declaration) 1345var existingMembers = this.GetMembers(declaration); 2289public override IReadOnlyList<SyntaxNode> GetParameters(SyntaxNode declaration) 2312public override IReadOnlyList<SyntaxNode> GetSwitchSections(SyntaxNode switchStatement) 2620public override IReadOnlyList<SyntaxNode> GetStatements(SyntaxNode declaration) 2667public override IReadOnlyList<SyntaxNode> GetAccessors(SyntaxNode declaration) 2771public override IReadOnlyList<SyntaxNode> GetGetAccessorStatements(SyntaxNode declaration) 2777public override IReadOnlyList<SyntaxNode> GetSetAccessorStatements(SyntaxNode declaration) 2803public override IReadOnlyList<SyntaxNode> GetBaseAndInterfaceTypes(SyntaxNode declaration) 3036var subDecls = GetSubDeclarations(fullDecl); 3075var subDecls = GetSubDeclarations(fullDecl); 3103private static IReadOnlyList<SyntaxNode> GetSubDeclarations(SyntaxNode declaration)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
36public override IReadOnlyList<StatementSyntax> GetExecutableBlockStatements(SyntaxNode? node) 53public override IReadOnlyList<StatementSyntax> GetStatementContainerStatements(SyntaxNode? node)
Microsoft.CodeAnalysis.Extensions.Package (19)
Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
Microsoft.CodeAnalysis.ExternalAccess.HotReload (1)
Api\HotReloadMSBuildWorkspace.cs (1)
135ImmutableArray<DocumentInfo> MapDocuments(ProjectId mappedProjectId, IReadOnlyList<DocumentInfo> documents)
Microsoft.CodeAnalysis.Features (84)
AddImport\AbstractAddImportFeatureService.cs (2)
57protected abstract Task<Document> AddImportAsync(SyntaxNode contextNode, IReadOnlyList<string> nameSpaceParts, Document document, AddImportPlacementOptions options, CancellationToken cancellationToken); 62protected abstract string GetDescription(IReadOnlyList<string> nameParts);
AddImport\SymbolResult.cs (2)
15private readonly struct SearchResult(string? desiredName, TSimpleNameSyntax nameNode, IReadOnlyList<string> nameParts, double weight) 17public readonly IReadOnlyList<string> NameParts = nameParts;
CodeFixes\Service\CodeFixService.cs (1)
45private readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, ImmutableDictionary<DiagnosticId, ImmutableArray<CodeFixProvider>>> _projectFixersMap = new();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
553IReadOnlyList<LocationForAffectedSymbol> refLocations,
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
166var folders = document.Folders;
Common\AbstractProjectExtensionProvider.cs (5)
25private static readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, StrongBox<ImmutableArray<TExtension>>> s_referencesToExtensionsMap = new(); 35public static bool TryGetCachedExtensions(IReadOnlyList<AnalyzerReference> analyzerReferences, out ImmutableArray<TExtension> extensions) 55public static ImmutableArray<TExtension> GetExtensions(string language, IReadOnlyList<AnalyzerReference> analyzerReferences) 62static ImmutableArray<TExtension> GetExtensionsSlow(string language, IReadOnlyList<AnalyzerReference> analyzerReferences) 65static ImmutableArray<TExtension> ComputeExtensions(string language, IReadOnlyList<AnalyzerReference> analyzerReferences)
Completion\CommonCompletionService.cs (1)
45IReadOnlyList<MatchResult> matchResults,
Completion\CompletionContext.cs (1)
160internal IReadOnlyList<CompletionItem> Items => _items;
Completion\CompletionList.cs (6)
33public IReadOnlyList<CompletionItem> ItemsList { get; } 76IReadOnlyList<CompletionItem> itemsList, 113IReadOnlyList<CompletionItem> itemsList, 123Optional<IReadOnlyList<CompletionItem>> itemsList = default, 128var newItemsList = itemsList.HasValue ? itemsList.Value : ItemsList; 166internal CompletionList WithItemsList(IReadOnlyList<CompletionItem> itemsList)
Completion\CompletionService.cs (2)
301IReadOnlyList<MatchResult> matchResults, 320IReadOnlyList<MatchResult> matchResults,
Completion\CompletionService.ProviderManager.cs (7)
31private IReadOnlyList<Lazy<CompletionProvider, CompletionProviderMetadata>>? _lazyImportedProviders; 34private readonly AsyncBatchingWorkQueue<IReadOnlyList<AnalyzerReference>> _projectProvidersWorkQueue; 42_projectProvidersWorkQueue = new AsyncBatchingWorkQueue<IReadOnlyList<AnalyzerReference>>( 45EqualityComparer<IReadOnlyList<AnalyzerReference>>.Default, 66private IReadOnlyList<Lazy<CompletionProvider, CompletionProviderMetadata>> GetLazyImportedProviders() 84private ValueTask ProcessBatchAsync(ImmutableSegmentedList<IReadOnlyList<AnalyzerReference>> referencesList, CancellationToken cancellationToken) 86foreach (var references in referencesList)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
38[typeof(IList<>).FullName!, typeof(IReadOnlyList<>).FullName!, typeof(IList).FullName!];
Diagnostics\Service\DiagnosticAnalyzerService.cs (2)
73private ImmutableDictionary<(ProjectId projectId, IReadOnlyList<AnalyzerReference> analyzerReferences), ProjectAnalyzerInfo> _projectAnalyzerStateMap = ImmutableDictionary<(ProjectId projectId, IReadOnlyList<AnalyzerReference> analyzerReferences), ProjectAnalyzerInfo>.Empty;
Diagnostics\Service\DiagnosticAnalyzerService.HostAnalyzerInfo.cs (1)
219string Language, bool HasSdkCodeStyleAnalyzers, IReadOnlyList<AnalyzerReference> AnalyzerReferences);
Diagnostics\Service\DiagnosticAnalyzerService.ProjectStates.cs (2)
23public readonly IReadOnlyList<AnalyzerReference> AnalyzerReferences; 30IReadOnlyList<AnalyzerReference> analyzerReferences,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
1660IReadOnlyList<ActiveNode> memberBodyActiveNodes, 2698IReadOnlyList<(SyntaxNode OldNode, SyntaxNode NewNode, TextSpan DiagnosticSpan)> triviaEdits,
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (1)
35IReadOnlyList<(Document? oldDocument, Document? newDocument)> documents,
EditAndContinue\EditSession.cs (2)
864IReadOnlyList<SemanticEditInfo> edits, 993IReadOnlyList<SemanticEditInfo> edits,
ExternalAccess\Pythia\Api\PythiaCompletionProviderBase.cs (1)
36IReadOnlyList<ISymbol> symbols,
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIncrementalAnalyzerProviderMetadata.cs (3)
9internal sealed class UnitTestingIncrementalAnalyzerProviderMetadata(string name, IReadOnlyList<string> workspaceKinds) 12public IReadOnlyList<string> WorkspaceKinds { get; } = workspaceKinds; 16workspaceKinds: (IReadOnlyList<string>)data[nameof(WorkspaceKinds)])
ExternalAccess\UnitTesting\UnitTestingFeaturesReferencesService.cs (1)
23Task<TResult> InvokeAsync<TResult>(string targetName, IReadOnlyList<object?> arguments, CancellationToken cancellationToken);
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (2)
31IReadOnlyList<MatchResult> matchResults, 38IReadOnlyList<MatchResult> matchResults,
ExtractInterface\AbstractExtractInterfaceService.cs (1)
37IReadOnlyList<DocumentId> documentId,
FullyQualify\AbstractFullyQualifyService.SymbolResult.cs (1)
19public readonly IReadOnlyList<string> NameParts;
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
410var folders = generateTypeOptionsResult.ExistingDocument.Folders;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
193var parameterNodes = (IReadOnlyList<TParameterSyntax>)generator.GetParameters(functionDeclaration); 223private static (TParameterSyntax?, IParameterSymbol?) GetParameterAtOrdinal(int index, IReadOnlyList<TParameterSyntax> parameterNodes, SemanticModel semanticModel, CancellationToken cancellationToken)
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
71var parameterNodes = generator.GetParameters(functionDeclaration);
NavigateTo\RoslynNavigateToItem.cs (5)
104private readonly (DocumentId id, IReadOnlyList<string> folders)? _activeDocument; 245var activeFolders = activeDocument.folders; 246var itemFolders = _itemDocument.Folders; 261var activeFolders = activeDocument.folders; 262var itemFolders = _itemDocument.Folders;
Navigation\INavigableItem.cs (1)
51sealed record NavigableDocument(NavigableProject Project, string Name, string? FilePath, IReadOnlyList<string> Folders, DocumentId Id, SourceGeneratedDocumentIdentity? SourceGeneratedDocumentIdentity, Workspace? Workspace)
PdbSourceDocument\SourceLinkMap.cs (1)
55public IReadOnlyList<Entry> Entries => _entries;
RemoveUnusedVariable\AbstractRemoveUnusedVariableCodeFixProvider.cs (1)
141var siblings = blockFacts.GetExecutableBlockStatements(statementParent);
SplitOrMergeIfStatements\AbstractMergeIfStatementsCodeRefactoringProvider.cs (4)
87protected static IReadOnlyList<SyntaxNode> WalkDownScopeBlocks( 89IReadOnlyList<SyntaxNode> statements) 100protected static IReadOnlyList<SyntaxNode> WalkUpScopeBlocks( 102IReadOnlyList<SyntaxNode> statements)
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (5)
203if (!ContainEquivalentStatements(syntaxFacts, blockFacts, firstStatement, secondStatement, out var insideStatements)) 236var blockStatements = blockFacts.GetExecutableBlockStatements(ifOrElseIf.Parent); 251out IReadOnlyList<SyntaxNode> statements) 253var statements1 = WalkDownScopeBlocks(blockFacts, blockFacts.GetStatementContainerStatements(ifStatement1)); 254var statements2 = WalkDownScopeBlocks(blockFacts, blockFacts.GetStatementContainerStatements(ifStatement2));
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
135var insideStatements = blockFacts.GetStatementContainerStatements(ifOrElseIf);
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (8)
101var statements = blockFacts.GetStatementContainerStatements(statement.Parent); 104var rootStatements = WalkUpScopeBlocks(blockFacts, statements); 130var rootStatements = blockFacts.GetStatementContainerStatements(ifOrElseIf); 132var statements = WalkDownScopeBlocks(blockFacts, rootStatements); 175var statements = blockFacts.GetStatementContainerStatements(innerIfStatement.Parent); 210var outerStatements = blockFacts.GetStatementContainerStatements(container); 256var statements1 = WalkDownScopeBlocks(blockFacts, blockFacts.GetStatementContainerStatements(elseIfOrElseClause1)); 257var statements2 = WalkDownScopeBlocks(blockFacts, blockFacts.GetStatementContainerStatements(elseIfOrElseClause2));
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
136where T : IReadOnlyList<SyntaxTrivia>
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
119var existingParameters = generator.GetParameters(methodNode);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
157var statements = generator.GetStatements(node);
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
397var locations = diagnostic.AdditionalLocations;
Microsoft.CodeAnalysis.Razor.Compiler (19)
CSharp\DefaultMetadataReferenceFeature.cs (1)
13public IReadOnlyList<MetadataReference> References { get; set; }
CSharp\IMetadataReferenceFeature.cs (1)
13IReadOnlyList<MetadataReference> References { get; }
Language\Components\ComponentGenericTypePass.cs (5)
128if (attribute != null && TryFindGenericTypeNames(attribute.BoundAttribute, attribute.GloballyQualifiedTypeName, out var typeParameters)) 235if (TryFindGenericTypeNames(attribute.BoundAttribute, globallyQualifiedTypeName: null, out var typeParameters)) 264private bool TryFindGenericTypeNames(BoundAttributeDescriptor? boundAttribute, string? globallyQualifiedTypeName, [NotNullWhen(true)] out IReadOnlyList<string>? typeParameters) 358var typeParameters = ParseTypeParameters(attribute.TypeName); 477public IReadOnlyList<string> ParseTypeParameters(string typeName)
Language\Components\ComponentLoweringPass.cs (1)
89static TagHelperDescriptor GetTagHelperOrAddDiagnostic(TagHelperIntermediateNode node, IReadOnlyList<UsingDirectiveIntermediateNode> usings)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (3)
51var importedUsings = !imports.IsEmpty 193private static IReadOnlyList<UsingReference> ImportDirectives( 329public IReadOnlyList<UsingReference> Usings => _usings;
Language\DirectiveDescriptor.cs (2)
51public abstract IReadOnlyList<DirectiveTokenDescriptor> Tokens { get; } 262public override IReadOnlyList<DirectiveTokenDescriptor> Tokens { get; }
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
280where TList : struct, IReadOnlyList<SyntaxToken>
Language\Syntax\SpecializedCollections.cs (1)
34public static IReadOnlyList<T> EmptyReadOnlyList<T>()
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (2)
91var methods = GetInvokeMethods(type); 154private static IReadOnlyList<IMethodSymbol> GetInvokeMethods(INamedTypeSymbol type)
Mvc\ViewComponentTagHelperDescriptorFactory.cs (2)
91var methods = GetInvokeMethods(type); 154private static IReadOnlyList<IMethodSymbol> GetInvokeMethods(INamedTypeSymbol type)
Microsoft.CodeAnalysis.ResxSourceGenerator (43)
AbstractResxGenerator.cs (1)
866private readonly IReadOnlyList<string> _arguments;
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
Microsoft.CodeAnalysis.Workspaces (199)
Diagnostics\HostDiagnosticAnalyzers.cs (5)
55private readonly ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, StrongBox<ImmutableDictionary<string, SkippedHostAnalyzersInfo>>> _skippedHostAnalyzers = new(); 57internal HostDiagnosticAnalyzers(IReadOnlyList<AnalyzerReference> hostAnalyzerReferences) 70public IReadOnlyList<AnalyzerReference> HostAnalyzerReferences { get; } 174public ImmutableDictionary<object, ImmutableArray<DiagnosticAnalyzer>> CreateProjectDiagnosticAnalyzersPerReference(IReadOnlyList<AnalyzerReference> projectAnalyzerReferences, string language) 191private ImmutableDictionary<object, AnalyzerReference> CreateProjectAnalyzerReferencesMap(IReadOnlyList<AnalyzerReference> projectAnalyzerReferences)
Diagnostics\SkippedHostAnalyzersInfo.cs (1)
49IReadOnlyList<AnalyzerReference> projectAnalyzerReferences,
Differencing\MapBasedLongestCommonSubsequence.cs (5)
9internal sealed class MapBasedLongestCommonSubsequence<TNode>(IReadOnlyDictionary<TNode, TNode> map) : LongestCommonSubsequence<IReadOnlyList<TNode>> 12protected override bool ItemsEqual(IReadOnlyList<TNode> oldSequence, int oldIndex, IReadOnlyList<TNode> newSequence, int newIndex) 15internal IEnumerable<Edit<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes, TreeComparer<TNode>? treeComparer = null)
Differencing\Match.cs (4)
381var oldList = (oldNodes as IReadOnlyList<TNode>) ?? oldNodes.ToList(); 382var newList = (newNodes as IReadOnlyList<TNode>) ?? newNodes.ToList();
Differencing\Match.LongestCommonSubsequence.cs (7)
14internal sealed class LongestCommonSubsequence : LongestCommonSubsequence<IReadOnlyList<TNode>> 24protected override bool ItemsEqual(IReadOnlyList<TNode> oldSequence, int oldIndex, IReadOnlyList<TNode> newSequence, int newIndex) 27internal Dictionary<TNode, TNode> GetMatchingNodes(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes) 39internal IEnumerable<Edit<TNode>> GetEdits(IReadOnlyList<TNode> oldNodes, IReadOnlyList<TNode> newNodes)
Editing\SymbolEditor.cs (1)
183public async Task<IReadOnlyList<SyntaxNode>> GetCurrentDeclarationsAsync(ISymbol symbol, CancellationToken cancellationToken = default)
Editing\SymbolEditorExtensions.cs (1)
36var currentDecls = await editor.GetCurrentDeclarationsAsync(symbol, cancellationToken).ConfigureAwait(false);
Editing\SyntaxGenerator.cs (14)
1077var args = attribute.ConstructorArguments.Select(a => this.AttributeArgument(this.TypedConstantExpression(a))) 1141public abstract IReadOnlyList<SyntaxNode> GetAttributes(SyntaxNode declaration); 1169public abstract IReadOnlyList<SyntaxNode> GetReturnAttributes(SyntaxNode declaration); 1197public abstract IReadOnlyList<SyntaxNode> GetAttributeArguments(SyntaxNode attributeDeclaration); 1213public abstract IReadOnlyList<SyntaxNode> GetNamespaceImports(SyntaxNode declaration); 1241public abstract IReadOnlyList<SyntaxNode> GetMembers(SyntaxNode declaration); 1318public abstract IReadOnlyList<SyntaxNode> GetParameters(SyntaxNode declaration); 1336public abstract IReadOnlyList<SyntaxNode> GetSwitchSections(SyntaxNode switchStatement); 1362public abstract IReadOnlyList<SyntaxNode> GetStatements(SyntaxNode declaration); 1372public abstract IReadOnlyList<SyntaxNode> GetAccessors(SyntaxNode declaration); 1394public abstract IReadOnlyList<SyntaxNode> GetGetAccessorStatements(SyntaxNode declaration); 1404public abstract IReadOnlyList<SyntaxNode> GetSetAccessorStatements(SyntaxNode declaration); 1414public abstract IReadOnlyList<SyntaxNode> GetBaseAndInterfaceTypes(SyntaxNode declaration); 1571protected int IndexOf<T>(IReadOnlyList<T> list, T element)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (1)
172public static NavigateToSearchInfo Create(IReadOnlyList<DeclaredSymbolInfo> infos)
Rename\Renamer.cs (2)
71IReadOnlyList<string>? newDocumentFolders = null, 101IReadOnlyList<string>? newDocumentFolders = null,
Rename\Renamer.SyncNamespaceDocumentAction.cs (1)
50public static SyncNamespaceDocumentAction? TryCreate(Document document, IReadOnlyList<string> newFolders)
Serialization\ISupportTemporaryStorage.cs (1)
17IReadOnlyList<ITemporaryStorageStreamHandle>? StorageHandles { get; }
Serialization\SerializedPortableExecutableReference.cs (1)
25public IReadOnlyList<ITemporaryStorageStreamHandle> StorageHandles => _storageHandles;
Serialization\SerializerService_Reference.cs (2)
368IReadOnlyList<ITemporaryStorageStreamHandle> handles, 604public static void AddAnalyzerImageReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Shared\Extensions\SourceTextExtensions.cs (1)
64var ranges = newText.GetChangeRanges(oldText);
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
28var existingParameters = generator.GetParameters(declaration); 152IReadOnlyList<SyntaxNode> parameters, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
32public IReadOnlyList<SyntaxNode> OutermostBlockStatements { get; private set; } 33public IReadOnlyList<SyntaxNode> InnermostBlockStatements { get; private set; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
75var textChanges = Text.GetTextChanges(oldDocument.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\ILayeredServiceMetadata.cs (1)
11IReadOnlyList<string> WorkspaceKinds { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
28public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
17public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
Workspace\Host\EventListener\EventListenerMetadata.cs (2)
15public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[nameof(ExportEventListenerAttribute.WorkspaceKinds)];
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (1)
44internal IReadOnlyList<string> WorkspaceKinds { get; } = [];
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (1)
44internal IReadOnlyList<string> WorkspaceKinds { get; } = [];
Workspace\Host\Mef\ExportWorkspaceServiceAttribute.cs (1)
38internal IReadOnlyList<string> WorkspaceKinds { get; } = [];
Workspace\Host\Mef\ExportWorkspaceServiceFactoryAttribute.cs (1)
38internal IReadOnlyList<string> WorkspaceKinds { get; } = [];
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (1)
88/// Stored as an <see cref="IReadOnlyList{T}"/> so this can safely be used as a key in caches that map from a list
Workspace\ProjectSystem\ProjectSystemProject.cs (4)
1324public IReadOnlyList<ProjectReference> GetProjectReferences() 1329var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1393IReadOnlyList<MetadataReference>? remainingMetadataReferences = null; 1394IReadOnlyList<AnalyzerReference>? remainingAnalyzerReferences = null;
Workspace\Solution\ChecksumCollection.cs (1)
90IReadOnlyList<T> values,
Workspace\Solution\DocumentInfo.cs (5)
36public IReadOnlyList<string> Folders => Attributes.Folders; 151IReadOnlyList<string> folders, 172public IReadOnlyList<string> Folders { get; } = folders; 198IReadOnlyList<string>? folders = null, 206var newFolders = folders ?? Folders;
Workspace\Solution\Project.cs (6)
131public IReadOnlyList<MetadataReference> MetadataReferences => State.MetadataReferences; 142public IReadOnlyList<ProjectReference> AllProjectReferences => State.ProjectReferences; 147public IReadOnlyList<AnalyzerReference> AnalyzerReferences => State.AnalyzerReferences; 182public IReadOnlyList<DocumentId> DocumentIds => State.DocumentStates.Ids; 187public IReadOnlyList<DocumentId> AdditionalDocumentIds => State.AdditionalDocumentStates.Ids; 192internal IReadOnlyList<DocumentId> AnalyzerConfigDocumentIds => State.AnalyzerConfigDocumentStates.Ids;
Workspace\Solution\ProjectDependencyGraph.cs (1)
135internal ProjectDependencyGraph WithProjectReferences(ProjectId projectId, IReadOnlyList<ProjectReference> projectReferences)
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (4)
61IReadOnlyList<ProjectId> referencedProjectIds) 81IReadOnlyList<ProjectId> referencedProjectIds) 102IReadOnlyList<ProjectId> referencedProjectIds) 158IReadOnlyList<ProjectId> referencedProjectIds)
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\ProjectState.cs (6)
671public IReadOnlyList<MetadataReference> MetadataReferences => this.ProjectInfo.MetadataReferences; 674public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.ProjectInfo.AnalyzerReferences; 677public IReadOnlyList<ProjectReference> ProjectReferences => this.ProjectInfo.ProjectReferences; 836public ProjectState WithProjectReferences(IReadOnlyList<ProjectReference> projectReferences) 846public ProjectState WithMetadataReferences(IReadOnlyList<MetadataReference> metadataReferences) 856public ProjectState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
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;
Workspace\Solution\SolutionCompilationState.cs (5)
632void UpdateDocuments<TDocumentState>(IReadOnlyList<DocumentInfo> newDocumentInfos) 698ProjectId projectId, IReadOnlyList<ProjectReference> projectReferences) 727ProjectId projectId, IReadOnlyList<MetadataReference> metadataReferences) 751public SolutionCompilationState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences) 761ProjectId projectId, IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
25using AnalyzerReferenceMap = ConditionalWeakTable<IReadOnlyList<AnalyzerReference>, AsyncLazy<SourceGeneratorPresence>>;
Workspace\Solution\SolutionInfo.cs (4)
39public IReadOnlyList<ProjectInfo> Projects { get; } 44public IReadOnlyList<AnalyzerReference> AnalyzerReferences { get; } 54IReadOnlyList<ProjectInfo> projects, 55IReadOnlyList<AnalyzerReference> analyzerReferences,
Workspace\Solution\SolutionState.cs (15)
52public IReadOnlyList<AnalyzerReference> AnalyzerReferences { get; } 80IReadOnlyList<ProjectId> projectIds, 82IReadOnlyList<AnalyzerReference> analyzerReferences, 110static Lazy<HostDiagnosticAnalyzers> CreateLazyHostDiagnosticAnalyzers(IReadOnlyList<AnalyzerReference> analyzerReferences) 119IReadOnlyList<AnalyzerReference> analyzerReferences, 166public IReadOnlyList<ProjectId> ProjectIds { get; } 188IReadOnlyList<ProjectId>? projectIds = null, 190IReadOnlyList<AnalyzerReference>? analyzerReferences = null, 438var newProjectIds = newProjectIdsBuilder.ToBoxedImmutableArray(); 490var newProjectIds = ProjectIds.Where(p => !projectIdsSet.Contains(p)).ToBoxedImmutableArray(); 827public StateChange WithProjectReferences(ProjectId projectId, IReadOnlyList<ProjectReference> projectReferences) 910public StateChange WithProjectMetadataReferences(ProjectId projectId, IReadOnlyList<MetadataReference> metadataReferences) 926public StateChange WithProjectAnalyzerReferences(ProjectId projectId, IReadOnlyList<AnalyzerReference> analyzerReferences) 1226IReadOnlyList<ProjectId> projectIds, 1264public SolutionState WithAnalyzerReferences(IReadOnlyList<AnalyzerReference> analyzerReferences)
Workspace\Solution\StateChecksums.cs (2)
558IReadOnlyList<TReference> references, ISerializerService serializer, CancellationToken cancellationToken) where TReference : class 561return StronglyTypedChecksumCache<IReadOnlyList<TReference>, ChecksumCollection>.GetOrCreate(
Workspace\Solution\TextDocument.cs (1)
53public IReadOnlyList<string> Folders => State.Folders;
Workspace\Solution\TextDocumentState.cs (1)
50public IReadOnlyList<string> Folders => Attributes.Folders;
Workspace\Solution\TextDocumentStates.cs (1)
106public IReadOnlyList<DocumentId> Ids => _ids;
Workspace\Workspace.cs (2)
136private Solution CreateSolution(SolutionInfo solutionInfo, SolutionOptionSet options, IReadOnlyList<AnalyzerReference> analyzerReferences, ImmutableDictionary<string, StructuredAnalyzerConfigOptions> fallbackAnalyzerOptions) 740private static Solution CheckAndAddProjects(Solution solution, IReadOnlyList<ProjectInfo> projects)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
346private ImmutableArray<DocumentInfo> CreateDocumentInfos(IReadOnlyList<DocumentFileInfo> documentFileInfos, ProjectId projectId, Encoding? encoding)
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
170|| genType == typeof(IReadOnlyList<>)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
176new PredefinedTypeInfo(PredefinedType.PT_G_IREADONLYLIST, typeof(IReadOnlyList<>), "System.Collections.Generic.IReadOnlyList`1"),
Microsoft.Data.Analysis (31)
DataFrame.BinaryOperations.cs (14)
15public DataFrame Add<T>(IReadOnlyList<T> values, bool inPlace = false) 54public DataFrame Subtract<T>(IReadOnlyList<T> values, bool inPlace = false) 93public DataFrame Multiply<T>(IReadOnlyList<T> values, bool inPlace = false) 132public DataFrame Divide<T>(IReadOnlyList<T> values, bool inPlace = false) 171public DataFrame Modulo<T>(IReadOnlyList<T> values, bool inPlace = false) 210public DataFrame And(IReadOnlyList<bool> values, bool inPlace = false) 247public DataFrame Or(IReadOnlyList<bool> values, bool inPlace = false) 284public DataFrame Xor(IReadOnlyList<bool> values, bool inPlace = false) 357public DataFrame ElementwiseEquals<T>(IReadOnlyList<T> values) 390public DataFrame ElementwiseNotEquals<T>(IReadOnlyList<T> values) 423public DataFrame ElementwiseGreaterThanOrEqual<T>(IReadOnlyList<T> values) 456public DataFrame ElementwiseLessThanOrEqual<T>(IReadOnlyList<T> values) 489public DataFrame ElementwiseGreaterThan<T>(IReadOnlyList<T> values) 522public DataFrame ElementwiseLessThan<T>(IReadOnlyList<T> values)
DataFrame.cs (1)
66internal IReadOnlyList<string> GetColumnNames() => _columnCollection.GetColumnNames();
DataFrame.IO.cs (1)
745private static void SaveHeader(StreamWriter csvFile, IReadOnlyList<string> columnNames, char separator)
DataFrame.Join.cs (4)
261var list1 = (IReadOnlyList<long>)occurrences[newOccurrenceKey]; 262var list2 = (IReadOnlyList<long>)newOccurrence.Value;
DataFrame.Join.Extrensions.cs (2)
12public static IList<long> GetSortedListsIntersection(IReadOnlyList<long> sortedList1, IReadOnlyList<long> sortedList2)
DataFrameColumn.cs (2)
179protected abstract IReadOnlyList<object> GetValues(long startIndex, int length); 194public IReadOnlyList<object> this[long startIndex, int length]
DataFrameColumnCollection.cs (1)
31internal IReadOnlyList<string> GetColumnNames()
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
267protected override IReadOnlyList<object> GetValues(long startIndex, int length)
DataFrameColumns\StringDataFrameColumn.cs (1)
118protected override IReadOnlyList<object> GetValues(long startIndex, int length)
DataFrameColumns\VBufferDataFrameColumn.cs (1)
103protected override IReadOnlyList<object> GetValues(long startIndex, int length)
PrimitiveColumnContainer.cs (1)
368public IReadOnlyList<T?> this[long startIndex, int length]
PrimitiveDataFrameColumn.cs (2)
195public new IReadOnlyList<T?> this[long startIndex, int length] 207protected override IReadOnlyList<object> GetValues(long startIndex, int length)
Microsoft.Data.Analysis.Tests (3)
DataFrameTests.BinaryOperations.cs (2)
27IReadOnlyList<int> listOfInts = new List<int>() { 5, 5 }; 184IReadOnlyList<bool> listOfBools = new List<bool>() { true, false };
DataFrameTests.cs (1)
950IReadOnlyList<DataFrameColumn> columns = df.Columns;
Microsoft.Diagnostics.DataContractReader.Abstractions (14)
Contracts\IGC.cs (10)
52public IReadOnlyList<GCGenerationData> GenerationTable { get; init; } 53public IReadOnlyList<TargetPointer> FillPointers { get; init; } 61public IReadOnlyList<TargetNUInt> InterestingData { get; init; } 62public IReadOnlyList<TargetNUInt> CompactReasons { get; init; } 63public IReadOnlyList<TargetNUInt> ExpandMechanisms { get; init; } 64public IReadOnlyList<TargetNUInt> InterestingMechanismBits { get; init; } 149IReadOnlyList<TargetNUInt> GetGlobalMechanisms() => throw new NotImplementedException(); 168IReadOnlyList<GCMemoryRegionData> GetHandleTableMemoryRegions() => throw new NotImplementedException(); 169IReadOnlyList<GCMemoryRegionData> GetGCBookkeepingMemoryRegions() => throw new NotImplementedException(); 170IReadOnlyList<GCMemoryRegionData> GetGCFreeRegions() => throw new NotImplementedException();
Contracts\IGCInfo.cs (2)
54IReadOnlyList<InterruptibleRange> GetInterruptibleRanges(IGCInfoHandle handle) => throw new NotImplementedException(); 55IReadOnlyList<LiveSlot> EnumerateLiveSlots(IGCInfoHandle handle, uint instructionOffset, GcSlotEnumerationOptions options) => throw new NotImplementedException();
Contracts\IStackWalk.cs (1)
50IReadOnlyList<StackReferenceData> WalkStackReferences(ThreadData threadData) => throw new NotImplementedException();
Contracts\IStressLog.cs (1)
32IReadOnlyList<TargetPointer> Args);
Microsoft.Diagnostics.DataContractReader.Contracts (25)
Contracts\GC\GC_1.cs (5)
130IReadOnlyList<TargetNUInt> IGC.GetGlobalMechanisms() 369IReadOnlyList<GCGenerationData> gens = heapData.GenerationTable; 586IReadOnlyList<GCMemoryRegionData> IGC.GetHandleTableMemoryRegions() 641IReadOnlyList<GCMemoryRegionData> IGC.GetGCBookkeepingMemoryRegions() 696IReadOnlyList<GCMemoryRegionData> IGC.GetGCFreeRegions()
Contracts\GCInfo\GCInfo_1.cs (2)
37IReadOnlyList<InterruptibleRange> IGCInfo.GetInterruptibleRanges(IGCInfoHandle gcInfoHandle) 43IReadOnlyList<LiveSlot> IGCInfo.EnumerateLiveSlots(IGCInfoHandle gcInfoHandle, uint instructionOffset, GcSlotEnumerationOptions options)
Contracts\GCInfo\GCInfoDecoder.cs (2)
521public IReadOnlyList<InterruptibleRange> GetInterruptibleRanges() 529IReadOnlyList<LiveSlot> IGCInfoDecoder.EnumerateLiveSlots(
Contracts\GCInfo\IGCInfoDecoder.cs (2)
14IReadOnlyList<InterruptibleRange> GetInterruptibleRanges(); 15IReadOnlyList<LiveSlot> EnumerateLiveSlots(uint instructionOffset, GcSlotEnumerationOptions options);
Contracts\StackWalk\GC\GcScanner.cs (1)
52IReadOnlyList<LiveSlot> liveSlots = _gcInfo.EnumerateLiveSlots(handle, offsetToUse, options);
Contracts\StackWalk\StackWalk_1.cs (1)
188IReadOnlyList<StackReferenceData> IStackWalk.WalkStackReferences(ThreadData threadData)
Contracts\StressLog.cs (2)
232private sealed class StressLogMemory(IReadOnlyList<TargetPointer> chunks) : Data.IData<StressLogMemory> 263public IReadOnlyList<TargetPointer> Chunks { get; } = chunks;
Data\ArrayListBase.cs (3)
20public IReadOnlyList<ArrayListBlock> Blocks { get; private set; } = []; 21public IReadOnlyList<TargetPointer> Elements { get; private set; } = []; 65public IReadOnlyList<TargetPointer> Elements { get; private set; } = [];
Data\ComWrappersVtablePtrs.cs (1)
12public IReadOnlyList<TargetCodePointer> ComWrappersInterfacePointers { get; private set; } = [];
Data\DacEnumerableHash.cs (1)
56public IReadOnlyList<TargetPointer> Entries { get; init; }
Data\EETypeHashTable.cs (1)
14public IReadOnlyList<Entry> Entries { get; private set; }
Data\HandleTableMap.cs (1)
13public IReadOnlyList<TargetPointer> BucketsPtr { get; private set; } = [];
Data\InstMethodHashTable.cs (1)
14public IReadOnlyList<Entry> Entries { get; private set; }
Data\RCW.cs (1)
24public IReadOnlyList<Data.InterfaceEntry> InterfaceEntries { get; private set; } = [];
Data\ReadyToRunCoreHeader.cs (1)
14public IReadOnlyList<ReadyToRunSection> Sections { get; private set; } = [];
Microsoft.Diagnostics.DataContractReader.Legacy (6)
SOSDacImpl.cs (6)
1754public SOSMemoryEnum(Target target, IReadOnlyList<GCMemoryRegionData> regions, ISOSMemoryEnum? legacyMemoryEnum = null) 4072IReadOnlyList<StackReferenceData> refs = stackWalkContract.WalkStackReferences(matchingThread.Value); 5202IReadOnlyList<TargetNUInt> globalMechanismsData = gc.GetGlobalMechanisms(); 6643IReadOnlyList<GCMemoryRegionData> regions = _target.Contracts.GC.GetHandleTableMemoryRegions(); 6668IReadOnlyList<GCMemoryRegionData> regions = _target.Contracts.GC.GetGCBookkeepingMemoryRegions(); 6693IReadOnlyList<GCMemoryRegionData> regions = _target.Contracts.GC.GetGCFreeRegions();
Microsoft.DotNet.ApiCompatibility (15)
ApiComparer.cs (2)
95IReadOnlyList<ElementContainer<IAssemblySymbol>> right) 113IReadOnlyList<IEnumerable<ElementContainer<IAssemblySymbol>>> right)
IApiComparer.cs (2)
43IEnumerable<CompatDifference> GetDifferences(ElementContainer<IAssemblySymbol> left, IReadOnlyList<ElementContainer<IAssemblySymbol>> right); 70IEnumerable<CompatDifference> GetDifferences(IEnumerable<ElementContainer<IAssemblySymbol>> left, IReadOnlyList<IEnumerable<ElementContainer<IAssemblySymbol>>> right);
Runner\ApiCompatRunner.cs (5)
39foreach (IReadOnlyList<MetadataInformation> right in workItem.Right) 100private List<ElementContainer<IAssemblySymbol>> CreateAssemblySymbols(IReadOnlyList<MetadataInformation> metadataInformation, 112IReadOnlyList<IAssemblySymbol?>? assemblySymbols = null; 151foreach (IReadOnlyList<MetadataInformation> right in workItem.Right) 154foreach (IReadOnlyList<MetadataInformation> actualRight in actualWorkItem.Right)
Runner\ApiCompatRunnerWorkItem.cs (6)
12public readonly struct ApiCompatRunnerWorkItem(IReadOnlyList<MetadataInformation> left, 14IReadOnlyList<MetadataInformation> right) : IEquatable<ApiCompatRunnerWorkItem> 19public readonly IReadOnlyList<MetadataInformation> Left = left; 29public IList<IReadOnlyList<MetadataInformation>> Right { get; } = new List<IReadOnlyList<MetadataInformation>>(new IReadOnlyList<MetadataInformation>[] { right });
Microsoft.DotNet.ApiSymbolExtensions (6)
AssemblySymbolLoader.cs (3)
153public IReadOnlyList<IAssemblySymbol?> LoadAssemblies(params string[] paths) 179public IReadOnlyList<IAssemblySymbol?> LoadAssembliesFromArchive(string archivePath, IReadOnlyList<string> relativePaths)
IAssemblySymbolLoader.cs (3)
26IReadOnlyList<IAssemblySymbol?> LoadAssemblies(params string[] paths); 34IReadOnlyList<IAssemblySymbol?> LoadAssembliesFromArchive(string archivePath, IReadOnlyList<string> relativePaths);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
491private readonly IReadOnlyList<string> _arguments;
Microsoft.DotNet.Build.Tasks.Packaging (9)
Extensions.cs (1)
86public static IReadOnlyList<string> GetValueList(this ITaskItem taskItem, string metadataName)
GenerateNuSpec.cs (8)
388private static IReadOnlyList<string> AggregateInclude(IReadOnlyList<string> aggregate, IReadOnlyList<string> next) 404private static IReadOnlyList<string> AggregateExclude(IReadOnlyList<string> aggregate, IReadOnlyList<string> next) 497public IReadOnlyList<string> Exclude { get; set; } 499public IReadOnlyList<string> Include { get; set; }
Microsoft.DotNet.Cli.Definitions (1)
Help\HelpBuilder.cs (1)
111public void WriteColumns(IReadOnlyList<TwoColumnHelpRow> items, HelpContext context)
Microsoft.DotNet.Cli.Utils (1)
FrameworkDependencyFile.cs (1)
56IReadOnlyList<RuntimeFallbacks> runtimeGraph,
Microsoft.DotNet.HotReload.Utils.Generator (1)
Config.cs (1)
47public IReadOnlyList<KeyValuePair<string,string>> Properties { get; }
Microsoft.DotNet.HotReload.Watch (42)
Aspire\AspireServiceFactory.cs (1)
251internal static IReadOnlyList<string> GetRunCommandArguments(ProjectLaunchRequest projectLaunchInfo, string? hostLaunchProfile)
Build\BuildReporter.cs (1)
94public IReadOnlyList<OutputLine> Messages
Build\LoadedProjectGraph.cs (5)
14private readonly IReadOnlyDictionary<string, IReadOnlyList<ProjectGraphNode>> _innerBuildNodes = 17elementSelector: static g => (IReadOnlyList<ProjectGraphNode>)[.. g]); 33public IReadOnlyList<ProjectGraphNode> GetProjectNodes(string projectPath) 35if (_innerBuildNodes.TryGetValue(projectPath, out var nodes)) 46var projectNodes = GetProjectNodes(projectPath);
Build\ProjectBuildManager.cs (1)
35IReadOnlyList<BuildRequest<T>> requests,
Build\ProjectGraphUtilities.cs (4)
25public static IReadOnlyList<string> GetTargetFrameworks(this ProjectInstance project) 76public static IReadOnlyList<string> GetDefaultItemExcludes(this ProjectGraphNode projectNode) 79public static IReadOnlyList<string> GetStringListPropertyValue(this ProjectGraphNode projectNode, string propertyName) 82public static IReadOnlyList<string> GetStringListPropertyValue(this ProjectInstance project, string propertyName)
Context\DotNetWatchContext.cs (1)
35public required IReadOnlyList<string> BuildArguments { get; init; }
Context\ProjectOptions.cs (2)
51public required IReadOnlyList<string> CommandArguments { get; init; } 56public required IReadOnlyList<(string name, string value)> LaunchEnvironmentVariables { get; init; }
HotReload\CompilationHandler.cs (8)
407IReadOnlyList<HotReloadService.Update> managedCodeUpdates, 417IReadOnlyList<RestartOperation> relaunchOperations; 679IReadOnlyList<ChangedFile> files, 876internal async Task RestartPeripheralProjectsAsync(IReadOnlyList<RunningProject> projectsToRestart, CancellationToken cancellationToken) 922private IReadOnlyList<RestartOperation> GetRelaunchOperations_NoLock(IReadOnlyList<ChangedFile> changedFiles, LoadedProjectGraph projectGraph) 934var containingProjectNodes = projectGraph.GetProjectNodes(containingProjectPath); 1024public async Task UpdateFileContentAsync(IReadOnlyList<ChangedFile> changedFiles, CancellationToken cancellationToken)
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,
Process\ProcessSpec.cs (1)
11public IReadOnlyList<string> Arguments { get; set; } = [];
Process\ProjectLauncher.cs (1)
100private static IReadOnlyList<string> GetProcessArguments(ProjectOptions projectOptions, IDictionary<string, string> environmentBuilder)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\NamedPipeContract.cs (2)
48internal readonly struct ManagedCodeUpdateRequest(IReadOnlyList<RuntimeManagedCodeUpdate> updates, ResponseLoggingLevel responseLoggingLevel) : IUpdateRequest 52public IReadOnlyList<RuntimeManagedCodeUpdate> Updates { get; } = updates;
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
177var applicableUpdates = await FilterApplicableUpdatesAsync(updates, cancellationToken);
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
111protected async Task<IReadOnlyList<HotReloadManagedCodeUpdate>> FilterApplicableUpdatesAsync(ImmutableArray<HotReloadManagedCodeUpdate> updates, CancellationToken cancellationToken)
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\WebAssemblyHotReloadClient.cs (1)
98var applicableUpdates = await FilterApplicableUpdatesAsync(updates, cancellationToken);
UI\BuildParametersSelectionPrompt.cs (6)
12public IReadOnlyList<string>? PreviousTargetFrameworks { get; set; } 15public IReadOnlyList<DeviceInfo>? PreviousDevices { get; set; } 18public async ValueTask<string> SelectTargetFrameworkAsync(IReadOnlyList<string> targetFrameworks, CancellationToken cancellationToken) 32public async ValueTask<DeviceInfo> SelectDeviceAsync(IReadOnlyList<DeviceInfo> devices, CancellationToken cancellationToken) 44protected abstract Task<string> PromptForTargetFrameworkAsync(IReadOnlyList<string> targetFrameworks, CancellationToken cancellationToken); 46protected abstract Task<DeviceInfo> PromptForDeviceAsync(IReadOnlyList<DeviceInfo> devices, CancellationToken cancellationToken);
Microsoft.DotNet.HotReload.WebAssembly.Browser (3)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
253private void ApplyDeltas(Assembly assembly, IReadOnlyList<RuntimeManagedCodeUpdate> updates)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (2)
37IReadOnlyList<UpdateHandler<MetadataUpdateAction>> clearCacheHandlers, 38IReadOnlyList<UpdateHandler<MetadataUpdateAction>> updateApplicationHandlers,
Microsoft.DotNet.PackageValidation (19)
ApiCompatRunnerExtensions.cs (2)
19IReadOnlyList<ContentItem> leftContentItems, 20IReadOnlyList<ContentItem> rightContentItems,
Package.cs (5)
81public IReadOnlyList<NuGetFramework> FrameworksInPackage { get; } 149public IReadOnlyList<ContentItem>? FindBestRuntimeAssetForFramework(NuGetFramework framework) 165public IReadOnlyList<ContentItem>? FindBestRuntimeSpecificAssetForFramework(NuGetFramework framework) 182public IReadOnlyList<ContentItem>? FindBestRuntimeAssetForFrameworkAndRuntime(NuGetFramework framework, string rid) 198public IReadOnlyList<ContentItem>? FindBestCompileAssetForFramework(NuGetFramework framework)
Validators\BaselinePackageValidator.cs (6)
41IReadOnlyList<ContentItem>? baselineCompileAssets = options.BaselinePackage.FindBestCompileAssetForFramework(baselineTargetFramework); 45IReadOnlyList<ContentItem>? latestCompileAssets = options.Package.FindBestCompileAssetForFramework(baselineTargetFramework); 65IReadOnlyList<ContentItem>? baselineRuntimeAssets = options.BaselinePackage.FindBestRuntimeAssetForFramework(baselineTargetFramework); 69IReadOnlyList<ContentItem>? latestRuntimeAssets = options.Package.FindBestRuntimeAssetForFramework(baselineTargetFramework); 89IReadOnlyList<ContentItem>? baselineRuntimeSpecificAssets = options.BaselinePackage.FindBestRuntimeSpecificAssetForFramework(baselineTargetFramework); 98IReadOnlyList<ContentItem>? latestRuntimeSpecificAssets = options.Package.FindBestRuntimeAssetForFrameworkAndRuntime(baselineTargetFramework, baselineRuntimeSpecificAssetsRidGroup.Key);
Validators\CompatibleFrameworkInPackageValidator.cs (3)
39Queue<(NuGetFramework, IReadOnlyList<ContentItem>)> compileAssetsQueue = new(); 42IReadOnlyList<ContentItem>? compileTimeAsset = options.Package.FindBestCompileAssetForFramework(framework); 49(NuGetFramework framework, IReadOnlyList<ContentItem> compileTimeAsset) = compileAssetsQueue.Dequeue();
Validators\CompatibleTFMValidator.cs (3)
41IReadOnlyList<ContentItem>? compileTimeAsset = options.Package.FindBestCompileAssetForFramework(framework); 51IReadOnlyList<ContentItem>? runtimeAsset = options.Package.FindBestRuntimeAssetForFramework(framework); 71IReadOnlyList<ContentItem>? runtimeRidSpecificAsset = options.Package.FindBestRuntimeAssetForFrameworkAndRuntime(framework, rid);
Microsoft.DotNet.XliffTasks (1)
Model\TranslatableDocument.cs (1)
19public IReadOnlyList<TranslatableNode> Nodes { get; private set; } = Array.Empty<TranslatableNode>();
Microsoft.Extensions.AI (12)
ChatCompletion\CachingChatClient.cs (2)
170protected abstract Task<IReadOnlyList<ChatResponseUpdate>?> ReadCacheStreamingAsync(string key, CancellationToken cancellationToken); 194protected abstract Task WriteCacheStreamingAsync(string key, IReadOnlyList<ChatResponseUpdate> value, CancellationToken cancellationToken);
ChatCompletion\DistributedCachingChatClient.cs (6)
65public IReadOnlyList<object>? CacheKeyAdditionalValues 86protected override async Task<IReadOnlyList<ChatResponseUpdate>?> ReadCacheStreamingAsync(string key, CancellationToken cancellationToken) 93return (IReadOnlyList<ChatResponseUpdate>?)JsonSerializer.Deserialize(existingJson, JsonSerializerOptions.GetTypeInfo(typeof(IReadOnlyList<ChatResponseUpdate>))); 111protected override async Task WriteCacheStreamingAsync(string key, IReadOnlyList<ChatResponseUpdate> value, CancellationToken cancellationToken) 117var newJson = JsonSerializer.SerializeToUtf8Bytes(value, JsonSerializerOptions.GetTypeInfo(typeof(IReadOnlyList<ChatResponseUpdate>)));
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
69public IReadOnlyList<object>? CacheKeyAdditionalValues
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
Microsoft.Extensions.AI.Abstractions (5)
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
Utilities\AIJsonUtilities.Defaults.cs (2)
119[JsonSerializable(typeof(IReadOnlyList<ChatResponseUpdate>))] 159[JsonSerializable(typeof(IReadOnlyList<SpeechToTextResponseUpdate>))]
Microsoft.Extensions.AI.Evaluation (2)
ChatMessageExtensions.cs (1)
71out IReadOnlyList<ChatMessage> remainingMessages)
CompositeEvaluator.cs (1)
26private readonly IReadOnlyList<IEvaluator> _evaluators;
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
AgentQualityEvaluatorTests.cs (1)
231private static IReadOnlyList<Order> GetOrders(int accountNumber)
TestEvaluator.cs (1)
14public IReadOnlyList<EvaluationMetric> TestMetrics { get; set; } = [];
Microsoft.Extensions.AI.Evaluation.NLP (2)
BLEUEvaluatorContext.cs (1)
32public IReadOnlyList<string> References { get; }
GLEUEvaluatorContext.cs (1)
32public IReadOnlyList<string> References { get; }
Microsoft.Extensions.AI.Evaluation.Quality (5)
IntentResolutionEvaluatorContext.cs (1)
88public IReadOnlyList<AITool> ToolDefinitions { get; }
RelevanceTruthAndCompletenessEvaluator.cs (1)
99out IReadOnlyList<ChatMessage> conversationHistory) ||
RetrievalEvaluatorContext.cs (1)
36public IReadOnlyList<string> RetrievedContextChunks { get; }
TaskAdherenceEvaluatorContext.cs (1)
90public IReadOnlyList<AITool> ToolDefinitions { get; }
ToolCallAccuracyEvaluatorContext.cs (1)
92public IReadOnlyList<AITool> ToolDefinitions { get; }
Microsoft.Extensions.AI.Evaluation.Reporting (11)
JsonSerialization\EvaluationContextConverter.cs (5)
14private sealed class DeserializedEvaluationContext(string name, IReadOnlyList<AIContent> contents) 31IReadOnlyList<AIContent>? contents = null; 68JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>)); 69contents = JsonSerializer.Deserialize(ref reader, contentsTypeInfo) as IReadOnlyList<AIContent>; 90JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>));
ReportingConfiguration.cs (3)
27public IReadOnlyList<IEvaluator> Evaluators { get; } 71public IReadOnlyList<string> CachingKeys { get; } 96public IReadOnlyList<string>? Tags { get; }
ResponseCachingChatClient.cs (3)
64protected override async Task<IReadOnlyList<ChatResponseUpdate>?> ReadCacheStreamingAsync( 70IReadOnlyList<ChatResponseUpdate>? updates = 122IReadOnlyList<ChatResponseUpdate> value,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (5)
src\Libraries\Microsoft.Extensions.AI.Evaluation.Reporting\CSharp\JsonSerialization\EvaluationContextConverter.cs (5)
14private sealed class DeserializedEvaluationContext(string name, IReadOnlyList<AIContent> contents) 31IReadOnlyList<AIContent>? contents = null; 68JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>)); 69contents = JsonSerializer.Deserialize(ref reader, contentsTypeInfo) as IReadOnlyList<AIContent>; 90JsonTypeInfo contentsTypeInfo = options.GetTypeInfo(typeof(IReadOnlyList<AIContent>));
Microsoft.Extensions.AI.Evaluation.Safety (9)
ContentSafetyEvaluator.cs (3)
109IReadOnlyList<EvaluationContext>? relevantContext = FilterAdditionalContext(additionalContext); 123(string payload, IReadOnlyList<EvaluationDiagnostic>? diagnostics) = 199protected virtual IReadOnlyList<EvaluationContext>? FilterAdditionalContext(
ContentSafetyServicePayloadUtilities.cs (4)
15internal static (string payload, IReadOnlyList<EvaluationDiagnostic>? diagnostics) GetPayload( 77private static (string payload, IReadOnlyList<EvaluationDiagnostic>? diagnostics) 163private static (string payload, IReadOnlyList<EvaluationDiagnostic>? diagnostics) 245private static (string payload, IReadOnlyList<EvaluationDiagnostic>? diagnostics) GetConversationPayload(
GroundednessProEvaluator.cs (1)
73protected override IReadOnlyList<EvaluationContext>? FilterAdditionalContext(
UngroundedAttributesEvaluator.cs (1)
77protected override IReadOnlyList<EvaluationContext>? FilterAdditionalContext(
Microsoft.Extensions.AI.Integration.Tests (3)
ChatClientIntegrationTests.cs (3)
875var logs = collector.GetSnapshot(); 928var logs = collector.GetSnapshot(); 1368public IReadOnlyList<ChatMessage>? LastSummarizedConversation { get; private set; }
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (1)
42private IReadOnlyList<ToolDefinition>? _assistantTools;
RequestOptionsExtensions.cs (2)
38public override void Process(PipelineMessage message, IReadOnlyList<PipelinePolicy> pipeline, int currentIndex) 44public override ValueTask ProcessAsync(PipelineMessage message, IReadOnlyList<PipelinePolicy> pipeline, int currentIndex)
Microsoft.Extensions.AI.Tests (18)
ChatCompletion\DistributedCachingChatClientTest.cs (1)
831private static async Task AssertResponsesEqualAsync(IReadOnlyList<ChatResponseUpdate> expected, IAsyncEnumerable<ChatResponseUpdate> actual)
ChatCompletion\FunctionInvokingChatClientTests.cs (7)
1069var logs = collector.GetSnapshot(); 3257var logs = collector.GetSnapshot(); 3289var logs = collector.GetSnapshot(); 3322var logs = collector.GetSnapshot(); 3360var logs = collector.GetSnapshot(); 3397var logs = collector.GetSnapshot(); 3434var logs = collector.GetSnapshot();
ChatCompletion\LoggingChatClientTests.cs (2)
72var logs = collector.GetSnapshot(); 124var logs = collector.GetSnapshot();
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
929var ttfcMeasurements = timeToFirstChunkCollector.GetMeasurementSnapshot(); 941var tpocMeasurements = timePerOutputChunkCollector.GetMeasurementSnapshot();
Embeddings\LoggingEmbeddingGeneratorTests.cs (1)
69var logs = collector.GetSnapshot();
Image\LoggingImageGeneratorTests.cs (2)
72var logs = collector.GetSnapshot(); 121var logs = collector.GetSnapshot();
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
75var logs = collector.GetSnapshot(); 128var logs = collector.GetSnapshot();
TestJsonSerializerContext.cs (1)
15[JsonSerializable(typeof(IReadOnlyList<ChatResponseUpdate>))]
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactionCollector.cs (2)
41public IReadOnlyList<RedactorRequested> AllRedactorRequests 75public IReadOnlyList<RedactedData> AllRedactedData
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1065|| genericTypeDefinition == typeof(IReadOnlyList<>);
Microsoft.Extensions.DataIngestion (2)
Writers\VectorStoreWriter.cs (2)
63IReadOnlyList<object>? preExistingKeys = null; 164private async Task<IReadOnlyList<object>> GetPreExistingChunksIdsAsync(IngestionDocument document, CancellationToken cancellationToken)
Microsoft.Extensions.DataIngestion.Tests (26)
Chunkers\DocumentChunkerTests.cs (1)
29IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(emptyDoc).ToListAsync();
Chunkers\DocumentTokenChunkerTests.cs (1)
27IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\HeaderChunkerTests.cs (5)
40IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 72IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 120IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 147IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(document).ToListAsync(); 177IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(document).ToListAsync();
Chunkers\NoOverlapTokenChunkerTests.cs (2)
33IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 54IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\OverlapTokenChunkerTests.cs (1)
39IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\SectionChunkerTests.cs (6)
33IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 66IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 84IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 127IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 156IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 177IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
Chunkers\SemanticSimilarityChunkerTests.cs (3)
57IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 100IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync(); 176IReadOnlyList<IngestionChunk<string>> chunks = await chunker.ProcessAsync(doc).ToListAsync();
IngestionPipelineTests.cs (1)
27private readonly IReadOnlyList<FileInfo> _sampleFiles;
Processors\ClassificationEnricherTests.cs (2)
90IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(CreateChunks().ToAsyncEnumerable()).ToListAsync(); 111IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\KeywordEnricherTests.cs (2)
92IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks).ToListAsync(); 111IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\SentimentEnricherTests.cs (1)
98IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Processors\SummaryEnricherTests.cs (1)
95IReadOnlyList<IngestionChunk<string>> got = await sut.ProcessAsync(chunks.ToAsyncEnumerable()).ToListAsync();
Microsoft.Extensions.DependencyModel (25)
CollectionExtensions.netcoreapp.cs (1)
11internal static Dictionary<string, T> LibraryCollectionToDictionary<T>(this IReadOnlyList<T> collection) where T : Library
CompilationLibrary.cs (1)
40public IReadOnlyList<string> Assemblies { get; }
CompilationOptions.cs (1)
12public IReadOnlyList<string?> Defines { get; }
DependencyContext.cs (3)
45public IReadOnlyList<CompilationLibrary> CompileLibraries { get; } 47public IReadOnlyList<RuntimeLibrary> RuntimeLibraries { get; } 49public IReadOnlyList<RuntimeFallbacks> RuntimeGraph { get; }
DependencyContextWriter.cs (4)
132private static void WriteTarget(string key, IReadOnlyList<Library> libraries, Utf8JsonWriter jsonWriter) 144private static void WritePortableTarget(string key, IReadOnlyList<RuntimeLibrary> runtimeLibraries, IReadOnlyList<CompilationLibrary> compilationLibraries, Utf8JsonWriter jsonWriter) 211private static void AddResourceAssemblies(IReadOnlyList<ResourceAssembly> resourceAssemblies, Utf8JsonWriter jsonWriter)
Library.cs (1)
76public IReadOnlyList<Dependency> Dependencies { get; }
RuntimeAssetGroup.cs (4)
11private readonly IReadOnlyList<string>? _assetPaths; 12private readonly IReadOnlyList<RuntimeFile>? _runtimeFiles; 36public IReadOnlyList<string> AssetPaths 52public IReadOnlyList<RuntimeFile> RuntimeFiles
RuntimeFallbacks.cs (1)
13public IReadOnlyList<string?> Fallbacks { get; set; }
RuntimeLibrary.cs (9)
16IReadOnlyList<RuntimeAssetGroup> runtimeAssemblyGroups, 17IReadOnlyList<RuntimeAssetGroup> nativeLibraryGroups, 39IReadOnlyList<RuntimeAssetGroup> runtimeAssemblyGroups, 40IReadOnlyList<RuntimeAssetGroup> nativeLibraryGroups, 90IReadOnlyList<RuntimeAssetGroup> runtimeAssemblyGroups, 91IReadOnlyList<RuntimeAssetGroup> nativeLibraryGroups, 117public IReadOnlyList<RuntimeAssetGroup> RuntimeAssemblyGroups { get; } 119public IReadOnlyList<RuntimeAssetGroup> NativeLibraryGroups { get; } 121public IReadOnlyList<ResourceAssembly> ResourceAssemblies { get; }
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
HttpExceptionSummaryProvider.cs (1)
80public IReadOnlyList<string> Descriptions => _descriptions;
IExceptionSummaryProvider.cs (1)
39IReadOnlyList<string> Descriptions { get; }
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckLogScope.cs (1)
16KeyValuePair<string, object> IReadOnlyList<KeyValuePair<string, object>>.this[int index]
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
116var unhealthyCounters = unhealthyMetricCollector.GetMeasurementSnapshot();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Windows\Disk\WindowsDiskMetricsTests.cs (2)
85IReadOnlyList<CollectedMeasurement<long>> measurements = operationCollector.GetMeasurementSnapshot(); 159IReadOnlyList<CollectedMeasurement<long>> measurements = operationCollector.GetMeasurementSnapshot();
Windows\WindowsContainerSnapshotProviderTests.cs (2)
233var snapshot = metricCollector.GetMeasurementSnapshot(); 568var logRecords = _logger.Collector.GetSnapshot();
Windows\WindowsSnapshotProviderTests.cs (1)
67var logRecords = _fakeLogger.Collector.GetSnapshot();
Microsoft.Extensions.Diagnostics.Testing (7)
Logging\FakeLogCollector.cs (1)
75public IReadOnlyList<FakeLogRecord> GetSnapshot(bool clear = false)
Logging\FakeLogCollectorDebugView.cs (1)
22public IReadOnlyList<FakeLogRecord> Records => _collector.GetSnapshot();
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; }
Metrics\MetricCollector.cs (1)
172public IReadOnlyList<CollectedMeasurement<T>> GetMeasurementSnapshot(bool clear = false)
Microsoft.Extensions.Diagnostics.Testing.Tests (16)
Logging\FakeLoggerProviderTests.cs (1)
47var records = provider.Collector.GetSnapshot();
Logging\FakeLoggerTests.cs (3)
30var records = logger.Collector.GetSnapshot(); 263var records = collector.GetSnapshot(); 311var records = logger.Collector.GetSnapshot();
Metrics\MeasurementExtensionsTests.cs (11)
25var fullSnap = collector.GetMeasurementSnapshot(); 50var fullSnap = collector.GetMeasurementSnapshot(); 75var fullSnap = collector.GetMeasurementSnapshot(); 103var fullSnap = collector.GetMeasurementSnapshot(); 135var fullSnap = collector.GetMeasurementSnapshot(); 152var fullSnap = collector.GetMeasurementSnapshot(); 169var fullSnap = collector.GetMeasurementSnapshot(); 186var fullSnap = collector.GetMeasurementSnapshot(); 203var fullSnap = collector.GetMeasurementSnapshot(); 220var fullSnap = collector.GetMeasurementSnapshot(); 237var fullSnap = collector.GetMeasurementSnapshot();
Metrics\MetricCollectorTests.cs (1)
398var snap = collector.GetMeasurementSnapshot();
Microsoft.Extensions.DotNetDeltaApplier (5)
src\sdk\src\Dotnet.Watch\HotReloadAgent.PipeRpc\NamedPipeContract.cs (2)
48internal readonly struct ManagedCodeUpdateRequest(IReadOnlyList<RuntimeManagedCodeUpdate> updates, ResponseLoggingLevel responseLoggingLevel) : IUpdateRequest 52public IReadOnlyList<RuntimeManagedCodeUpdate> Updates { get; } = updates;
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
253private void ApplyDeltas(Assembly assembly, IReadOnlyList<RuntimeManagedCodeUpdate> updates)
src\sdk\src\Dotnet.Watch\HotReloadAgent\MetadataUpdateHandlerInvoker.cs (2)
37IReadOnlyList<UpdateHandler<MetadataUpdateAction>> clearCacheHandlers, 38IReadOnlyList<UpdateHandler<MetadataUpdateAction>> updateApplicationHandlers,
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestDirectory.cs (1)
21public IReadOnlyList<ManifestEntry> Children { get; protected set; }
Microsoft.Extensions.Http (2)
HttpMessageHandlerBuilder.cs (2)
89IReadOnlyList<DelegatingHandler> additionalHandlersList = additionalHandlers as IReadOnlyList<DelegatingHandler> ?? additionalHandlers.ToArray();
Microsoft.Extensions.Http.Diagnostics (7)
Logging\HttpClientLoggingTagNames.cs (2)
70/// <returns>A read-only <see cref="IReadOnlyList{String}"/> of all tag names.</returns> 71public static IReadOnlyList<string> TagNames { get; } =
Logging\Internal\HttpHeadersRedactor.cs (2)
27IReadOnlyList<string> headerValueList => RedactList(headerValueList, classification), 102private string RedactList(IReadOnlyList<string> input, DataClassification classification)
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
Microsoft.Extensions.Http.Diagnostics.Tests (21)
Logging\AcceptanceTests.cs (7)
125var state = logRecord.StructuredState; 173var state = logRecord.StructuredState; 259var state = logRecord.StructuredState; 324var state = logRecord.StructuredState; 367var state = logRecord.StructuredState; 436var state = logRecord.StructuredState; 700var state = logRecord.StructuredState;
Logging\HttpClientLoggerTest.cs (11)
240var logRecords = fakeLogger.Collector.GetSnapshot(); 337var logRecords = fakeLogger.Collector.GetSnapshot(); 442var logRecords = fakeLogger.Collector.GetSnapshot(); 560var logRecords = fakeLogger.Collector.GetSnapshot(); 651var logRecords = fakeLogger.Collector.GetSnapshot(); 702var logRecords = fakeLogger.Collector.GetSnapshot(); 745var logRecords = fakeLogger.Collector.GetSnapshot(); 783var logRecords = fakeLogger.Collector.GetSnapshot(); 828var logRecords = fakeLogger.Collector.GetSnapshot(); 926var logRecords = fakeLogger.Collector.GetSnapshot(); 994var logRecords = fakeLogger.Collector.GetSnapshot();
Logging\HttpClientLoggingExtensionsTest.cs (2)
483var outerLogs = collector.GetSnapshot(); 492var innerLogs = collector.GetSnapshot();
Logging\HttpClientLoggingTagNamesTest.cs (1)
16var actualDimensions = HttpClientLoggingTagNames.TagNames;
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)
BufferedLogRecord.cs (1)
68public virtual IReadOnlyList<KeyValuePair<string, object?>> Attributes => [];
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)
EventSourceLogger.cs (6)
121IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state); 153IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state); 182IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state); 190IReadOnlyList<KeyValuePair<string, string?>> arguments = GetProperties(state); 248if (state is IReadOnlyList<KeyValuePair<string, object?>> keyValuePairs) 262private static string ToJson(IReadOnlyList<KeyValuePair<string, string?>> keyValues)
Microsoft.Extensions.Logging.Generators (3)
LoggerMessageGenerator.Emitter.cs (1)
43public string Emit(IReadOnlyList<LoggerClass> logClasses, CancellationToken cancellationToken)
LoggerMessageGenerator.Parser.cs (1)
66public IReadOnlyList<LoggerClass> GetLogClasses(IEnumerable<ClassDeclarationSyntax> classes, SemanticModel semanticModel)
LoggerMessageGenerator.Roslyn4.0.cs (1)
90IReadOnlyList<LoggerClass> logClasses = parser.GetLogClasses(new[] { classDeclaration }, semanticModel);
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLogger.cs (1)
193if (state is IReadOnlyList<KeyValuePair<string, object?>> stateItems)
Microsoft.Extensions.Options.SourceGeneration (2)
Generator.cs (1)
50var validatorTypes = parser.GetValidatorTypes(types);
Parser.cs (1)
46public IReadOnlyList<ValidatorType> GetValidatorTypes(IEnumerable<(TypeDeclarationSyntax TypeSyntax, SemanticModel SemanticModel)> classes)
Microsoft.Extensions.Primitives (2)
CompositeChangeToken.cs (2)
36public CompositeChangeToken(IReadOnlyList<IChangeToken> changeTokens) 57public IReadOnlyList<IChangeToken> ChangeTokens { get; }
Microsoft.Extensions.ServiceDiscovery (4)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
42var allowedSchemes = serviceDiscoveryOptions.Value.ApplyAllowedSchemes(query.IncludedSchemes);
LoadBalancing\RoundRobinServiceEndpointSelector.cs (1)
12private IReadOnlyList<ServiceEndpoint>? _endpoints;
ServiceDiscoveryOptions.cs (2)
43public IReadOnlyList<string> ApplyAllowedSchemes(IReadOnlyList<string> requestedSchemes)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
ServiceEndpointQuery.cs (1)
81public IReadOnlyList<string> IncludedSchemes { get; }
ServiceEndpointSource.cs (2)
38public IReadOnlyList<ServiceEndpoint> Endpoints => _endpoints ?? (IReadOnlyList<ServiceEndpoint>)[];
Microsoft.Extensions.ServiceDiscovery.Dns (1)
Resolver\EncodedDomainName.cs (1)
11public IReadOnlyList<ReadOnlyMemory<byte>> Labels { get; }
Microsoft.Extensions.Telemetry (8)
Enrichment\ApplicationEnricherTags.cs (2)
37/// <returns>A read-only <see cref="IReadOnlyList{String}"/> of all dimension names.</returns> 38public static IReadOnlyList<string> DimensionNames { get; } =
Enrichment\ProcessEnricherTagNames.cs (2)
27/// <returns>A read-only <see cref="IReadOnlyList{String}"/> of all dimension names.</returns> 28public static IReadOnlyList<string> DimensionNames { get; } =
Logging\ExtendedLogger.cs (1)
396case IReadOnlyList<KeyValuePair<string, object?>> stateList:
Logging\ExtendedLogger.LegacyTagJoiner.cs (2)
23private IReadOnlyList<KeyValuePair<string, object?>>? _incomingTags; 42public void SetIncomingTags(IReadOnlyList<KeyValuePair<string, object?>> value)
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (1)
24IReadOnlyList<KeyValuePair<string, object?>> attributes,
Microsoft.Extensions.Telemetry.Abstractions (4)
Latency\Registration\LatencyContextRegistrationOptions.cs (4)
18public IReadOnlyList<string> CheckpointNames { get; set; } = new List<string>(); 24public IReadOnlyList<string> MeasureNames { get; set; } = new List<string>(); 30public IReadOnlyList<string> TagNames { get; set; } = new List<string>(); 36private static void AddToList(IReadOnlyList<string> list, string[] names)
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
137var list = (IReadOnlyList<KeyValuePair<string, object?>>)lms;
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
39case IReadOnlyList<KeyValuePair<string, object?>> l:
Microsoft.Extensions.Telemetry.Tests (19)
Enrichment\ApplicationEnricherTagTests.cs (1)
16var dimensions = ApplicationEnricherTags.DimensionNames;
Enrichment\ProcessEnricherDimensionsTests.cs (1)
17IReadOnlyList<string> dimensions = ProcessEnricherTagNames.DimensionNames;
Logging\ExtendedLoggerTests.cs (7)
80var snap = collector.GetSnapshot(); 197var snap = collector.GetSnapshot(); 262var snap = collector.GetSnapshot(); 322var snap = collector.GetSnapshot(); 391var snap = collector.GetSnapshot(); 500var snap = collector.GetSnapshot(); 543var state = snap[3].StructuredState;
Sampling\RandomProbabilisticSamplerTests.cs (5)
17private readonly IReadOnlyList<KeyValuePair<string, object?>> _dummyState = []; 18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty; 33new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 45var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 63var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>(
Sampling\TraceBasedSamplerTests.cs (5)
17private readonly IReadOnlyList<KeyValuePair<string, object?>> _dummyState = []; 18private readonly Func<IReadOnlyList<KeyValuePair<string, object?>>, Exception?, string> _dummyFormatter = (_, _) => string.Empty; 28new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 47new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 68new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>(
Microsoft.Extensions.Validation (3)
ValidatableTypeInfo.cs (2)
30IReadOnlyList<ValidatablePropertyInfo> members, 54internal IReadOnlyList<ValidatablePropertyInfo> Members { get; }
ValidationErrorContext.cs (1)
29public required IReadOnlyList<string> Errors { get; init; }
Microsoft.Gen.BuildMetadata.Unit.Tests (15)
GeneratorTests.cs (2)
79private static async Task<(IReadOnlyList<Diagnostic> diagnostics, IReadOnlyList<GeneratedSourceResult> sources)> RunGenerator(
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.ComplianceReports (2)
ComplianceReportsGenerator.cs (1)
72var classifiedTypes = parser.GetClassifiedTypes(receiver.TypeDeclarations);
Parser.cs (1)
30public IReadOnlyList<ClassifiedType> GetClassifiedTypes(IEnumerable<TypeDeclarationSyntax> classes)
Microsoft.Gen.ComplianceReports.Unit.Tests (17)
GeneratorTests.cs (4)
68var d = await RunGenerator(File.ReadAllText(inputFile), tmp, options); 131var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options); 154var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options: options); 164private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(string code, string? outputFile = null, Dictionary<string, string>? options = null)
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.ContextualOptions.Unit.Tests (13)
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.Logging (2)
LoggingGenerator.cs (1)
42IReadOnlyList<Model.LoggingType> logTypes = p.GetLogTypes(distinctTypes);
Parsing\Parser.cs (1)
35public IReadOnlyList<LoggingType> GetLogTypes(IEnumerable<TypeDeclarationSyntax> types)
Microsoft.Gen.Logging.Generated.Tests (12)
LogMethodTests.cs (6)
988var rol = (IReadOnlyList<KeyValuePair<string, string>>)collector.LatestRecord.State!; 999var rol = (collector.LatestRecord.State as IReadOnlyList<KeyValuePair<string, string?>>)!; 1015var state = (IReadOnlyList<KeyValuePair<string, string>>)record.State!;
LogPropertiesTests.cs (3)
62var state = _logger.LatestRecord.StructuredState!; 79var state = _logger.LatestRecord.StructuredState!; 117var state = _logger.LatestRecord.StructuredState!;
TagProviderTests.cs (2)
166var state = latestRecord.StructuredState!; 192var state = latestRecord.StructuredState!;
Utils.cs (1)
95public static string? GetValue(this IReadOnlyList<KeyValuePair<string, string>> state, string key)
Microsoft.Gen.Logging.Unit.Tests (27)
AttributeParserTests.cs (13)
24var diagnostics = await RunGenerator(@" 38var diagnostics = await RunGenerator(@" 54var diagnostics = await RunGenerator(@" 68var diagnostics = await RunGenerator(@" 82var diagnostics = await RunGenerator(@" 97var diagnostics = await RunGenerator(@$" 119var diagnostics = await RunGenerator(@" 133var diagnostics = await RunGenerator(@" 148var diagnostics = await RunGenerator(@" 162var diagnostics = await RunGenerator(@$" 188var diagnostics = await RunGenerator(Source); 218var diagnostics = await RunGenerator(Source); 225private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(string code)
ParserTests.cs (1)
675(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) =
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.MetadataExtractor (8)
MetadataReportsGenerator.cs (2)
124var meteringClasses = meteringParser.GetMetricClasses(receiver.TypeDeclarations); 152var classifiedTypes = parser.GetClassifiedTypes(receiver.TypeDeclarations);
src\Generators\Microsoft.Gen.ComplianceReports\ComplianceReportsGenerator.cs (1)
72var classifiedTypes = parser.GetClassifiedTypes(receiver.TypeDeclarations);
src\Generators\Microsoft.Gen.ComplianceReports\Parser.cs (1)
30public IReadOnlyList<ClassifiedType> GetClassifiedTypes(IEnumerable<TypeDeclarationSyntax> classes)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
58public IReadOnlyList<MetricType> GetMetricClasses(IEnumerable<TypeDeclarationSyntax> types)
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
21public string GenerateReport(IReadOnlyList<ReportedMetricClass> metricClasses, CancellationToken cancellationToken)
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsGenerator.cs (1)
69var meteringClasses = meteringParser.GetMetricClasses(receiver.ClassDeclarations);
src\Generators\Microsoft.Gen.MetricsReports\MetricsReportsHelpers.cs (1)
12internal static ReportedMetricClass[] MapToCommonModel(IReadOnlyList<MetricType> meteringClasses, string? rootNamespace)
Microsoft.Gen.MetadataExtractor.Unit.Tests (18)
GeneratorTests.cs (5)
87var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 132var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 156var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 182var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 199private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.Metrics (4)
Emitter.cs (1)
21public string EmitMetrics(IReadOnlyList<MetricType> metricTypes, CancellationToken cancellationToken)
MetricFactoryEmitter.cs (1)
17public string Emit(IReadOnlyList<MetricType> metricClasses, CancellationToken cancellationToken)
MetricsGenerator.cs (1)
36var metricClasses = p.GetMetricClasses(nodes.OfType<TypeDeclarationSyntax>());
Parser.cs (1)
58public IReadOnlyList<MetricType> GetMetricClasses(IEnumerable<TypeDeclarationSyntax> types)
Microsoft.Gen.Metrics.Generated.Tests (10)
MetricTests.cs (6)
55var measurements = collector.GetMeasurementSnapshot(); 82var measurements = collector.GetMeasurementSnapshot(); 110var measurements = collector.GetMeasurementSnapshot(); 138var measurements = collector.GetMeasurementSnapshot(); 170var measurements = collector.GetMeasurementSnapshot(); 194var measurements = collector.GetMeasurementSnapshot();
MetricTests.Ext.cs (4)
41var measurements = collector.GetMeasurementSnapshot(); 66var measurements = collector.GetMeasurementSnapshot(); 93var measurements = collector.GetMeasurementSnapshot(); 120var measurements = collector.GetMeasurementSnapshot();
Microsoft.Gen.Metrics.Unit.Tests (100)
ParserTests.cs (50)
22var d = await RunGenerator(@" 38var d = await RunGenerator(@$" 54var d = await RunGenerator(@$" 73var d = await RunGenerator(@$" 101var d = await RunGenerator(@$" 117var d = await RunGenerator(@" 131var d = await RunGenerator(@" 145var d = await RunGenerator(@" 158var d = await RunGenerator(@" 171var d = await RunGenerator(@" 185var d = await RunGenerator(@" 199var d = await RunGenerator(@" 213var d = await RunGenerator(@" 227var d = await RunGenerator(@" 241var d = await RunGenerator(@" 255var d = await RunGenerator(@" 268var d = await RunGenerator(@" 281var d = await RunGenerator(@" 314var d = await RunGenerator(@" 347var d = await RunGenerator(@" 364var d = await RunGenerator(@" 380var d = await RunGenerator(@" 398var d = await RunGenerator(@$" 412var d = await RunGenerator(@" 426var d = await RunGenerator(@" 441var d = await RunGenerator(@" 484var d = await RunGenerator(@" 506var d = await RunGenerator(@" 530var d = await RunGenerator(@" 567var d = await RunGenerator(@" 583var d = await RunGenerator(@" 596var d = await RunGenerator(@" 609var d = await RunGenerator(@" 625var d = await RunGenerator(@" 642var d = await RunGenerator(@" 659var d = await RunGenerator(@" 675var d = await RunGenerator(@" 691var d = await RunGenerator(@" 708var d = await RunGenerator(@" 722var d = await RunGenerator(@" 738var d = await RunGenerator(@" 748private static async Task<IReadOnlyList<Diagnostic>> RunGenerator( 801var d = await RunGenerator(@" 814var d = await RunGenerator(@" 840var d = await RunGenerator(@" 865var d = await RunGenerator(@" 897var d = await RunGenerator(@" 928var d = await RunGenerator(@" 941var d = await RunGenerator(@" 961var d = await RunGenerator(@$"
ParserTests.Diagnostics.cs (23)
15var d = await RunGenerator(@" 41var d = await RunGenerator(@" 71var d = await RunGenerator(@" 102var d = await RunGenerator(@" 131var d = await RunGenerator(@" 195var d = await RunGenerator(@" 220var d = await RunGenerator(@" 247var d = await RunGenerator(@" 278var d = await RunGenerator(@" 344var d = await RunGenerator(@$" 380var d = await RunGenerator(sb.ToString()); 394var d = await RunGenerator(@$" 408var d = await RunGenerator(@" 432var d = await RunGenerator(@" 449var d = await RunGenerator(@" 470var d = await RunGenerator(@$" 489var d = await RunGenerator(@" 503var d = await RunGenerator(@" 517var d = await RunGenerator(@" 531var d = await RunGenerator(@" 562var d = await RunGenerator(sb.ToString()); 571var d = await RunGenerator(@" 600var d = await RunGenerator(@$"
ParserTests.StrongTypes.cs (14)
15var d = await RunGenerator(@" 34var d = await RunGenerator(@" 63var d = await RunGenerator(@" 143var d = await RunGenerator(@" 163var d = await RunGenerator(@" 176var d = await RunGenerator(@" 209var d = await RunGenerator(@" 273var d = await RunGenerator(@" 402var d = await RunGenerator(@" 523var d = await RunGenerator(@" 564var d = await RunGenerator(@" 611var d = await RunGenerator(sb.ToString()); 618var d = await RunGenerator(@" 667var d = await RunGenerator(@"
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Gen.MetricsReports (4)
MetricDefinitionEmitter.cs (1)
21public string GenerateReport(IReadOnlyList<ReportedMetricClass> metricClasses, CancellationToken cancellationToken)
MetricsReportsGenerator.cs (1)
69var meteringClasses = meteringParser.GetMetricClasses(receiver.ClassDeclarations);
MetricsReportsHelpers.cs (1)
12internal static ReportedMetricClass[] MapToCommonModel(IReadOnlyList<MetricType> meteringClasses, string? rootNamespace)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
58public IReadOnlyList<MetricType> GetMetricClasses(IEnumerable<TypeDeclarationSyntax> types)
Microsoft.Gen.MetricsReports.Unit.Tests (18)
GeneratorTests.cs (5)
52var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 92var d = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 112var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 135var diags = await RunGenerator(await File.ReadAllTextAsync(inputFile), options); 145private static async Task<IReadOnlyList<Diagnostic>> RunGenerator(
src\Shared\EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
test\Generators\Shared\RoslynTestUtils.cs (10)
184public static IReadOnlyList<Diagnostic> FilterDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 202public static IReadOnlyList<Diagnostic> FilterOutDiagnostics(this IEnumerable<Diagnostic> diagnostics, params DiagnosticDescriptor[] filter) 229public static (IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources) RunGenerator( 244public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 258public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 288public static Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 301public static async Task<(IReadOnlyList<Diagnostic> diagnostics, ImmutableArray<GeneratedSourceResult> generatedSources)> RunGenerator( 392public static async Task<IReadOnlyList<Diagnostic>> RunAnalyzer( 414private static IReadOnlyList<Diagnostic> Sort(ImmutableArray<Diagnostic> diags) 434public static async Task<IReadOnlyList<string>> RunAnalyzerAndFixer(
Microsoft.Maui (19)
Core\Extensions\VisualTreeElementExtensions.cs (7)
60 public static IReadOnlyList<IVisualTreeElement> GetVisualTreeDescendants(this IVisualTreeElement visualElement) => 85 public static IReadOnlyList<IVisualTreeElement> GetVisualTreeElements(this IVisualTreeElement visualElement, double x1, double y1, double x2, double y2) => 94 public static IReadOnlyList<IVisualTreeElement> GetVisualTreeElements(this IVisualTreeElement visualElement, Rect rectangle) 113 public static IReadOnlyList<IVisualTreeElement> GetVisualTreeElements(this IVisualTreeElement visualElement, double x, double y) => 122 public static IReadOnlyList<IVisualTreeElement> GetVisualTreeElements(this IVisualTreeElement visualElement, Point point) 262 var children = parent.GetVisualChildren(); 326 var children = visualElement.GetVisualChildren();
Core\IApplication.cs (1)
14 IReadOnlyList<IWindow> Windows { get; }
Core\IGridLayout.cs (2)
15 IReadOnlyList<IGridRowDefinition> RowDefinitions { get; } 20 IReadOnlyList<IGridColumnDefinition> ColumnDefinitions { get; }
Core\IMenuFlyoutItem.cs (1)
16 IReadOnlyList<IKeyboardAccelerator>? KeyboardAccelerators => null;
Core\IStackNavigation.cs (1)
11 void NavigationFinished(IReadOnlyList<IView> newStack);
Core\IVisualTreeElement.cs (1)
12 IReadOnlyList<IVisualTreeElement> GetVisualChildren();
Layouts\GridLayoutManager.cs (2)
155 static Definition[] InitializeRows(IReadOnlyList<IGridRowDefinition> rowDefinitions) 176 static Definition[] InitializeColumns(IReadOnlyList<IGridColumnDefinition> columnDefinitions)
Platform\WindowExtensions.cs (1)
19 internal static IReadOnlyList<IWindow> GetWindows()
Primitives\NavigationRequestedEventArgs.cs (2)
7 public IReadOnlyList<IView> NavigationStack { get; } 9 public NavigationRequest(IReadOnlyList<IView> newNavigationStack, bool animated)
VisualDiagnostics\AdornerModel.cs (1)
16 public IReadOnlyList<Rect> MarginZones => marginZones;
Microsoft.Maui.Controls (90)
Application\Application.cs (3)
413 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => this.Windows; 424 IReadOnlyList<IWindow> IApplication.Windows => _windows; 426 public IReadOnlyList<Window> Windows => _windows;
Cells\Cell.cs (1)
321 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren()
Element\Element.cs (8)
75 IReadOnlyList<Element> _logicalChildrenReadonly; 162 internal IReadOnlyList<Element> LogicalChildrenInternal 186 IReadOnlyList<Element> IElementController.LogicalChildren => LogicalChildrenInternal; 565 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() 705 IReadOnlyList<Element> children = queue.Dequeue().LogicalChildrenInternal; 811 IReadOnlyList<Element> children = queue.Dequeue().LogicalChildrenInternal; 1077 IReadOnlyList<Element> _inner; 1079 public TemporaryWrapper(IReadOnlyList<Element> inner)
IElementController.cs (1)
27 IReadOnlyList<Element> LogicalChildren { get; }
ILayoutController.cs (1)
8 IReadOnlyList<Element> Children { get; }
INavigation.cs (2)
10 IReadOnlyList<Page> ModalStack { get; } 12 IReadOnlyList<Page> NavigationStack { get; }
Internals\PropertyPropagationExtensions.cs (1)
11 internal static void PropagatePropertyChanged(string propertyName, Element element, IReadOnlyList<IVisualTreeElement> children)
ITemplatedItemsList.cs (1)
20 IReadOnlyList<string> ShortNames { get; }
Items\SelectionChangedEventArgs.cs (3)
11 public IReadOnlyList<object> PreviousSelection { get; } 13 public IReadOnlyList<object> CurrentSelection { get; } 15 static readonly IReadOnlyList<object> s_empty = new List<object>(0);
Layout\Grid.cs (2)
116 IReadOnlyList<IGridRowDefinition> IGridLayout.RowDefinitions => _rowDefs ??= new(RowDefinitions); 117 IReadOnlyList<IGridColumnDefinition> IGridLayout.ColumnDefinitions => _colDefs ??= new(ColumnDefinitions);
LegacyLayouts\Grid.cs (2)
439 IReadOnlyList<IGridRowDefinition> IGridLayout.RowDefinitions => RowDefinitions.ToList(); 440 IReadOnlyList<IGridColumnDefinition> IGridLayout.ColumnDefinitions => ColumnDefinitions.ToList();
LegacyLayouts\Layout.cs (3)
185 public IReadOnlyList<Element> Children => InternalChildren; 194 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => Children.ToList().AsReadOnly(); 547 IReadOnlyList<Element> children = LogicalChildrenInternal;
ListProxy.cs (2)
44 if (_list == null && enumerable is IReadOnlyList<object>) 45 _list = new ReadOnlyListAdapter((IReadOnlyList<object>)enumerable);
ListView\ListView.cs (1)
25 IReadOnlyList<IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => _visualChildren;
Menu\MenuFlyoutItem.cs (1)
29 IReadOnlyList<IKeyboardAccelerator>? IMenuFlyoutItem.KeyboardAccelerators => new List<IKeyboardAccelerator>(KeyboardAccelerators);
NavigationModel.cs (3)
37 public IReadOnlyList<Page> Modals 55 public IReadOnlyList<IReadOnlyList<Page>> Tree
NavigationPage\NavigationPage.cs (5)
456 void IStackNavigation.NavigationFinished(IReadOnlyList<IView> newStack) 475 void SyncToNavigationStack(IReadOnlyList<IView> newStack) 505 IReadOnlyList<IView> NavigationStack => this.Navigation.NavigationStack; 690 var navStack = Navigation.NavigationStack; 730 protected override IReadOnlyList<Page> GetNavigationStack()
NavigationPage\NavigationPage.Legacy.cs (1)
268 protected override IReadOnlyList<Page> GetNavigationStack()
NavigationPage\NavigationPageToolbar.cs (1)
223 var stack = navigationPage.Navigation.NavigationStack;
NavigationProxy.cs (4)
77 public IReadOnlyList<Page> ModalStack 83 public IReadOnlyList<Page> NavigationStack 158 protected virtual IReadOnlyList<Page> GetModalStack() 164 protected virtual IReadOnlyList<Page> GetNavigationStack()
NavigationStepRequest.cs (1)
27 public IReadOnlyList<Page> Pages => _pages;
Platform\ModalNavigationManager\ModalNavigationManager.cs (1)
13 public IReadOnlyList<Page> ModalStack => _modalPages.Pages;
ReadOnlyCastingList.cs (2)
41 readonly IReadOnlyList<TFrom> _readonlyList; 43 public ReadOnlyCastingReadOnlyList(IReadOnlyList<TFrom> list)
ReadOnlyListAdapter.cs (2)
13 readonly IReadOnlyList<object> _list; 15 public ReadOnlyListAdapter(IReadOnlyList<object> list)
Region.cs (1)
17 IReadOnlyList<Rect> Regions { get; }
Shell\ISearchHandlerController.cs (1)
11 IReadOnlyList<object> ListProxy { get; }
Shell\IShellController.cs (1)
47 bool ProposeNavigation(ShellNavigationSource source, ShellItem item, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel);
Shell\RouteRequestBuilder.cs (2)
202 string GetNextSegment(IReadOnlyList<string> matchedSegments) 272 public IReadOnlyList<string> FullSegments => _fullSegments;
Shell\SearchHandler.cs (1)
277 IReadOnlyList<object> ISearchHandlerController.ListProxy => ListProxy;
Shell\Shell.cs (6)
906 bool IShellController.ProposeNavigation(ShellNavigationSource source, ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> stack, bool canCancel) 934 var stack = shellSection?.Stack; 935 var modalStack = shellSection?.Navigation?.ModalStack; 1680 var stack = shellSection.Stack; 1939 var navStack = CurrentSection?.Navigation?.NavigationStack; 2086 protected override IReadOnlyList<Page> GetNavigationStack() => SectionProxy?.NavigationStack;
Shell\ShellFlyoutItemsManager.cs (2)
15 ReadOnlyObservableCollectionWithSource<IReadOnlyList<Element>> _flyoutItemsReadonly; 21 _flyoutItemsReadonly = new ReadOnlyObservableCollectionWithSource<IReadOnlyList<Element>>();
Shell\ShellNavigationManager.cs (8)
346 IReadOnlyList<Page> stack, 484 IReadOnlyList<Page> sectionStack, 485 IReadOnlyList<Page> modalStack) 488 var navStack = shellSection.Navigation.NavigationStack; 517 public static ShellNavigationState GetNavigationState(ShellItem shellItem, ShellSection shellSection, ShellContent shellContent, IReadOnlyList<Page> sectionStack, IReadOnlyList<Page> modalStack) 581 public static List<Page> BuildFlattenedNavigationStack(IReadOnlyList<Page> startingList, IReadOnlyList<Page> modalStack)
Shell\ShellSection.cs (8)
257 public IReadOnlyList<Page> Stack => _navStack; 647 protected virtual IReadOnlyList<Page> GetNavigationStack() => _navStack; 651 var stack = Stack; 1060 protected override IReadOnlyList<Page> GetNavigationStack() => _owner.GetNavigationStack(); 1226 ShellNavigationState GetUpdatedStatus(IReadOnlyList<Page> stack) 1231 var modalStack = shellSection?.Navigation?.ModalStack; 1251 void IStackNavigation.NavigationFinished(IReadOnlyList<IView> newStack) 1286 public IReadOnlyList<Page> Stack => section.Stack;
ShellToolbar.cs (1)
72 var stack = _shell.Navigation.NavigationStack;
SwipeView\SwipeView.cs (1)
99 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren()
TableView\TableSection.cs (1)
159 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => this._children.Cast<IVisualTreeElement>().ToList().AsReadOnly();
TableView\TableView.cs (1)
171 IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => new List<Maui.IVisualTreeElement>() { this.Root };
TemplatedItemsList.cs (1)
183 public IReadOnlyList<string> ShortNames
TemplateUtilities.cs (1)
92 IReadOnlyList<Element> children = queue.Dequeue().LogicalChildrenInternal;
ViewExtensions.cs (1)
510 var modalStack = window.Navigation.ModalStack;
Window\Window.cs (1)
725 protected override IReadOnlyList<Page> GetModalStack()
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledMarkupExtensions\ArrayExtension.cs (1)
20 IEnumerable<Instruction> ProvideValue(TypeReference typeTypeRef, IReadOnlyList<INode> items, ModuleDefinition module, ILContext context)
Microsoft.Maui.Controls.SourceGen (4)
CodeBehindGenerator.cs (4)
760 public AssemblyCaches(IReadOnlyList<XmlnsDefinitionAttribute> xmlnsDefinitions, IReadOnlyList<IAssemblySymbol> internalsVisible) 766 public IReadOnlyList<XmlnsDefinitionAttribute> XmlnsDefinitions { get; } 768 public IReadOnlyList<IAssemblySymbol> InternalsVisible { get; }
Microsoft.Maui.Essentials (4)
VersionTracking\VersionTracking.shared.cs (4)
68 IReadOnlyList<string> VersionHistory { get; } 73 IReadOnlyList<string> BuildHistory { get; } 297 public IReadOnlyList<string> VersionHistory => versionTrail[versionsKey].ToArray(); 299 public IReadOnlyList<string> BuildHistory => versionTrail[buildsKey].ToArray();
Microsoft.Maui.Graphics (6)
Text\AbstractAttributedText.cs (1)
8 public abstract IReadOnlyList<IAttributedTextRun> Runs { get; }
Text\AttributedText.cs (2)
9 IReadOnlyList<IAttributedTextRun> runs, 19 public override IReadOnlyList<IAttributedTextRun> Runs { get; }
Text\AttributedTextExtensions.cs (1)
53 public static IReadOnlyList<IAttributedText> CreateParagraphs(this IAttributedText attributedText)
Text\IAttributedText.cs (1)
8 IReadOnlyList<IAttributedTextRun> Runs { get; }
Text\MutableAttributedText.cs (1)
16 public override IReadOnlyList<IAttributedTextRun> Runs => _runs;
Microsoft.ML.AutoML (8)
API\BinaryClassificationExperiment.cs (1)
395var metrics = _context.BinaryClassification.CrossValidateNonCalibrated(datasetManager.Dataset, pipeline, fold, metricManager.LabelColumn);
API\MulticlassClassificationExperiment.cs (1)
373var metrics = _context.MulticlassClassification.CrossValidate(datasetManager.Dataset, pipeline, fold, metricManager.LabelColumn);
API\RegressionExperiment.cs (1)
400var metrics = _context.Regression.CrossValidate(datasetManager.Dataset, pipeline, fold, metricManager.LabelColumn);
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (1)
43var datasetSplit = _mLContext!.Data.CrossValidationSplit(crossValidateDatasetManager.Dataset, crossValidateDatasetManager.Fold, crossValidateDatasetManager.SamplingKeyColumnName);
ColumnInference\PurposeInference.cs (3)
51private IReadOnlyList<ReadOnlyMemory<char>> _cachedData; 83public IReadOnlyList<ReadOnlyMemory<char>> GetColumnData() 123var data = column.GetColumnData();
Utils\SplitUtil.cs (1)
17var splits = context.Data.CrossValidationSplit(trainData, (int)numFolds, samplingKeyColumnName: samplingKeyColumn);
Microsoft.ML.AutoML.Tests (1)
AutoFitTests.cs (1)
590var dataCV = context.Data.CrossValidationSplit(dataFull, numberOfFolds: 2);
Microsoft.ML.Core (17)
ComponentModel\ComponentCatalog.cs (2)
139public IReadOnlyList<Type> SignatureTypes { get; } 160public IReadOnlyList<string> LoadNames { get; }
Data\AnnotationUtils.cs (1)
303IReadOnlyList<DataViewSchema.Column> list = schema?.GetColumns(role);
Data\IProgressChannel.cs (2)
81public readonly IReadOnlyList<string> UnitNames; 87public readonly IReadOnlyList<string> MetricNames;
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);
Utilities\Utils.cs (1)
84public static int Size<T>(IReadOnlyList<T> x)
Microsoft.ML.Data (34)
DataLoadSave\Database\LoadColumnNameAttribute.cs (1)
38internal readonly IReadOnlyList<string> Sources;
DataLoadSave\DataOperationsCatalog.cs (1)
458public IReadOnlyList<TrainTestData> CrossValidationSplit(IDataView data, int numberOfFolds = 5, string samplingKeyColumnName = null, int? seed = null)
Evaluators\BinaryClassifierEvaluator.cs (4)
141var prob = schema.GetColumns(AnnotationUtils.Const.ScoreValueKind.Probability); 161var prob = schema.GetColumns(AnnotationUtils.Const.ScoreValueKind.Probability); 197var probInfos = schema.GetColumns(AnnotationUtils.Const.ScoreValueKind.Probability); 632var prob = schema.GetColumns(new RoleMappedSchema.ColumnRole(AnnotationUtils.Const.ScoreValueKind.Probability));
Evaluators\EvaluatorBase.cs (2)
79var stratCols = schema.GetColumns(MamlEvaluatorBase.Strat); 113var stratCols = schema.GetColumns(MamlEvaluatorBase.Strat);
Evaluators\EvaluatorUtils.cs (1)
1629var confusionTable = confusionMatrix.Counts;
Evaluators\Metrics\ConfusionMatrix.cs (9)
21public IReadOnlyList<double> PerClassPrecision { get; } 26public IReadOnlyList<double> PerClassRecall { get; } 30/// The actual classes are in the rows of the table (stored in the outer <see cref="IReadOnlyList{T}"/>), and the predicted classes 31/// in the columns(stored in the inner <see cref="IReadOnlyList{T}"/>). 33public IReadOnlyList<IReadOnlyList<double>> Counts { get; } 45internal IReadOnlyList<ReadOnlyMemory<char>> PredictedClassesIndicators; 88List<IReadOnlyList<double>> counts = new List<IReadOnlyList<double>>(NumberOfClasses);
Evaluators\Metrics\MulticlassClassificationMetrics.cs (2)
90public IReadOnlyList<double> TopKAccuracyForAllK { get; } 110public IReadOnlyList<double> PerClassLogLoss { get; }
Evaluators\Metrics\RankingMetrics.cs (2)
30public IReadOnlyList<double> NormalizedDiscountedCumulativeGains { get; } 47public IReadOnlyList<double> DiscountedCumulativeGains { get; }
Evaluators\MulticlassClassificationEvaluator.cs (1)
111var score = schema.GetColumns(AnnotationUtils.Const.ScoreValueKind.Score);
Prediction\Calibrator.cs (1)
1197public IReadOnlyList<float> BinProbs => _binProbs;
TrainCatalog.cs (6)
249public IReadOnlyList<CrossValidationResult<BinaryClassificationMetrics>> CrossValidateNonCalibrated( 274public IReadOnlyList<CrossValidationResult<CalibratedBinaryClassificationMetrics>> CrossValidate( 473public IReadOnlyList<CrossValidationResult<ClusteringMetrics>> CrossValidate( 553public IReadOnlyList<CrossValidationResult<MulticlassClassificationMetrics>> CrossValidate( 623public IReadOnlyList<CrossValidationResult<RegressionMetrics>> CrossValidate( 714public IReadOnlyList<CrossValidationResult<RankingMetrics>> CrossValidate(
Transforms\ColumnBindingsBase.cs (1)
662public IReadOnlyList<int> AddedColumnIndices { get; }
Transforms\ColumnConcatenatingTransformer.cs (1)
138public IReadOnlyList<(string name, string alias)> Sources => _sources.AsReadOnly();
Transforms\ExtensionsCatalog.cs (1)
48internal static IReadOnlyList<InputOutputColumnPair> ConvertFromValueTuples((string outputColumnName, string inputColumnName)[] infos) =>
Transforms\Normalizer.cs (1)
503internal readonly IReadOnlyList<IColumnFunction> ColumnFunctions;
Microsoft.ML.DataView (1)
SchemaDebuggerProxy.cs (1)
32public IReadOnlyList<KeyValuePair<string, object>> Values { get; }
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
56var feats = rms.GetColumns(RoleMappedSchema.ColumnRole.Feature);
Microsoft.ML.Experimental (1)
OneToOneTransformerBaseExtensions.cs (1)
15public static IReadOnlyList<InputOutputColumnPair> GetColumnPairs(this OneToOneTransformerBase transformer) =>
Microsoft.ML.FastTree (19)
GamModelParameters.cs (2)
285public IReadOnlyList<double> GetBinUpperBounds(int featureIndex) 323public IReadOnlyList<double> GetBinEffects(int featureIndex)
RegressionTree.cs (11)
67public IReadOnlyList<int> LeftChild => _lteChild; 74public IReadOnlyList<int> RightChild => _gtChild; 80public IReadOnlyList<int> NumericalSplitFeatureIndexes => _numericalSplitFeatureIndexes; 87public IReadOnlyList<float> NumericalSplitThresholds => _numericalSplitThresholds; 93public IReadOnlyList<bool> CategoricalSplitFlags => _categoricalSplitFlags; 98public IReadOnlyList<double> LeafValues => _leafValues; 106public IReadOnlyList<int> GetCategoricalSplitFeaturesAt(int nodeIndex) 123public IReadOnlyList<int> GetCategoricalCategoricalSplitFeatureRangeAt(int nodeIndex) 137public IReadOnlyList<double> SplitGains => _splitGains; 211public IReadOnlyList<double> GetLeafSamplesAt(int leafIndex) 227public IReadOnlyList<double> GetLeafSampleWeightsAt(int leafIndex)
TreeEnsemble.cs (2)
25public IReadOnlyList<double> TreeWeights { get; } 30public IReadOnlyList<T> Trees { get; }
Utils\RegressionTreeBaseUtils.cs (4)
23public static IDataView RegressionTreeEnsembleAsIDataView(IHost host, double bias, IReadOnlyList<double> treeWeights, IReadOnlyList<RegressionTreeBase> trees) 114var quantileTrees = trees as IReadOnlyList<QuantileRegressionTree>;
Microsoft.ML.GenAI.Core (9)
Pipeline\CausalLMPipeline.cs (3)
247var inputIds = this.Tokenizer.EncodeToIds(prompt); 258var tokens = this.Tokenizer.EncodeToTokens(x, out var _, false, false); 308var inputIds = this.Tokenizer.EncodeToIds(prompt);
Trainer\CausalLMDataset.cs (6)
60var inputIds = tokenizer.EncodeToIds(input); 61var outputIds = tokenizer.EncodeToIds(input + output); 70public static CausalLMDataset Create(IEnumerable<IReadOnlyList<int>> inputIds, IEnumerable<IReadOnlyList<int>> labelIds) 84public static CausalLMDataset Create(IReadOnlyList<int> inputIds, IReadOnlyList<int> labelIds)
Microsoft.ML.GenAI.LLaMA (4)
LlamaChatCompletionService.cs (2)
33public async Task<IReadOnlyList<ChatMessageContent>> GetChatMessageContentsAsync(ChatHistory chatHistory, PromptExecutionSettings? executionSettings = null, Kernel? kernel = null, CancellationToken cancellationToken = default) 36var replies = await _textGenerationService.GetTextContentsAsync(prompt, executionSettings, kernel, cancellationToken);
LlamaTextCompletionService.cs (2)
61public Task<IReadOnlyList<TextContent>> GetTextContentsAsync(string prompt, PromptExecutionSettings? executionSettings = null, Kernel? kernel = null, CancellationToken cancellationToken = default) 75return Task.FromResult<IReadOnlyList<TextContent>>([new TextContent(response)]);
Microsoft.ML.GenAI.LLaMA.Tests (1)
LLaMA3_1Tests.cs (1)
83var tokenizeIds = tokenizer.EncodeToIds(message, true, false);
Microsoft.ML.GenAI.Mistral.Tests (1)
Mistral_7B_Instruct_V0_3Tests.cs (1)
128var tokenizeIds = tokenizer.EncodeToIds(message, false, false);
Microsoft.ML.GenAI.Phi (4)
Phi3\Phi3CausalLMChatCompletionService.cs (2)
32public async Task<IReadOnlyList<ChatMessageContent>> GetChatMessageContentsAsync( 39var replies = await _textGenerationService.GetTextContentsAsync(prompt, executionSettings, kernel, cancellationToken);
Phi3\Phi3CausalLMTextGenerationService.cs (2)
31public Task<IReadOnlyList<TextContent>> GetTextContentsAsync(string prompt, PromptExecutionSettings? executionSettings = null, Kernel? kernel = null, CancellationToken cancellationToken = default) 45return Task.FromResult<IReadOnlyList<TextContent>>([new TextContent(response)]);
Microsoft.ML.GenAI.Phi.Tests (4)
Phi2Tests.cs (1)
56var tokenized = tokenizer.EncodeToIds(message, true, false);
Phi3Tests.cs (2)
125var endIds = tokenizer.EncodeToIds("<|end|>", addBeginningOfSentence: false, addEndOfSentence: false, considerPreTokenization: false, considerNormalization: false); 142var tokenizeIds = tokenizer.EncodeToIds(message, true, false, considerPreTokenization: true);
SemanticKernelTests.cs (1)
46var responses = await chatService.GetChatMessageContentsAsync(chatHistory);
Microsoft.ML.IntegrationTests (29)
Explainability.cs (1)
104var weights = linearModel.Weights;
IntrospectiveTraining.cs (3)
156var shapeFunctionBins = gamModel.GetBinUpperBounds(i); 157var shapeFunctionValues = gamModel.GetBinEffects(i); 241var weights = linearModel.Weights;
ModelFiles.cs (2)
315var ageBinUpperBounds = gamModel.GetBinUpperBounds(ageIndex); 316var ageBinEffects = gamModel.GetBinEffects(ageIndex);
Training.cs (21)
104var firstModelWeights = firstModel.Model.Weights; 108var firstModelWeightsPrime = firstModel.Model.Weights; 112var secondModelWeights = secondModel.Model.Weights; 148var firstModelWeights = firstModel.Model.GetLinearWeights(); 152var firstModelWeightsPrime = firstModel.Model.GetLinearWeights(); 156var secondModelWeights = secondModel.Model.GetLinearWeights(); 192var firstModelWeights = firstModel.Model.Weights; 196var firstModelWeightsPrime = firstModel.Model.Weights; 200var secondModelWeights = secondModel.Model.Weights; 236var firstModelWeights = firstModel.Model.SubModel.Weights; 240var firstModelWeightsPrime = firstModel.Model.SubModel.Weights; 244var secondModelWeights = secondModel.Model.SubModel.Weights; 330var firstModelWeights = firstModel.Model.Weights; 334var firstModelWeightsPrime = firstModel.Model.Weights; 338var secondModelWeights = secondModel.Model.Weights; 374var firstModelWeights = firstModel.Model.Weights; 378var firstModelWeightsPrime = firstModel.Model.Weights; 382var secondModelWeights = secondModel.Model.Weights; 422var firstModelWeights = firstModel.Model.SubModel.Weights; 426var firstModelWeightsPrime = firstModel.Model.SubModel.Weights; 430var secondModelWeights = secondModel.Model.SubModel.Weights;
Validation.cs (2)
45var cvResult = mlContext.Regression.CrossValidate(data, pipeline, numberOfFolds: 5); 87var result = mlContext.Ranking.CrossValidate(trainDataView, trainingPipeline, numberOfFolds: numFolds);
Microsoft.ML.Maml (2)
HelpCommand.cs (2)
226IReadOnlyList<string> loadNames, object args, int? columns) 312private void ShowAliases(IndentedTextWriter writer, IReadOnlyList<string> names)
Microsoft.ML.Mkl.Components (3)
OlsLinearRegression.cs (3)
738public IReadOnlyList<double> StandardErrors => _standardErrors; 746public IReadOnlyList<double> TValues => _tValues; 754public IReadOnlyList<double> PValues => _pValues;
Microsoft.ML.PerformanceTests (2)
Harness\Metrics.cs (1)
54var results = summary[benchmark].ExecuteResults;
RffTransform.cs (1)
51var cvResults = mlContext.MulticlassClassification.CrossValidate(data, pipeline, numberOfFolds: 5);
Microsoft.ML.Recommender (5)
MatrixFactorizationPredictor.cs (4)
71public IReadOnlyList<float> LeftFactorMatrix => _leftFactorMatrix; 81public IReadOnlyList<float> RightFactorMatrix => _rightFactorMatrix; 342var matrixColumnList = schema.GetColumns(RecommenderUtils.MatrixColumnIndexKind); 347var matrixRowList = schema.GetColumns(RecommenderUtils.MatrixRowIndexKind);
RecommenderCatalog.cs (1)
135public IReadOnlyList<CrossValidationResult<RegressionMetrics>> CrossValidate(
Microsoft.ML.Samples (11)
Dynamic\DataOperations\CrossValidationSplit.cs (1)
30var folds = mlContext.Data
Dynamic\Trainers\BinaryClassification\Gam.cs (2)
68var binUpperBounds = gam.GetBinUpperBounds(i); 71var binEffects = gam.GetBinEffects(i);
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (2)
76var binUpperBounds = gam.GetBinUpperBounds(i); 79var binEffects = gam.GetBinEffects(i);
Dynamic\Trainers\Regression\GamAdvanced.cs (2)
68var binUpperBounds = gam.GetBinUpperBounds(i); 71var binEffects = gam.GetBinEffects(i);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (2)
76var binUpperBounds = gam.GetBinUpperBounds(i); 79var binEffects = gam.GetBinEffects(i);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (1)
58var weightsValues = model.Model.Weights;
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (1)
62var weightsValues = model.Model.Weights;
Microsoft.ML.StandardTrainers (17)
FactorizationMachine\FactorizationMachineTrainer.cs (3)
362var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 415var featureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature); 440var validFeatureColumns = data.Schema.GetColumns(RoleMappedSchema.ColumnRole.Feature);
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (4)
259public IReadOnlyList<float> GetLinearWeights() => _linearWeights; 268public IReadOnlyList<float> GetLatentWeights() 294private IReadOnlyList<string> FeatureColumns { get; } 299private IReadOnlyList<DataViewType> FeatureColumnTypes { get; }
Optimizer\LearningRateScheduler.cs (3)
70private readonly IReadOnlyList<LearningRateSchedulerItem> _lrSchedule; 76private IReadOnlyList<LearningRateSchedulerItem> GetDefaultLearningDecayItems() 101public LsrDecay(IReadOnlyList<LearningRateSchedulerItem> lrschedule, float baseLearningRate = 0.1f)
Standard\LinearModelParameters.cs (1)
95public IReadOnlyList<float> Weights => new WeightsCollection(this);
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (6)
265public IReadOnlyList<int> GetLabelHistogram() => Array.ConvertAll(_labelHistogram, x => (int)x); 270public IReadOnlyList<long> GetLabelHistogramLong() => _labelHistogram; 277public IReadOnlyList<IReadOnlyList<int>> GetFeatureHistogram() => Array.ConvertAll(_featureHistogram, x => Array.ConvertAll(x, y => (int)y)); 282public IReadOnlyList<IReadOnlyList<long>> GetFeatureHistogramLong() => _featureHistogram;
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1123var cross = _mlContext.MulticlassClassification.CrossValidate(dataView, pipeline, 2);
Microsoft.ML.TestFrameworkCommon (1)
Utility\PathResolver.cs (1)
134private bool AddFallbacks(List<string> fallbacks, string rid, IReadOnlyList<RuntimeFallbacks> allFallbacks)
Microsoft.ML.Tests (16)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (2)
399var weights = linearModel.Weights; 664var cvResults = mlContext.MulticlassClassification.CrossValidate(data, pipeline, numberOfFolds: 5);
Scenarios\Api\TestApi.cs (4)
312var cvSplit = mlContext.Data.CrossValidationSplit(fullInput); 313var cvSplitWithSeed = mlContext.Data.CrossValidationSplit(fullInput, seed: 10); 314var cvSplitWithSeedAndSamplingKey = mlContext.Data.CrossValidationSplit(fullInput, seed: 10, samplingKeyColumnName: "Workclass"); 500var cvSplits = mlContext.Data.CrossValidationSplit(inputWithKey, numberOfFolds: 2, samplingKeyColumnName: colname);
TrainerEstimators\MatrixFactorizationTests.cs (3)
91var leftMatrix = model.Model.LeftFactorMatrix; 92var rightMatrix = model.Model.RightFactorMatrix; 826var leftFactorMatrix = model.Model.LeftFactorMatrix;
TrainerEstimators\TreeEstimators.cs (4)
870private void CheckSummary(ICanGetSummaryAsIDataView modelParameters, double bias, IReadOnlyList<double> treeWeights, IReadOnlyList<RegressionTreeBase> trees) 872var quantileTrees = trees as IReadOnlyList<QuantileRegressionTree>;
Transformers\CountTargetEncodingTests.cs (3)
83IReadOnlyList<float> weights = null; 91IReadOnlyList<float> weightsNoNoise = null; 100IReadOnlyList<float> weightsNoNoise2 = null;
Microsoft.ML.TimeSeries (36)
SrCnnEntireAnomalyDetector.cs (2)
724private void GetExpectedValuePeriod(double[] values, double[][] results, IReadOnlyList<double> residual) 733private void GetMarginPeriod(double[] values, double[][] results, IReadOnlyList<double> residual, double sensitivity)
STL\FastLoess.cs (4)
26private readonly IReadOnlyList<double> _x; 27private readonly IReadOnlyList<double> _y; 40public FastLoess(IReadOnlyList<double> xValues, IReadOnlyList<double> yValues, bool isTemporal = true, int r = -1)
STL\InnerStl.cs (8)
91public IReadOnlyList<double> SeasonalComponent 99public IReadOnlyList<double> TrendComponent 107public IReadOnlyList<double> Residual 117public bool Decomposition(IReadOnlyList<double> yValues, int np) 179private void Detrending(IReadOnlyList<double> y, IReadOnlyList<double> t, double[] detrendedY) 256private void Deseasonalizing(IReadOnlyList<double> y, double[] s, double[] deseasonSeries) 311private static List<double> MovingAverage(IReadOnlyList<double> s, int length)
STL\LeastSquares.cs (5)
16private readonly IReadOnlyList<double> _x; 17private readonly IReadOnlyList<double> _y; 26public LeastSquares(IReadOnlyList<double> x, IReadOnlyList<double> y) 44public AbstractPolynomialModel RegressionDegreeOneWeighted(IReadOnlyList<double> weights)
STL\LocalRegression.cs (4)
17private readonly IReadOnlyList<double> _x; 18private readonly IReadOnlyList<double> _y; 36public LocalRegression(IReadOnlyList<double> x, IReadOnlyList<double> y, int selfIndex, int r, bool isTemporal = true)
STL\Loess.cs (6)
35private IReadOnlyList<double> _x; 36private IReadOnlyList<double> _y; 47public Loess(IReadOnlyList<double> xValues, IReadOnlyList<double> yValues, bool isTemporal, int? r = null) 85private void Init(IReadOnlyList<double> xValues, IReadOnlyList<double> yValues)
STL\MathsTools.cs (3)
32public static double QuickSelect(IReadOnlyList<double> values, int k) 34var nums = values; 77public static int FindMedianIndex(IReadOnlyList<double> values, int start, int end)
STL\PolynomialModel.cs (4)
12protected IReadOnlyList<double> Coeffs; 14public AbstractPolynomialModel(IReadOnlyList<double> coeffs) 28public PolynomialModel(IReadOnlyList<double> coeffs) 61public LinearModel(IReadOnlyList<double> coeffs)
Microsoft.ML.Tokenizers (58)
EncodeResults.cs (1)
18public IReadOnlyList<T> Tokens { get; set; }
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\EnglishRobertaTokenizer.cs (10)
356private IReadOnlyList<EncodedToken> EncodeInternal(ReadOnlySpan<char> text) 829public IReadOnlyList<int> ConvertIdsToOccurrenceRanks(IReadOnlyList<int> ids) 851public IReadOnlyList<int> ConvertIdsToOccurrenceValues(IReadOnlyList<int> ids) 873public IReadOnlyList<int> ConvertOccurrenceRanksToIds(IReadOnlyList<int> ranks) 911private IReadOnlyList<EncodedToken> ModifyTokenListOffsets(IReadOnlyList<EncodedToken> tokens, Span<int> indexMapping) 1061private static void WordToPairs(IReadOnlyList<string> word, HashSet<(string, string)> pairs)
Model\SentencePieceBaseModel.cs (2)
104public abstract IReadOnlyList<EncodedToken> EncodeToTokens( 112public abstract IReadOnlyList<int> EncodeToIds(
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)
Model\SentencePieceUnigramModel.cs (2)
100public override IReadOnlyList<EncodedToken> EncodeToTokens(string? text, ReadOnlySpan<char> textSpan, out string? normalizedText, bool addBeginningOfSentence, bool addEndOfSentence, bool considerNormalization) 551public override IReadOnlyList<int> EncodeToIds(
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)
BertTokenizerTests.cs (15)
55var tokens = tokenizer.EncodeToTokens(text, out string? normalizedText); 70var ids = tokenizer.EncodeToIds(text); 128var tokens = tokenizer.EncodeToTokens(text, out string? normalizedText); 142var ids = tokenizer.EncodeToIds(text); 196var tokens = tokenizer.EncodeToTokens(text, out string? normalizedText); 210var ids = tokenizer.EncodeToIds(text); 238var tokens = bertTokenizer.EncodeToTokens(text, out string? normalizedText); 313var tokens = bertTokenizer.EncodeToTokens(text, out string? normalizedText); 324IReadOnlyList<int> ids = bertTokenizer.EncodeToIds(text); 368var ids1 = bertTokenizer.EncodeToIds(text1); 371var ids2 = bertTokenizer.EncodeToIds(text2); 468var ids1 = bertTokenizer.EncodeToIds(text1); 471var ids2 = bertTokenizer.EncodeToIds(text2); 561var ids1 = bertTokenizer.EncodeToIds(text1, addSpecialTokens: false); 564var ids2 = bertTokenizer.EncodeToIds(text2, addSpecialTokens: false);
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);
EnglishRobertaTests.cs (4)
181IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _); 182IReadOnlyList<EncodedToken> encoding1 = tokenizer.EncodeToTokens(text.AsSpan(), out _); 243IReadOnlyList<int> ids; 244IReadOnlyList<EncodedToken> encoding;
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);
NormalizerTests.cs (1)
65IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens(text, out normalizedText);
PreTokenizerTests.cs (1)
66IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(text, out _);
SentencePieceTests.cs (5)
47IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens("Hello", out _); 61IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens("Hello", out _); 115IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens(rareChar, out _); 152IReadOnlyList<EncodedToken> bpeTokens = bpe.EncodeToTokens(input, out _); 153IReadOnlyList<EncodedToken> unigramTokens = unigram.EncodeToTokens(input, out _);
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);
TokenizerTests.cs (5)
36IReadOnlyList<int> ids = tokenizer.EncodeToIds("hello, world", 5, out string? normalizedText, out int charsConsumed); 133IReadOnlyList<int> fullIdsList = tokenizer.EncodeToIds(input); 139IReadOnlyList<int> partialIdsList = tokenizer.EncodeToIds(input, maxTokenCount: i, out string? processedText, out int charsConsumed); 146IReadOnlyList<int>? prefixIds = null; 147IReadOnlyList<int>? suffixIds = null;
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>();
WordPieceTests.cs (6)
62IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens("", out _); 65IReadOnlyList<int> ids = tokenizer.EncodeToIds(""); 156IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens(text, out _); 166IReadOnlyList<int> ids = tokenizer.EncodeToIds(text); 194IReadOnlyList<EncodedToken> tokens = tokenizer.EncodeToTokens(text, out _); 210IReadOnlyList<int> ids = tokenizer.EncodeToIds(text);
Microsoft.ML.TorchSharp (11)
Extensions\TokenizerExtensions.cs (1)
52internal static IReadOnlyList<int> EncodeToConverted(this Tokenizer tokenizer, string sentence)
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 };
NasBert\NerTrainer.cs (2)
170IReadOnlyList<EncodedToken> encoding = Tokenizer.EncodeToTokens(sentence, out string normalizedText); 380IReadOnlyList<EncodedToken> encoding = tokenizer.EncodeToTokens(sentence, out string normalizedText);
Roberta\QATrainer.cs (6)
404var contextTokens = Tokenizer.EncodeToTokens(contextString, out string normalized); 406var contextTokenId = Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(contextTokens.Select(t => t.Id).ToArray()); 413var questionTokenId = Tokenizer.EncodeToConverted(question.ToString()); 438private Dictionary<int, int> AlignAnswerPosition(IReadOnlyList<string> tokens, string text) 857var contextTokenId = _parent.Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(_parent.Tokenizer.EncodeToIds(context.ToString())); 859var questionTokenId = _parent.Tokenizer.RobertaModel().ConvertIdsToOccurrenceRanks(_parent.Tokenizer.EncodeToIds(question.ToString()));
Microsoft.ML.Transforms (26)
ExpressionTransformer.cs (2)
114private static int FindVectorInputColumn(IHostEnvironment env, IReadOnlyList<string> inputColumnNames, SchemaShape inputSchema, DataViewType[] inputTypes) 134private static int FindVectorInputColumn(IHostEnvironment env, IReadOnlyList<string> inputColumnNames, DataViewSchema inputSchema, DataViewType[] inputTypes)
MetricStatistics.cs (5)
56public static void AddToEach(IReadOnlyList<double> src, IReadOnlyList<MetricStatistics> dest) 247public IReadOnlyList<MetricStatistics> PerClassLogLoss { get; private set; } 285public IReadOnlyList<MetricStatistics> DiscountedCumulativeGains { get; private set; } 290public IReadOnlyList<MetricStatistics> NormalizedDiscountedCumulativeGains { get; private set; }
MissingValueDroppingTransformer.cs (1)
105internal IReadOnlyList<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
MissingValueIndicatorTransformer.cs (1)
84internal IReadOnlyList<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
PermutationFeatureImportanceExtensions.cs (2)
641private static double[] ComputeSequenceDeltas(IReadOnlyList<double> a, IReadOnlyList<double> b)
Text\LdaTransform.cs (10)
196public readonly IReadOnlyList<IReadOnlyList<ItemScore>> ItemScoresPerTopic; 199public readonly IReadOnlyList<IReadOnlyList<WordItemScore>> WordScoresPerTopic; 201internal ModelParameters(IReadOnlyList<IReadOnlyList<ItemScore>> itemScoresPerTopic) 206internal ModelParameters(IReadOnlyList<IReadOnlyList<WordItemScore>> wordScoresPerTopic) 787foreach (var wordScores in summary.WordScoresPerTopic) 801foreach (var itemScores in summary.ItemScoresPerTopic)
Text\NgramHashingTransformer.cs (1)
896public IReadOnlyList<string> InputColumnNames => InputColumnNamesArray;
Text\NgramTransform.cs (3)
323private static void AssertValid(IHostEnvironment env, int[] counts, IReadOnlyList<int> lims, SequencePool pool) 338private static NgramIdFinder GetNgramIdFinderAdd(IHostEnvironment env, int[] counts, IReadOnlyList<int> lims, SequencePool pool, bool requireIdf) 1010public IReadOnlyList<int> MaximumNgramsCounts => _maximumNgramsCounts;
Text\WordTokenizing.cs (1)
506public IReadOnlyList<char> Separators => SeparatorsArray;
Microsoft.NET.Build.Tasks (2)
ResolveTargetingPackAssets.cs (2)
545public IReadOnlyList<TaskItem> Analyzers; 546public IReadOnlyList<TaskItem> References;
Microsoft.NET.HostModel (8)
Bundle\BundleContents.cs (2)
21public IReadOnlyList<FileSpec> IncludedFiles { get; } 26public IReadOnlyList<FileSpec> ExcludedFiles { get; }
Bundle\Bundler.cs (2)
264public string GenerateBundle(IReadOnlyList<FileSpec> fileSpecs) 469public BundleContents ComputeBundleContents(IReadOnlyList<FileSpec> fileSpecs)
MachO\BinaryFormat\Blobs\CodeDirectoryBlob.cs (4)
104public IReadOnlyList<IReadOnlyList<byte>> SpecialSlotHashes => _specialSlotHashes; 107internal IReadOnlyList<IReadOnlyList<byte>> CodeHashes => _codeHashes;
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAsset.cs (2)
651internal static bool ValidateAssetGroup(string path, (StaticWebAsset First, StaticWebAsset Second, IReadOnlyList<StaticWebAsset> Others) group, out string reason, HashSet<string> reusableGroupSet) 750(StaticWebAsset First, StaticWebAsset Second, IReadOnlyList<StaticWebAsset> Others) group,
Microsoft.NET.Sdk.Razor.Tasks (7)
FindAssembliesWithReferencesTo.cs (2)
47var provider = new ReferenceResolver((IReadOnlyList<string>)targetAssemblyNames, referenceItems); 50var assemblyNames = provider.ResolveAssemblies();
ReferenceResolver.cs (5)
16private readonly IReadOnlyList<AssemblyItem> _assemblyItems; 19public ReferenceResolver(IReadOnlyList<string> targetAssemblies, IReadOnlyList<AssemblyItem> assemblyItems) 34public IReadOnlyList<string> ResolveAssemblies() 102protected virtual IReadOnlyList<AssemblyItem> GetReferences(string file)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Data\StaticWebAsset.cs (2)
651internal static bool ValidateAssetGroup(string path, (StaticWebAsset First, StaticWebAsset Second, IReadOnlyList<StaticWebAsset> Others) group, out string reason, HashSet<string> reusableGroupSet) 750(StaticWebAsset First, StaticWebAsset Second, IReadOnlyList<StaticWebAsset> Others) group,
Microsoft.Private.Windows.Core (35)
System\Collections\Generic\CollectionExtensions.cs (1)
16internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count)
System\IO\BinaryReaderExtensions.cs (3)
60/// <inheritdoc cref="WritePrimitives{T}(BinaryWriter, IReadOnlyList{T})"/> 201internal static unsafe void WritePrimitives<T>(this BinaryWriter writer, IReadOnlyList<T> values) 278static void WritePrimitiveCollection(BinaryWriter writer, IReadOnlyList<T> values)
System\IO\BinaryWriterExtensions.cs (1)
30internal static void Write(this BinaryWriter writer, IReadOnlyList<MemberTypeInfo> memberTypeInfo)
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (2)
55public IReadOnlyList<T> ArrayObjects { get; } 62internal ArrayRecord(ArrayInfo arrayInfo, IReadOnlyList<T> arrayObjects) : base(arrayInfo)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleObject.cs (1)
22public ArraySingleObject(Id objectId, IReadOnlyList<object?> arrayObjects)
System\Private\Windows\BinaryFormat\Serializer\ArraySinglePrimitive.cs (1)
28public ArraySinglePrimitive(Id objectId, IReadOnlyList<T> arrayObjects)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.cs (2)
20private readonly IReadOnlyList<object?> _records; 22internal ArraySingleString(Id objectId, IReadOnlyList<object?> arrayObjects, IReadOnlyRecordMap recordMap)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (2)
12private readonly IReadOnlyList<object?> _recordList; 15internal StringListAdapter(IReadOnlyList<object?> recordList, IReadOnlyRecordMap recordMap)
System\Private\Windows\BinaryFormat\Serializer\ClassInfo.cs (2)
20public IReadOnlyList<string> MemberNames { get; } 22public ClassInfo(Id objectId, string name, IReadOnlyList<string> memberNames)
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (7)
20public IReadOnlyList<object?> MemberValues { get; } 21internal IReadOnlyList<MemberTypeInfo> MemberTypeInfo { get; } 27public IReadOnlyList<string> MemberNames => ClassInfo.MemberNames; 48IReadOnlyList<MemberTypeInfo> memberTypeInfo, 49IReadOnlyList<object?> memberValues) 61IReadOnlyList<MemberTypeInfo> memberTypeInfo, 62IReadOnlyList<object?> memberValues)
System\Private\Windows\BinaryFormat\Serializer\ClassWithId.cs (2)
31public ClassWithId(Id id, ClassRecord metadataClass, IReadOnlyList<object?> memberValues) 41: this(id, metadataClass, (IReadOnlyList<object?>)memberValues)
System\Private\Windows\BinaryFormat\Serializer\ClassWithMembersAndTypes.cs (4)
25IReadOnlyList<MemberTypeInfo> memberTypeInfo, 26IReadOnlyList<object?> memberValues) 35IReadOnlyList<MemberTypeInfo> memberTypeInfo, 37: this(classInfo, libraryId, memberTypeInfo, (IReadOnlyList<object>)memberValues)
System\Private\Windows\BinaryFormat\Serializer\Record.cs (1)
86private protected static void WriteRecords(BinaryWriter writer, IReadOnlyList<object?> objects, bool coalesceNulls)
System\Private\Windows\BinaryFormat\Serializer\SystemClassWithMembersAndTypes.cs (4)
22IReadOnlyList<MemberTypeInfo> memberTypeInfo, 23IReadOnlyList<object?> memberValues) 30IReadOnlyList<MemberTypeInfo> memberTypeInfo, 32: this(classInfo, memberTypeInfo, (IReadOnlyList<object?>)memberValues)
System\Private\Windows\Ole\DataFormatsCore.cs (2)
58IReadOnlyList<T>? formats, 122IReadOnlyList<T>? formats,
Microsoft.SourceLink.Tools.Package (1)
SourceLinkMap.cs (1)
75public IReadOnlyList<Entry> Entries => _entries;
Microsoft.TemplateEngine.Abstractions (41)
Components\ISdkInfoProvider.cs (2)
34string ProvideConstraintRemedySuggestion(IReadOnlyList<string> supportedVersions, IReadOnlyList<string> viableInstalledVersions);
Components\IWorkloadsInfoProvider.cs (1)
26string ProvideConstraintRemedySuggestion(IReadOnlyList<string> supportedWorkloads);
ICreationEffects.cs (2)
15IReadOnlyList<IFileChange> FileChanges { get; } 31IReadOnlyList<IFileChange2> FileChanges { get; }
ICreationResult.cs (2)
14IReadOnlyList<IPostAction> PostActions { get; } 20IReadOnlyList<ICreationPath> PrimaryOutputs { get; }
IGenerator.cs (1)
78Task<IReadOnlyList<IScanTemplateInfo>> GetTemplatesFromMountPointAsync(IMountPoint source, CancellationToken cancellationToken);
Installer\CheckUpdateResult.cs (3)
26IReadOnlyList<VulnerabilityInfo> vulnerabilities) 47public IReadOnlyList<VulnerabilityInfo> Vulnerabilities { get; private set; } 76IReadOnlyList<VulnerabilityInfo> vulnerabilities)
Installer\IInstaller.cs (1)
34Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionAsync(IEnumerable<IManagedTemplatePackage> templatePackages, IManagedTemplatePackageProvider provider, CancellationToken cancellationToken);
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)
Installer\VulnerabilityInfo.cs (1)
11public readonly record struct VulnerabilityInfo(int Severity, IReadOnlyList<string> AdvisoryUris);
IShortNameList.cs (1)
10IReadOnlyList<string> ShortNameList { get; }
ITemplateEngineHost.cs (4)
17IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> BuiltInComponents { get; } 35IReadOnlyList<string> FallbackHostTemplateConfigNames { get; } 81bool OnPotentiallyDestructiveChangesDetected(IReadOnlyList<IFileChange> changes, IReadOnlyList<IFileChange> destructiveChanges);
ITemplateInfo.cs (1)
27IReadOnlyList<ITemplateParameter> Parameters { get; }
ITemplateMetadata.cs (4)
28IReadOnlyList<string> Classifications { get; } 82IReadOnlyList<string> ShortNameList { get; } 87IReadOnlyList<Guid> PostActions { get; } 92IReadOnlyList<TemplateConstraintInfo> Constraints { get; }
IValidationInfo.cs (1)
16IReadOnlyList<IValidationEntry> ValidationErrors { get; }
Parameters\ParameterSetData.cs (1)
18public ParameterSetData(IParameterDefinitionSet parameters, IReadOnlyList<ParameterData> parameterData)
TemplateFiltering\ITemplateMatchInfo.cs (1)
19IReadOnlyList<MatchInfo> MatchDisposition { get; }
TemplatePackage\IManagedTemplatePackageProvider.cs (4)
23Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionsAsync(IEnumerable<IManagedTemplatePackage> templatePackages, CancellationToken cancellationToken); 31Task<IReadOnlyList<UpdateResult>> UpdateAsync(IEnumerable<UpdateRequest> updateRequests, CancellationToken cancellationToken); 39Task<IReadOnlyList<UninstallResult>> UninstallAsync(IEnumerable<IManagedTemplatePackage> templatePackages, CancellationToken cancellationToken); 49Task<IReadOnlyList<InstallResult>> InstallAsync(IEnumerable<InstallRequest> installRequests, CancellationToken cancellationToken);
TemplatePackage\ITemplatePackageProvider.cs (1)
26Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken);
Microsoft.TemplateEngine.Cli (140)
Alias\AliasManipulationResult.cs (2)
13internal AliasManipulationResult(AliasManipulationStatus status, string? aliasName, IReadOnlyList<string>? aliasTokens) 24internal IReadOnlyList<string> AliasTokens { get; }
Alias\AliasModel.cs (6)
11: this(new Dictionary<string, IReadOnlyList<string>>()) 15internal AliasModel(IReadOnlyDictionary<string, IReadOnlyList<string>> commandAliases) 17CommandAliases = new Dictionary<string, IReadOnlyList<string>>(commandAliases.ToDictionary(x => x.Key, x => x.Value), StringComparer.OrdinalIgnoreCase); 21internal Dictionary<string, IReadOnlyList<string>> CommandAliases { get; set; } 23internal void AddCommandAlias(string aliasName, IReadOnlyList<string> aliasTokens) 28internal bool TryRemoveCommandAlias(string aliasName, out IReadOnlyList<string>? aliasTokens)
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);
CliTemplateEngineHost.cs (4)
19IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> builtIns, 20IReadOnlyList<string>? fallbackHostNames = null, 91bool ITemplateEngineHost.OnPotentiallyDestructiveChangesDetected(IReadOnlyList<IFileChange> changes, IReadOnlyList<IFileChange> destructiveChanges)
CliTemplateInfo.cs (5)
32public IReadOnlyList<string> Classifications => _templateInfo.Classifications; 60public IReadOnlyList<ITemplateParameter> Parameters => ParameterDefinitions; 79public IReadOnlyList<string> ShortNameList => _templateInfo.ShortNameList; 81public IReadOnlyList<Guid> PostActions => _templateInfo.PostActions; 83public IReadOnlyList<TemplateConstraintInfo> Constraints => _templateInfo.Constraints;
CliTemplateParameter.cs (2)
128internal IReadOnlyList<string> ShortNameOverrides => _shortNameOverrides; 130internal IReadOnlyList<string> LongNameOverrides => _longNameOverrides;
Commands\AliasAssignmentCoordinator.cs (3)
13internal static IReadOnlyList<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> AssignAliasesForParameter(IEnumerable<CliTemplateParameter> parameters, HashSet<string> takenAliases) 15List<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> result = new();
Commands\BaseCommand.cs (1)
120IReadOnlyList<ITemplateInfo> availableTemplates = await templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
Commands\CommandLineUtils.cs (2)
12internal static string FormatArgumentUsage(IReadOnlyList<Argument> arguments) 72internal static string FormatArgumentUsage(IReadOnlyList<Option> options)
Commands\create\InstantiateCommand.cs (3)
25internal IReadOnlyList<Option> PassByOptions => 49IReadOnlyList<ITemplateInfo> templates = await templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false); 136IReadOnlyList<IManagedTemplatePackage> templatePackages =
Commands\create\InstantiateCommand.Help.cs (1)
369internal static void ShowUsage(Command? command, IReadOnlyList<string> shortNames, HelpContext context)
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
203new { Option = baselineOption, Condition = matchInfos.All(mi => !mi.IsBaselineMatch), AllowedValues = (IReadOnlyList<string?>)templateGroup.Baselines },
Commands\create\InstantiateCommand.TabCompletion.cs (1)
115IReadOnlyList<ITemplateInfo> templates =
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)
Commands\details\DetailsCommandArgs.cs (1)
28internal IReadOnlyList<string>? AdditionalSources { get; }
Commands\Extensions.cs (2)
54IReadOnlyList<(ITemplateInfo Template, IReadOnlyList<TemplateConstraintResult> Result)> results =
Commands\GlobalArgs.cs (1)
46protected static (bool, IReadOnlyList<string>?) ParseTabularOutputSettings(ITabularOutputCommand command, ParseResult parseResult)
Commands\install\InstallCommandArgs.cs (2)
37public IReadOnlyList<string> TemplatePackages { get; } 41public IReadOnlyList<string>? AdditionalSources { get; }
Commands\InvalidTemplateParametersException.cs (2)
10public InvalidTemplateParametersException(CliTemplateInfo template, IReadOnlyDictionary<CliTemplateParameter, IReadOnlyList<string>> parameterErrors) 41internal IReadOnlyDictionary<CliTemplateParameter, IReadOnlyList<string>> ParameterErrors { get; }
Commands\ITabularOutputCommand.cs (1)
19internal IReadOnlyList<string>? ColumnsToDisplay { get; }
Commands\list\ListCommandArgs.cs (1)
41public IReadOnlyList<string>? ColumnsToDisplay { get; }
Commands\NewCommand.cs (1)
31IReadOnlyList<ITemplateInfo> templates =
Commands\search\SearchCommandArgs.cs (1)
39public IReadOnlyList<string>? ColumnsToDisplay { get; }
Commands\uninstall\UninstallCommandArgs.cs (1)
10public IReadOnlyList<string> TemplatePackages { get; }
Commands\update\UpdateCommandArgs.cs (1)
21public IReadOnlyList<string>? AdditionalSources { get; }
Components.cs (1)
11public static IReadOnlyList<(Type Type, IIdentifiedComponent Instance)> AllComponents { get; } =
HostSpecificTemplateData.cs (1)
97public IReadOnlyList<string> UsageExamples { get; } = Array.Empty<string>();
JExtensions.cs (1)
192internal static IReadOnlyList<string> ArrayAsStrings(this JsonNode? token, string? propertyName = null)
PostActionDispatcher.cs (1)
82IReadOnlyList<IPostAction> postActions = isDryRun
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (1)
112IReadOnlyList<string> jsonFiles = FindFilesInCurrentFolderOrParentFolder(
PostActionProcessors\PostActionProcessorBase.cs (9)
33protected static IReadOnlyList<string> GetTargetForSource(ICreationEffects2 creationEffects, string sourcePathGlob, string outputBasePath) 51protected static IReadOnlyList<string> GetConfiguredFiles( 71if (TryParseAsJson(targetFiles, out IReadOnlyList<string> paths)) 78IReadOnlyList<string> ProcessPaths(IReadOnlyList<string> paths) 88protected static IReadOnlyList<string>? GetTargetFilesPaths( 99if (TryParseAsJson(targetFiles, out IReadOnlyList<string> paths)) 106IReadOnlyList<string> GetFullPaths(IEnumerable<string> paths) 123private static bool TryParseAsJson(string targetFiles, out IReadOnlyList<string> paths)
TabularOutput\CliTabularOutputSettings.cs (2)
13IReadOnlyList<string>? columnsToDisplay = null, 39public IReadOnlyList<string> ColumnsToDisplay { get; }
TabularOutput\TabularOutput.cs (1)
362private readonly IReadOnlyList<string> _lines;
TabularOutput\TemplateGroupDisplay.cs (2)
136internal static IReadOnlyList<TemplateGroupTableRow> GetTemplateGroupsForListDisplay( 200private static IReadOnlyList<TemplateGroupTableRow> GetTemplateGroupsForListDisplay(
TemplateGroup.cs (9)
60internal IReadOnlyList<string> ShortNames 76internal IReadOnlyList<string?> Languages 92internal IReadOnlyList<string?> Types 108internal IReadOnlyList<string> Baselines 154internal IReadOnlyList<string> Authors 183internal IReadOnlyList<CliTemplateInfo> Templates { get; private set; } 198internal async Task<IReadOnlyList<IManagedTemplatePackage>> GetManagedTemplatePackagesAsync( 202var templatePackages = await GetTemplatePackagesAsync(templatePackageManager, cancellationToken).ConfigureAwait(false); 213internal async Task<IReadOnlyList<ITemplatePackage>> GetTemplatePackagesAsync(
TemplateInvoker.cs (2)
231IReadOnlyList<string> missingParamNamesCanonical = instantiateResult.ErrorMessage.Split(new[] { ',' }, StringSplitOptions.TrimEntries) 280IReadOnlyList<IFileChange> destructiveChanges = instantiateResult.CreationEffects.FileChanges.Where(x => x.ChangeKind != ChangeKind.Create).ToList();
TemplateListCoordinator.cs (1)
253IReadOnlyList<ITemplateInfo> templates = await _templatePackageManager.GetTemplatesAsync(cancellationToken).ConfigureAwait(false);
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);
TemplatePackageDisplay.cs (2)
380private void DisplayVulnerabilityInfo(IReadOnlyList<VulnerabilityInfo> vulnerabilities, IReporter reporter) 396var evaluationResult = await constraintsManager.EvaluateConstraintsAsync(templates, cancellationToken).ConfigureAwait(false);
TemplateResolution\BaseTemplateResolver.cs (1)
22private readonly IReadOnlyList<ITemplateInfo>? _templateList;
TemplateResolution\TemplateGroupMatchInfo.cs (3)
22private readonly IReadOnlyList<MatchInfo> _groupDispositions; 23private readonly IReadOnlyList<ITemplateMatchInfo> _templateMatchInfos; 64internal IReadOnlyList<MatchInfo> GroupMatchInfos
TemplateResolution\TemplateResolutionResult.cs (2)
21private readonly IReadOnlyList<TemplateGroupMatchInfo> _matchInformation; 22private readonly IReadOnlyList<TemplateGroupMatchInfo> _matchedTemplateGroups;
TemplateSearch\CliSearchFiltersFactory.cs (2)
17internal CliSearchFiltersFactory(IReadOnlyList<IManagedTemplatePackage> installedPackages) 49internal static Func<TemplatePackageSearchData, IReadOnlyList<ITemplateInfo>> GetMatchingTemplatesFilter(SearchCommandArgs commandArgs)
TemplateSearch\CliTemplateSearchCoordinator.cs (12)
47IReadOnlyList<IManagedTemplatePackage> templatePackages = 53IReadOnlyList<SearchResult>? searchResults = await searchCoordinator.SearchAsync( 111internal static async Task<(NugetPackageMetadata?, IReadOnlyList<ITemplateInfo>)> SearchForPackageDetailsAsync( 121var packages = await SearchForPackageTemplatesAsync( 132internal static async Task<IReadOnlyList<ITemplateInfo>> SearchForPackageTemplatesAsync( 138var searchResults = await CliTemplateSearchCoordinatorFactory 153private static string EvaluatePackageToShow(IReadOnlyList<SearchResult> searchResults) 175IReadOnlyList<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)> results, 228IReadOnlyList<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)> results, 237var templateGroupsForPack = TemplateGroupDisplay.GetTemplateGroupsForListDisplay(packSearchResult.MatchedTemplates, language, defaultLanguage, environment);
Microsoft.TemplateEngine.Core (59)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (3)
320private static bool EvaluateCondition(IReadOnlyList<TokenRef> tokens, IReadOnlyList<Func<object>> values) 575private static object ResolveToken(TokenRef tokenRef, IReadOnlyList<Func<object>> values)
Expressions\ScopeBuilder.cs (3)
24private readonly IReadOnlyList<object> _symbolValues; 25private readonly IReadOnlyList<string> _symbolKeys; 77public IEvaluable? Build(ref int bufferLength, ref int bufferPosition, Action<IReadOnlyList<byte>> onFault, HashSet<string>? referencedVariablesKeys = null)
Operations\BalancedNesting.cs (1)
74public IReadOnlyList<IToken> Tokens { get; }
Operations\Conditional.cs (3)
114private void AddTokensOfTypeToTokenListAndTrie(ITokenTrie trie, List<IToken> tokenMasterList, IReadOnlyList<ITokenConfig> tokensOfType, int typeRemainder, Encoding encoding) 133public Implementation(Conditional definition, IReadOnlyList<IToken> tokens, ITokenTrie trie, string? id, bool initialState) 144public IReadOnlyList<IToken> Tokens { get; }
Operations\ConditionalTokens.cs (8)
22public IReadOnlyList<ITokenConfig> IfTokens { get; set; } 24public IReadOnlyList<ITokenConfig> ElseTokens { get; set; } 26public IReadOnlyList<ITokenConfig> ElseIfTokens { get; set; } 28public IReadOnlyList<ITokenConfig> EndIfTokens { get; set; } 30public IReadOnlyList<ITokenConfig> ActionableIfTokens { get; set; } 32public IReadOnlyList<ITokenConfig> ActionableElseTokens { get; set; } 34public IReadOnlyList<ITokenConfig> ActionableElseIfTokens { get; set; } 36public IReadOnlyList<string> ActionableOperations { get; set; }
Operations\ExpandVariables.cs (1)
37public IReadOnlyList<IToken> Tokens { get; }
Operations\Include.cs (1)
56public IReadOnlyList<IToken> Tokens { get; }
Operations\InlineMarkupConditional.cs (3)
66IReadOnlyList<IToken> start = new[] { Tokens.OpenConditionExpression.ToToken(processorState.Encoding) }; 78internal Implementation(InlineMarkupConditional definition, IReadOnlyList<IToken> tokens, ITokenTrie structureTrie, ITokenTrie closeConditionTrie, ITokenTrie scanBackTrie, MarkupTokenMapping mapping, string? id, bool initialState) 92public IReadOnlyList<IToken> Tokens { get; }
Operations\Phase.cs (3)
10public Phase(ITokenConfig match, IReadOnlyList<ITokenConfig> resetsWith) 15public Phase(ITokenConfig match, string? replacement, IReadOnlyList<ITokenConfig> resetsWith) 29public IReadOnlyList<ITokenConfig> ResetsWith { get; }
Operations\PhasedOperation.cs (7)
11private readonly IReadOnlyList<Phase> _config; 14public PhasedOperation(string? id, IReadOnlyList<Phase> config, bool initialState) 92private readonly IReadOnlyList<SpecializedPhase> _entryPoints; 95public Implementation(PhasedOperation definition, IReadOnlyList<IToken> config, IReadOnlyList<SpecializedPhase> entryPoints, bool initialState) 105public IReadOnlyList<IToken> Tokens { get; } 111IReadOnlyList<SpecializedPhase> nextPhases = _currentPhase?.Next ?? _entryPoints;
Operations\Region.cs (1)
62public IReadOnlyList<IToken> Tokens { get; }
Operations\Replacement.cs (1)
52public IReadOnlyList<IToken> Tokens { get; }
Operations\SetFlag.cs (2)
63public Implementation(SetFlag owner, IReadOnlyList<IToken> tokens, string? id, bool initialState) 71public IReadOnlyList<IToken> Tokens { get; }
TokenConfigExtensions.cs (1)
31public static IReadOnlyList<ITokenConfig> TokenConfigs(this IEnumerable<string> s)
Util\EncodingConfig.cs (2)
45public IReadOnlyList<IToken> VariableKeys => _variableKeys; 47public IReadOnlyList<Func<object>> VariableValues => _values;
Util\EngineConfig.cs (6)
22public EngineConfig(ILogger logger, IReadOnlyList<string> whitespaces, IReadOnlyList<string> lineEndings, IVariableCollection variables, string variableFormatString = "{0}") 32public static IReadOnlyList<string> DefaultLineEndings { get; set; } = new[] { "\r", "\n", "\r\n" }; 34public static IReadOnlyList<string> DefaultWhitespaces { get; set; } = new[] { " ", "\t" }; 36public IReadOnlyList<string> LineEndings { get; } 42public IReadOnlyList<string> Whitespaces { get; }
Util\Orchestrator.cs (4)
42public IReadOnlyList<IFileChange2> GetFileChanges(string runSpecPath, IDirectory sourceDir, string targetDir) 65public IReadOnlyList<IFileChange2> GetFileChanges(IGlobalRunSpec spec, IDirectory sourceDir, string targetDir) 95IReadOnlyList<IOperationProvider> operations = runSpec.Value.GetOperations(spec.Operations); 120private IReadOnlyList<IFileChange2> GetFileChangesInternal(IDirectory sourceDir, string targetDir, IGlobalRunSpec spec)
Util\Processor.cs (4)
13private readonly IReadOnlyList<IOperationProvider> _operations; 15private Processor(EngineConfig config, IReadOnlyList<IOperationProvider> operations) 28public static IProcessor Create(EngineConfig config, IReadOnlyList<IOperationProvider> operations) 33public IProcessor CloneAndAppendOperations(IReadOnlyList<IOperationProvider> tempOperations)
Util\ProcessorState.cs (3)
13private static readonly ConcurrentDictionary<IReadOnlyList<IOperationProvider>, ConcurrentDictionary<Encoding, Trie<OperationTerminal>>> TrieLookup = new(); 14private static readonly ConcurrentDictionary<IReadOnlyList<IOperationProvider>, List<string>> OperationsToExplicitlySetOnByDefault = new(); 21public ProcessorState(Stream source, Stream target, int bufferSize, int flushThreshold, IEngineConfig config, IReadOnlyList<IOperationProvider> operationProviders)
Util\TokenTrie.cs (2)
20public IReadOnlyList<int> TokenLength => _lengths; 22public IReadOnlyList<IToken> Tokens => _tokens;
Microsoft.TemplateEngine.Core.Contracts (19)
IEncodingConfig.cs (2)
14IReadOnlyList<IToken> VariableKeys { get; } 16IReadOnlyList<Func<object>> VariableValues { get; }
IEngineConfig.cs (2)
13IReadOnlyList<string> LineEndings { get; } 19IReadOnlyList<string> Whitespaces { get; }
IGlobalRunSpec.cs (6)
10IReadOnlyList<IPathMatcher> Exclude { get; } 12IReadOnlyList<IPathMatcher> Include { get; } 14IReadOnlyList<IPathMatcher> CopyOnly { get; } 16IReadOnlyList<IOperationProvider> Operations { get; } 20IReadOnlyList<KeyValuePair<IPathMatcher, IRunSpec>> Special { get; } 22IReadOnlyList<string> IgnoreFileNames { get; }
IOperation.cs (1)
8IReadOnlyList<IToken?> Tokens { get; }
IOrchestrator.cs (2)
15IReadOnlyList<IFileChange2> GetFileChanges(string runSpecPath, IDirectory sourceDir, string targetDir); 17IReadOnlyList<IFileChange2> GetFileChanges(IGlobalRunSpec spec, IDirectory sourceDir, string targetDir);
IProcessor.cs (1)
14IProcessor CloneAndAppendOperations(IReadOnlyList<IOperationProvider> tempOperations);
IRunSpec.cs (2)
12IReadOnlyList<IOperationProvider> GetOperations(IReadOnlyList<IOperationProvider> sourceOperations);
ITokenTrie.cs (2)
14IReadOnlyList<int> TokenLength { get; } 16IReadOnlyList<IToken> Tokens { get; }
IVariableConfig.cs (1)
10IReadOnlyList<string> Order { get; }
Microsoft.TemplateEngine.Edge (222)
_generated\1\GlobalSettingsJsonSerializerContext.GlobalSettingsData.g.cs (5)
53var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>> 68AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.BuiltInManagedProvider.GlobalSettingsData).GetProperty("Packages", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>), global::System.Array.Empty<global::System.Type>(), null), 71properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>>(options, info0); 89global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData> __value_Packages = ((global::Microsoft.TemplateEngine.Edge.BuiltInManagedProvider.GlobalSettingsData)value).Packages; 100private static extern void __set_GlobalSettingsData_Packages(global::Microsoft.TemplateEngine.Edge.BuiltInManagedProvider.GlobalSettingsData obj, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData> value);
_generated\29\TemplateCacheJsonSerializerContext.TemplateCache.g.cs (4)
94var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> 109AttributeProviderFactory = static () => typeof(global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache).GetProperty("TemplateInfo", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>), global::System.Array.Empty<global::System.Type>(), null), 112properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>(options, info2); 161global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo> __value_TemplateInfo = ((global::Microsoft.TemplateEngine.Edge.Settings.TemplateCache)value).TemplateInfo;
_generated\3\GlobalSettingsJsonSerializerContext.IReadOnlyListTemplatePackageData.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>>? _IReadOnlyListTemplatePackageData; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>> IReadOnlyListTemplatePackageData 22get => _IReadOnlyListTemplatePackageData ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>> Create_IReadOnlyListTemplatePackageData(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>, global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>(options, info); 47private void IReadOnlyListTemplatePackageDataSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>? value)
_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;
_generated\35\TemplateCacheJsonSerializerContext.IReadOnlyListTemplateConstraintInfo.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>? _IReadOnlyListTemplateConstraintInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> IReadOnlyListTemplateConstraintInfo 22get => _IReadOnlyListTemplateConstraintInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> Create_IReadOnlyListTemplateConstraintInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>, global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>(options, info); 47private void IReadOnlyListTemplateConstraintInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>? value)
_generated\36\TemplateCacheJsonSerializerContext.IReadOnlyListTemplateInfo.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>? _IReadOnlyListTemplateInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> IReadOnlyListTemplateInfo 22get => _IReadOnlyListTemplateInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> Create_IReadOnlyListTemplateInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>, global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>(options, info); 47private void IReadOnlyListTemplateInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>? value)
_generated\37\TemplateCacheJsonSerializerContext.IReadOnlyListGuid.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>>? _IReadOnlyListGuid; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>> IReadOnlyListGuid 22get => _IReadOnlyListGuid ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>> Create_IReadOnlyListGuid(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::System.Guid>, global::System.Guid>(options, info); 47private void IReadOnlyListGuidSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::System.Guid>? value)
_generated\38\TemplateCacheJsonSerializerContext.IReadOnlyListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>? _IReadOnlyListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> IReadOnlyListString 22get => _IReadOnlyListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> Create_IReadOnlyListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<string>, string>(options, info); 47private void IReadOnlyListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<string>? value)
_generated\44\TemplateCacheJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
82if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Constraints.TemplateConstraintInfo>)) 86if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Edge.Settings.TemplateInfo>)) 90if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Guid>)) 94if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
_generated\8\GlobalSettingsJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
34if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.TemplateEngine.Abstractions.Installer.TemplatePackageData>))
BuiltInManagedProvider\GlobalSettings.cs (2)
65public async Task<IReadOnlyList<TemplatePackageData>> GetInstalledTemplatePackagesAsync(CancellationToken cancellationToken) 114public async Task SetInstalledTemplatePackagesAsync(IReadOnlyList<TemplatePackageData> packages, CancellationToken cancellationToken)
BuiltInManagedProvider\GlobalSettingsData.cs (2)
14internal GlobalSettingsData(IReadOnlyList<TemplatePackageData> packages) 20internal IReadOnlyList<TemplatePackageData> Packages { get; }
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (8)
54public async Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken) 80public async Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionsAsync(IEnumerable<IManagedTemplatePackage> packages, CancellationToken cancellationToken) 84var tasks = new List<Task<IReadOnlyList<CheckUpdateResult>>>(); 104public async Task<IReadOnlyList<InstallResult>> InstallAsync(IEnumerable<InstallRequest> installRequests, CancellationToken cancellationToken) 159public async Task<IReadOnlyList<UninstallResult>> UninstallAsync(IEnumerable<IManagedTemplatePackage> packages, CancellationToken cancellationToken) 186public async Task<IReadOnlyList<UpdateResult>> UpdateAsync(IEnumerable<UpdateRequest> updateRequests, CancellationToken cancellationToken) 221var cachedPackages = await _globalSettings.GetInstalledTemplatePackagesAsync(cancellationToken).ConfigureAwait(false); 260var packages = await GetAllTemplatePackagesAsync(cancellationToken).ConfigureAwait(false);
BuiltInManagedProvider\IGlobalSettings.cs (2)
22Task<IReadOnlyList<TemplatePackageData>> GetInstalledTemplatePackagesAsync(CancellationToken cancellationToken); 27Task SetInstalledTemplatePackagesAsync(IReadOnlyList<TemplatePackageData> packages, CancellationToken cancellationToken);
Components.cs (2)
21public static IReadOnlyList<(Type Type, IIdentifiedComponent Instance)> AllComponents { get; } = 37public static IReadOnlyList<(Type Type, IIdentifiedComponent Instance)> MandatoryComponents { get; } =
Constraints\HostConstraint.cs (1)
33IReadOnlyList<HostInformation> supportedHosts = ParseArgs(args).ToList();
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)>
Constraints\WorkloadConstraintFactory.cs (8)
31private readonly Func<IReadOnlyList<string>, string> _remedySuggestionFactory; 36IReadOnlyList<WorkloadInfo> workloads, 37Func<IReadOnlyList<string>, string> remedySuggestionFactory) 49(IReadOnlyList<WorkloadInfo> workloads, Func<IReadOnlyList<string>, string> remedySuggestionFactory) = 59IReadOnlyList<string> supportedWorkloads = ParseArgs(args).ToList(); 85private static async Task<(IReadOnlyList<WorkloadInfo> Workloads, Func<IReadOnlyList<string>, string> RemedySuggestionFactory)> ExtractWorkloadInfoAsync(IEnumerable<IWorkloadsInfoProvider> workloadsInfoProviders, ILogger logger, CancellationToken token)
DefaultTemplateEngineHost.cs (8)
14private static readonly IReadOnlyList<(Type, IIdentifiedComponent)> NoComponents = []; 16private readonly IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> _hostBuiltInComponents; 22IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)>? builtIns = null, 23IReadOnlyList<string>? fallbackHostTemplateConfigNames = null, 46public IReadOnlyList<string> FallbackHostTemplateConfigNames { get; } 50public virtual IReadOnlyList<(Type InterfaceType, IIdentifiedComponent Instance)> BuiltInComponents => _hostBuiltInComponents; 84bool ITemplateEngineHost.OnPotentiallyDestructiveChangesDetected(IReadOnlyList<IFileChange> changes, IReadOnlyList<IFileChange> destructiveChanges)
FilterableTemplateInfo.cs (6)
28public IReadOnlyList<string> Classifications { get; private set; } 44public IReadOnlyList<string> ShortNameList { get; set; } 46public IReadOnlyList<string> GroupShortNameList { get; set; } 57public IReadOnlyList<ITemplateParameter> Parameters => ParameterDefinitions; 77IReadOnlyList<Guid> ITemplateMetadata.PostActions => _source?.PostActions ?? []; 79IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => _source?.Constraints ?? [];
Installers\Folder\FolderInstaller.cs (2)
40public Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionAsync(IEnumerable<IManagedTemplatePackage> packages, IManagedTemplatePackageProvider provider, CancellationToken cancellationToken) 44return Task.FromResult<IReadOnlyList<CheckUpdateResult>>(packages.Select(s => CheckUpdateResult.CreateSuccess(s, null, true)).ToList());
Installers\NuGet\Exceptions\VulnerablePackageException.cs (2)
10public VulnerablePackageException(string message, string packageIdentifier, string packageVersion, IReadOnlyList<VulnerabilityInfo> vulnerabilities) 18public IReadOnlyList<VulnerabilityInfo> Vulnerabilities { get; internal set; }
Installers\NuGet\IDownloader.cs (2)
15public NuGetPackageInfo(string author, string owners, bool reserved, string fullPath, string? nuGetSource, string packageIdentifier, string packageVersion, IReadOnlyList<VulnerabilityInfo> vulnerabilities) 41public IReadOnlyList<VulnerabilityInfo> PackageVulnerabilities { get; }
Installers\NuGet\NugetApiPackageManager.cs (2)
514public IReadOnlyList<VulnerabilityInfo> Vulnerabilities { get; } 516private IReadOnlyList<VulnerabilityInfo> ConvertVulnerabilityMetadata(IEnumerable<PackageVulnerabilityMetadata>? vulnerabilities)
Installers\NuGet\NuGetInstaller.cs (1)
108public async Task<IReadOnlyList<CheckUpdateResult>> GetLatestVersionAsync(
Settings\ComponentManager.cs (1)
202IReadOnlyList<Type> interfaceTypesToRegisterFor = type.GetInterfaces().Where(x => x != typeof(IIdentifiedComponent) && typeof(IIdentifiedComponent).IsAssignableFrom(x)).ToList();
Settings\FilteredTemplateInfo.cs (2)
12public FilteredTemplateInfo(ITemplateInfo info, IReadOnlyList<MatchInfo> matchDisposition) 20public IReadOnlyList<MatchInfo> MatchDisposition { get; set; }
Settings\Scanner.cs (2)
166IReadOnlyList<Type> typeList = asm.Value.GetTypes(); 239IReadOnlyList<IScanTemplateInfo> templateList = await generator.GetTemplatesFromMountPointAsync(source.MountPoint, cancellationToken).ConfigureAwait(false);
Settings\ScanResult.cs (6)
16IReadOnlyList<IScanTemplateInfo> templates, 17IReadOnlyList<ILocalizationLocator> localizations, 18IReadOnlyList<(string AssemblyPath, Type InterfaceType, IIdentifiedComponent Instance)> components) 39public IReadOnlyList<(string AssemblyPath, Type InterfaceType, IIdentifiedComponent Instance)> Components { get; } 45public IReadOnlyList<ILocalizationLocator> Localizations { get; } 50public IReadOnlyList<IScanTemplateInfo> Templates { get; }
Settings\TemplateCache.cs (2)
21public TemplateCache(IReadOnlyList<ITemplatePackage> allTemplatePackages, ScanResult?[] scanResults, Dictionary<string, DateTime> mountPoints, IEngineEnvironmentSettings environmentSettings) 131public IReadOnlyList<TemplateInfo> TemplateInfo { get; }
Settings\TemplateInfo.cs (5)
110public IReadOnlyList<ITemplateParameter> Parameters => ParameterDefinitions; 119public IReadOnlyList<string> Classifications { get; private set; } = new List<string>(); 157public IReadOnlyList<string> ShortNameList { get; } = new List<string>(); 237public IReadOnlyList<Guid> PostActions { get; private set; } = []; 240public IReadOnlyList<TemplateConstraintInfo> Constraints { get; private set; } = [];
Settings\TemplateMatchInfo.cs (5)
16public TemplateMatchInfoEx(ITemplateInfo info, IReadOnlyList<MatchInfo> matchDispositions) 37public IReadOnlyList<MatchInfo> MatchDisposition => _matchDisposition; 44public IReadOnlyList<MatchInfo> DispositionOfDefaults => _dispositionOfDefaults.ToList(); 67internal TemplateMatchInfo(ITemplateInfo info, IReadOnlyList<Abstractions.TemplateFiltering.MatchInfo> matchDispositions) 86public IReadOnlyList<Abstractions.TemplateFiltering.MatchInfo> MatchDisposition => _matchDisposition;
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);
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (7)
197internal static IReadOnlyList<string> ToStringReadOnlyList(this JsonObject jObject, string propertyName, IReadOnlyList<string>? defaultValue = null) 236private static IReadOnlyList<KeyValuePair<string, JsonNode?>> GetObjectProperties(JsonObject obj) 364internal static IReadOnlyList<string> ArrayAsStrings(this JsonNode? token, string? propertyName = null) 389internal static IReadOnlyList<Guid> ArrayAsGuids(this JsonNode? token, string? propertyName = null) 463internal static IReadOnlyList<string> JTokenStringOrArrayToCollection(this JsonNode? token, IReadOnlyList<string> defaultSet)
Template\IFilteredTemplateInfo.cs (1)
13IReadOnlyList<MatchInfo> MatchDisposition { get; }
Template\InputDataSet.cs (1)
22public InputDataSet(IParameterDefinitionSet parameters, IReadOnlyList<InputParameterData> parameterData)
Template\InputDataSetExtensions.cs (2)
24IReadOnlyList<InputParameterData> data = parameterSet.ResolvedValues.Select(p => 77private static void ErrorOutOnMismatchedConditionEvaluation(IReadOnlyList<InputParameterData> offendingParameters)
Template\IParameterSetBuilder.cs (1)
18bool CheckIsParametersEvaluationCorrect(IGenerator generator, ILogger logger, bool throwOnError, out IReadOnlyList<string> paramsWithInvalidEvaluations);
Template\ITemplateMatchInfo.cs (2)
14IReadOnlyList<MatchInfo> MatchDisposition { get; } 16IReadOnlyList<MatchInfo> DispositionOfDefaults { get; }
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) =>
TemplateConstraintManager.cs (4)
40public async Task<IReadOnlyList<ITemplateConstraint>> GetConstraintsAsync(IEnumerable<ITemplateInfo>? templates = null, CancellationToken cancellationToken = default) 146public async Task<IReadOnlyList<(ITemplateInfo Template, IReadOnlyList<TemplateConstraintResult> Result)>> EvaluateConstraintsAsync(IEnumerable<ITemplateInfo> templates, CancellationToken cancellationToken) 182List<(ITemplateInfo, IReadOnlyList<TemplateConstraintResult>)> evaluationResult = new();
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)
ValidationUtils.cs (3)
12internal static void LogValidationResults(ILogger logger, IReadOnlyList<IScanTemplateInfo> templates) 38internal static void LogValidationResults(ILogger logger, IReadOnlyList<ITemplate> templates) 111private static void LogValidationEntries(ILogger logger, string header, IReadOnlyList<IValidationEntry> errors, IValidationEntry.SeverityLevel severity)
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)
CombinedList.cs (6)
10private readonly IReadOnlyList<T> _first; 11private readonly IReadOnlyList<T> _second; 13public CombinedList(IReadOnlyList<T> first, IReadOnlyList<T> second) 61private readonly IReadOnlyList<T> _items; 64public Enumerator(IReadOnlyList<T> items)
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)
DefaultTemplatePackageProvider.cs (2)
42public Task<IReadOnlyList<ITemplatePackage>> GetAllTemplatePackagesAsync(CancellationToken cancellationToken) 56return Task.FromResult<IReadOnlyList<ITemplatePackage>>(list);
DirectedGraph.cs (7)
12private readonly IReadOnlyList<T> _vertices; 35public bool TryGetTopologicalSort(out IReadOnlyList<T> sortedElements) 89public DirectedGraph<T> GetSubGraphDependentOnVertices(IReadOnlyList<T> vertices, bool includeSeedVertices = false) 119public bool HasCycle(out IReadOnlyList<T> cycle) 144private static IReadOnlyList<T> GetVertices(Dictionary<T, HashSet<T>> dependenciesMap) 147private static Dictionary<T, HashSet<T>> GetDependentsMap(Dictionary<T, HashSet<T>> dependenciesMap, IReadOnlyList<T> vertices) 213public IReadOnlyList<T> GetCycle()
FileFindHelpers.cs (1)
12public static IReadOnlyList<string> FindFilesAtOrAbovePath(IPhysicalFileSystem fileSystem, string startPath, string matchPattern, Func<string, bool>? secondaryFilter = null)
Glob.cs (2)
13private readonly IReadOnlyList<IMatcher> _matchers; 17private Glob(bool negate, IReadOnlyList<IMatcher> matchers, bool canBeNameOnlyMatch)
IScanTemplateInfoExtensions.cs (5)
35public IReadOnlyList<string> Classifications => _templateInfo.Classifications; 65public IReadOnlyList<ITemplateParameter> Parameters => _templateInfo.ParameterDefinitions; 82public IReadOnlyList<string> ShortNameList => _templateInfo.ShortNameList; 84public IReadOnlyList<Guid> PostActions => _templateInfo.PostActions; 86public IReadOnlyList<TemplateConstraintInfo> Constraints => _templateInfo.Constraints;
LocalizationLocator.cs (1)
42IReadOnlyList<IValidationEntry> IValidationInfo.ValidationErrors => [];
MultiValueParameter.cs (2)
20public MultiValueParameter(IReadOnlyList<string> values) 33public IReadOnlyList<string> Values { get; }
ParameterSetDataExtensions.cs (1)
20IReadOnlyList<ParameterData> data = parameterSet.ResolvedValues.Select<KeyValuePair<ITemplateParameter, object?>, ParameterData>(p =>
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (7)
197internal static IReadOnlyList<string> ToStringReadOnlyList(this JsonObject jObject, string propertyName, IReadOnlyList<string>? defaultValue = null) 236private static IReadOnlyList<KeyValuePair<string, JsonNode?>> GetObjectProperties(JsonObject obj) 364internal static IReadOnlyList<string> ArrayAsStrings(this JsonNode? token, string? propertyName = null) 389internal static IReadOnlyList<Guid> ArrayAsGuids(this JsonNode? token, string? propertyName = null) 463internal static IReadOnlyList<string> JTokenStringOrArrayToCollection(this JsonNode? token, IReadOnlyList<string> defaultSet)
TemplateParameterExtensions.cs (1)
28public static IReadOnlyList<string> TokenizeMultiValueParameter(this string literal)
Microsoft.TemplateSearch.Common (46)
Abstractions\ITemplatePackageInfo.cs (1)
30IReadOnlyList<string> Owners { get; }
Abstractions\ITemplateSearchProvider.cs (3)
25Task<IReadOnlyList<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)>> SearchForTemplatePackagesAsync( 27Func<TemplatePackageSearchData, IReadOnlyList<ITemplateInfo>> matchingTemplatesFilter,
Abstractions\TemplatePackageSearchData.cs (2)
48public IReadOnlyList<string> Owners { get; } 62public IReadOnlyList<TemplateSearchData> Templates { get; }
Abstractions\TemplateSearchData.cs (5)
47public IReadOnlyList<string> ShortNameList => TemplateInfo.ShortNameList; 59public IReadOnlyList<string> Classifications => TemplateInfo.Classifications; 69public IReadOnlyList<ITemplateParameter> Parameters => ParameterDefinitions; 104IReadOnlyList<Guid> ITemplateMetadata.PostActions => TemplateInfo.PostActions; 106IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => TemplateInfo.Constraints;
Components.cs (1)
12public static IReadOnlyList<(Type Type, IIdentifiedComponent Instance)> AllComponents { get; } =
Providers\NuGetMetadataSearchProvider.cs (5)
62public async Task<IReadOnlyList<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)>> SearchForTemplatePackagesAsync( 64Func<TemplatePackageSearchData, IReadOnlyList<ITemplateInfo>> matchingTemplatesFilter, 80List<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)> matchingTemplates = filteredPackages 81.Select<TemplatePackageSearchData, (ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)>(package => (package, matchingTemplatesFilter(package)))
SearchResult.cs (4)
18IReadOnlyList<(ITemplatePackageInfo, IReadOnlyList<ITemplateInfo>)>? hits = null) 52public IReadOnlyList<(ITemplatePackageInfo PackageInfo, IReadOnlyList<ITemplateInfo> MatchedTemplates)> SearchHits { get; }
src\sdk\src\TemplateEngine\Shared\JExtensions.cs (7)
197internal static IReadOnlyList<string> ToStringReadOnlyList(this JsonObject jObject, string propertyName, IReadOnlyList<string>? defaultValue = null) 236private static IReadOnlyList<KeyValuePair<string, JsonNode?>> GetObjectProperties(JsonObject obj) 364internal static IReadOnlyList<string> ArrayAsStrings(this JsonNode? token, string? propertyName = null) 389internal static IReadOnlyList<Guid> ArrayAsGuids(this JsonNode? token, string? propertyName = null) 463internal static IReadOnlyList<string> JTokenStringOrArrayToCollection(this JsonNode? token, IReadOnlyList<string> defaultSet)
TemplateDiscoveryMetadata\BlobStorageTemplateInfo.cs (5)
82public IReadOnlyList<ITemplateParameter> Parameters => ParameterDefinitions; 89public IReadOnlyList<string> Classifications { get; private set; } = new List<string>(); 111public IReadOnlyList<string> ShortNameList { get; private set; } 143public IReadOnlyList<Guid> PostActions { get; private set; } = []; 146IReadOnlyList<TemplateConstraintInfo> ITemplateMetadata.Constraints => [];
TemplateDiscoveryMetadata\LegacySearchCacheReader.cs (2)
70&& TryReadTemplateList(logger, cacheObject, out IReadOnlyList<ITemplateInfo>? templateList) 98out IReadOnlyList<ITemplateInfo>? templateList)
TemplateDiscoveryMetadata\PackInfo.cs (1)
32public IReadOnlyList<string> Owners { get; } = [];
TemplateDiscoveryMetadata\PackToTemplateEntry.cs (2)
24internal IReadOnlyList<string> Owners { get; set; } = []; 30internal IReadOnlyList<TemplateIdentificationEntry> TemplateIdentificationEntry { get; }
TemplateDiscoveryMetadata\TemplateDiscoveryMetadata.cs (2)
17internal TemplateDiscoveryMetadata(string version, IReadOnlyList<ITemplateInfo> templateCache, IReadOnlyDictionary<string, PackToTemplateEntry> packToTemplateMap, IReadOnlyDictionary<string, object> additionalData) 29internal IReadOnlyList<ITemplateInfo> TemplateCache { get; }
TemplateSearchCache\TemplateSearchCache.cs (3)
12internal TemplateSearchCache(IReadOnlyList<TemplatePackageSearchData> data) 19private TemplateSearchCache(IReadOnlyList<TemplatePackageSearchData> data, string version) 27internal IReadOnlyList<TemplatePackageSearchData> TemplatePackages { get; }
TemplateSearchCoordinator.cs (3)
39public async Task<IReadOnlyList<SearchResult>> SearchAsync( 41Func<TemplatePackageSearchData, IReadOnlyList<ITemplateInfo>> matchingTemplatesFilter, 61var providerResults = await provider.SearchForTemplatePackagesAsync(packFilter, matchingTemplatesFilter, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Nuget.Frameworks\FallbackFramework.cs (3)
8using FallbackList = System.Collections.Generic.IReadOnlyList<NuGetClone.Frameworks.NuGetFramework>; 17public FallbackList Fallback { get; } 21public FallbackFramework(NuGetFramework framework, FallbackList fallbackFrameworks)
Nuget.Frameworks\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
MilvusPlayground.ApiService (1)
Program.cs (1)
115IReadOnlyList<FieldData> queryResult = await collection.QueryAsync(
MSBuild (2)
CommandLine\CommandLineParser.cs (2)
47internal IReadOnlyList<string> IncludedResponseFiles => includedResponseFiles ?? (IReadOnlyList<string>)Array.Empty<string>();
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
99[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyList<>))]
netstandard (1)
netstandard.cs (1)
121[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyList<>))]
NuGet.Build.Tasks (5)
BuildTasksUtility.cs (1)
130IReadOnlyList<IAssetsLogMessage> additionalMessages,
Common\MSBuildTaskItem.cs (1)
40public IReadOnlyList<string> Properties
RestoreTask.cs (2)
176(var dgFile, var additionalMessages) = MSBuildRestoreUtility.GetDependencySpec(wrappedItems, readOnly: true, collectAdditionalMessages: true); 259IReadOnlyList<PackageSpec> projects = dependencyGraphSpec.Projects;
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Build.Tasks.Console (5)
MSBuildItemBase.cs (1)
22public IReadOnlyList<string> Properties => throw new NotSupportedException();
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;
TargetFrameworkAdapter.cs (1)
19public IReadOnlyList<IItem> GetItems(string itemType)
NuGet.Build.Tasks.Pack (1)
Common\MSBuildTaskItem.cs (1)
40public IReadOnlyList<string> Properties
NuGet.CommandLine.XPlat (99)
_generated\13\PackageSearchJsonContext.IPackageSearchMetadata.g.cs (3)
313var info13 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 328AttributeProviderFactory = static () => typeof(global::NuGet.Protocol.Core.Types.IPackageSearchMetadata).GetProperty("OwnersList", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 331properties[13] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info13);
_generated\23\PackageSearchJsonContext.IReadOnlyListString.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>? _IReadOnlyListString; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> IReadOnlyListString 22get => _IReadOnlyListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<string>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> Create_IReadOnlyListString(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<string>, string>(options, info); 47private void IReadOnlyListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<string>? value)
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (1)
114if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
_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\Download\PackageDownloadArgs.cs (1)
13public IReadOnlyList<PackageWithNuGetVersion>? Packages { get; set; }
Commands\Package\Download\PackageDownloadCommand.cs (2)
29var packagesArguments = new Argument<IReadOnlyList<PackageWithNuGetVersion>>("packages") 80IReadOnlyList<PackageWithNuGetVersion> packages = parserResult.GetValue(packagesArguments) ?? [];
Commands\Package\Download\PackageDownloadRunner.cs (13)
46IReadOnlyList<PackageSource> packageSources = GetPackageSources(args.Sources, new PackageSourceProvider(settings)); 51public static async Task<int> RunAsync(PackageDownloadArgs args, ILoggerWithColor logger, IReadOnlyList<PackageSource> packageSources, ISettings settings, CancellationToken token) 75IReadOnlyList<SourceRepository> allRepositories = GetSourceRepositories(packageSources); 87IReadOnlyList<SourceRepository> sourceRepositories; 94var mappedNames = packageSourceMapping!.GetConfiguredPackageSources(package.Id); 184IReadOnlyList<SourceRepository> sourceRepositories, 243internal static IReadOnlyList<SourceRepository> GetMappedRepositories( 244IReadOnlyList<string> mappedNames, 245IReadOnlyList<SourceRepository> allRepos, 275IReadOnlyList<SourceRepository> allRepos) 339private static IReadOnlyList<PackageSource> GetPackageSources(IList<string>? sources, IPackageSourceProvider sourceProvider) 371private static IReadOnlyList<SourceRepository> GetSourceRepositories(IReadOnlyList<PackageSource> packageSources)
Commands\Package\PackageWithNuGetVersion.cs (1)
18internal static IReadOnlyList<PackageWithNuGetVersion> Parse(ArgumentResult result)
Commands\Package\PackageWithVersionRange.cs (1)
19internal static IReadOnlyList<PackageWithVersionRange> Parse(ArgumentResult result)
Commands\Package\Update\IPackageUpdateIO.cs (6)
81IReadOnlyList<string>? allowedSources, 90Task<IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>> 107IReadOnlyList<string>? allowedSources, 110IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities,
Commands\Package\Update\PackageUpdateArgs.cs (1)
15public required IReadOnlyList<PackageWithVersionRange> Packages { get; init; }
Commands\Package\Update\PackageUpdateCommand.cs (2)
27var packagesArguments = new Argument<IReadOnlyList<PackageWithVersionRange>>("packages") 52IReadOnlyList<PackageWithVersionRange> packages = args.GetValue(packagesArguments) ?? [];
Commands\Package\Update\PackageUpdateCommandRunner.cs (10)
128IReadOnlyList<PackageWithVersionRange>? packages, 175IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities = 191IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(packageIdentity.Id) : null; 221bool PackageHasVulnerability(string packageId, NuGetVersion version, IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities) 230if (vulnDict.TryGetValue(packageId, out var vulnInfoList)) 392IReadOnlyList<PackageWithVersionRange> packages, 410IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(package.Id) : null; 569IReadOnlyList<string>? mappedSources = sourceMapping.IsEnabled ? sourceMapping.GetConfiguredPackageSources(package.identity.Id) : null;
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\AddPackageReferenceCommandRunner.cs (2)
434var restoreRequests = await RestoreRunner.GetRequests(restoreContext); 437var restoreResult = await RestoreRunner.RunWithoutCommit(restoreRequests, restoreContext);
Commands\PackageReferenceCommands\ListPackage\ListPackageArgs.cs (2)
31public IReadOnlyList<PackageSource> AuditSources { get; } 60IReadOnlyList<PackageSource> auditSources,
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)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
Utility\HttpSourcesUtility.cs (1)
16public static List<PackageSource> GetDisallowedInsecureHttpSources(IReadOnlyList<PackageSource> packageSources)
NuGet.Commands (123)
ClientCertificatesCommand\ListClientCertRunner.cs (1)
25var items = clientCertificateProvider.GetClientCertificates();
RestoreCommand\CompatibilityChecker.cs (2)
26private readonly IReadOnlyList<NuGetv3LocalRepository> _localRepositories; 31public CompatibilityChecker(IReadOnlyList<NuGetv3LocalRepository> localRepositories, LockFile lockFile, bool validateRuntimeAssets, ILogger log)
RestoreCommand\CompatibilityCheckResult.cs (1)
16public IReadOnlyList<CompatibilityIssue> Issues { get; }
RestoreCommand\DependencyGraphResolver.cs (2)
100/// <param name="fallbackPackageFolders">A <see cref="IReadOnlyList{T}" /> of <see cref="NuGetv3LocalRepository" /> objects that represent the package fallback folders configured for restore.</param> 114IReadOnlyList<NuGetv3LocalRepository> fallbackPackageFolders,
RestoreCommand\IRestoreProgressReporter.cs (4)
16/// The interval denoted by this method and <see cref="EndProjectUpdate(string, IReadOnlyList{string})"/> is the update of the files on disk only. 21void StartProjectUpdate(string projectPath, IReadOnlyList<string> updatedFiles); 26/// The interval denoted by this method and <see cref="StartProjectUpdate(string, IReadOnlyList{string})(string, IReadOnlyList{string})"/> is the update of the files on disk only. 31void EndProjectUpdate(string projectPath, IReadOnlyList<string> updatedFiles);
RestoreCommand\ITargetFramework.cs (1)
23IReadOnlyList<IItem> GetItems(string itemType);
RestoreCommand\LockFileBuilder.cs (2)
42IReadOnlyList<NuGetv3LocalRepository> localRepositories, 420var frameworks = (framework as AssetTargetFallbackFramework)?.Fallback
RestoreCommand\Logging\WarningPropertiesCollection.cs (2)
30public IReadOnlyList<string> ProjectFrameworks { get; } 45IReadOnlyList<string> projectFrameworks)
RestoreCommand\ProjectRestoreCommand.cs (2)
49IReadOnlyList<NuGetv3LocalRepository> fallbackPackageFolders, 486internal static RuntimeGraph GetRuntimeGraph(RestoreTargetGraph graph, IReadOnlyList<NuGetv3LocalRepository> localRepositories, RuntimeGraph projectRuntimeGraph, RestoreCollectorLogger logger)
RestoreCommand\RequestFactory\DependencyGraphFileRequestProvider.cs (1)
23public virtual Task<IReadOnlyList<RestoreSummaryRequest>> CreateRequests(
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (11)
52public Task<IReadOnlyList<RestoreSummaryRequest>> CreateRequests( 55var requests = GetRequestsFromItems(restoreContext, _dgFile); 60private IReadOnlyList<RestoreSummaryRequest> GetRequestsFromItems(RestoreArgs restoreContext, DependencyGraphSpec dgFile) 99IReadOnlyList<PackageSpec> closure = dgFile.GetClosure(projectNameToRestore); 138IReadOnlyList<PackageSpec> closure = dgFile.GetClosure(projectNameToRestore); 173var auditSources = GetAuditSources(restoreArgs.CachingSourceProvider); 190IReadOnlyList<IAssetsLogMessage> projectAdditionalMessages = GetMessagesForProject(restoreArgs.AdditionalMessages, project.PackageSpec.FilePath); 232private static IReadOnlyList<SourceRepository> GetAuditSources(CachingSourceProvider cachingSourceProvider) 234IReadOnlyList<PackageSource> auditSources = cachingSourceProvider.PackageSourceProvider.LoadAuditSources(); 263internal static IReadOnlyList<IAssetsLogMessage> GetMessagesForProject(IReadOnlyList<IAssetsLogMessage> allMessages, string projectPath)
RestoreCommand\RequestFactory\IMSBuildItem.cs (1)
33IReadOnlyList<string> Properties { get; }
RestoreCommand\RequestFactory\IPreLoadedRestoreRequestProvider.cs (1)
19Task<IReadOnlyList<RestoreSummaryRequest>> CreateRequests(RestoreArgs restoreContext);
RestoreCommand\RequestFactory\IRestoreRequestProvider.cs (1)
24Task<IReadOnlyList<RestoreSummaryRequest>> CreateRequests(
RestoreCommand\RequestFactory\MSBuildItem.cs (1)
21public IReadOnlyList<string> Properties
RestoreCommand\RequestFactory\NoOpRestoreResult.cs (1)
72internal override IReadOnlyList<string> GetDirtyFiles()
RestoreCommand\RequestFactory\RestoreArgs.cs (2)
69public IReadOnlyList<IAssetsLogMessage> AdditionalMessages { get; set; } 120public IReadOnlyList<string> GetEffectiveFallbackPackageFolders(ISettings settings)
RestoreCommand\RestoreCommand.cs (4)
1578IReadOnlyList<NuGetv3LocalRepository> localRepositories, 1758IReadOnlyList<NuGetv3LocalRepository> localRepositories, 1805IReadOnlyList<NuGetv3LocalRepository> fallbackPackageFolders, 1990IReadOnlyList<NuGetv3LocalRepository> fallbackPackageFolders,
RestoreCommand\RestoreCommandProviders.cs (8)
22IReadOnlyList<NuGetv3LocalRepository> fallbackPackageFolders, 23IReadOnlyList<IRemoteDependencyProvider> localProviders, 24IReadOnlyList<IRemoteDependencyProvider> remoteProviders, 26IReadOnlyList<IVulnerabilityInformationProvider> vulnerabilityInformationProviders) 43public IReadOnlyList<NuGetv3LocalRepository> FallbackPackageFolders { get; } 45public IReadOnlyList<IRemoteDependencyProvider> LocalProviders { get; } 47public IReadOnlyList<IRemoteDependencyProvider> RemoteProviders { get; } 51internal IReadOnlyList<IVulnerabilityInformationProvider> VulnerabilityInfoProviders { get; }
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\RestoreRequest.cs (1)
198public IReadOnlyList<IAssetsLogMessage> AdditionalMessages { get; set; }
RestoreCommand\RestoreResult.cs (1)
334internal virtual IReadOnlyList<string> GetDirtyFiles()
RestoreCommand\RestoreRunner.cs (12)
26public static async Task<IReadOnlyList<RestoreSummary>> RunAsync(RestoreArgs restoreContext, CancellationToken token) 29var requests = await GetRequests(restoreContext); 38public static async Task<IReadOnlyList<RestoreSummary>> RunAsync(RestoreArgs restoreContext) 47private static async Task<IReadOnlyList<RestoreSummary>> RunAsync( 103public static Task<IReadOnlyList<RestoreResultPair>> RunWithoutCommit( 113public static async Task<IReadOnlyList<RestoreResultPair>> RunWithoutCommitAsync( 169public static async Task<IReadOnlyList<RestoreSummaryRequest>> GetRequests(RestoreArgs restoreContext) 199var inputRequests = await CreateRequests(input, restoreContext); 284IReadOnlyList<string> filesToBeUpdated = result.GetDirtyFiles(); 354private static async Task<IReadOnlyList<RestoreSummaryRequest>> CreatePreLoadedRequests( 361var requests = await provider.CreateRequests(restoreContext); 368private static async Task<IReadOnlyList<RestoreSummaryRequest>> CreateRequests(
RestoreCommand\RestoreSummary.cs (7)
25public IReadOnlyList<string> ConfigFiles { get; } 27public IReadOnlyList<string> FeedsUsed { get; } 46public IReadOnlyList<IRestoreLogMessage> Errors { get; } 82IReadOnlyList<string> configFiles, 83IReadOnlyList<string> feedsUsed, 85IReadOnlyList<IRestoreLogMessage> errors) 95public static void Log(ILogger logger, IReadOnlyList<RestoreSummary> restoreSummaries, bool logErrors = false)
RestoreCommand\RestoreSummaryRequest.cs (2)
20public IReadOnlyList<SourceRepository> Sources { get; } 28IReadOnlyList<SourceRepository> sources)
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;
RestoreCommand\Utility\BuildAssetsUtils.cs (2)
456IReadOnlyList<NuGetv3LocalRepository> repositories, 531var sortedGraph = TopologicalSortUtility.SortPackagesByDependencyOrder(ConvertToPackageDependencyInfo(targetGraph.Flattened));
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
60public static (DependencyGraphSpec, IReadOnlyList<IAssetsLogMessage>) GetDependencySpec(IEnumerable<IMSBuildItem> items, bool readOnly, bool collectAdditionalMessages) 160return (graphSpec, (IReadOnlyList<IAssetsLogMessage>)additionalMessages ?? Array.Empty<IAssetsLogMessage>());
RestoreCommand\Utility\ToolRestoreUtility.cs (2)
85public static IReadOnlyList<RestoreSummaryRequest> GetSubSetRequests(IEnumerable<RestoreSummaryRequest> requestSummaries) 120public static IReadOnlyList<RestoreSummaryRequest> GetSubSetRequestsForSingleId(IEnumerable<RestoreSummaryRequest> requests)
SignCommand\SignArgs.cs (1)
22public IReadOnlyList<string> PackagePaths { get; set; }
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
TrustedSignersCommand\TrustedSignerActionsProvider.cs (3)
51var signers = _trustedSignersProvider.GetTrustedSigners(); 185var signers = _trustedSignersProvider.GetTrustedSigners(); 244var signers = _trustedSignersProvider.GetTrustedSigners();
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
204var trustedSigners = _trustedSignersProvider.GetTrustedSigners();
VerifyCommand\VerifyArgs.cs (1)
32public IReadOnlyList<string> PackagePaths { get; set; }
NuGet.Common (4)
AuthTypeFilteredCredentials.cs (1)
16public IReadOnlyList<string> AuthTypes { get; }
Errors\IRestoreLogMessage.cs (1)
18IReadOnlyList<string> TargetGraphs { get; set; }
Errors\RestoreLogMessage.cs (1)
23public IReadOnlyList<string> TargetGraphs { get; set; }
PathUtil\INuGetPathContext.cs (1)
22IReadOnlyList<string> FallbackPackageFolders { get; }
NuGet.Configuration (35)
ClientCertificate\ClientCertificateProvider.cs (2)
34public void Remove(IReadOnlyList<ClientCertItem> items) 56public IReadOnlyList<ClientCertItem> GetClientCertificates()
ClientCertificate\IClientCertificateProvider.cs (2)
19IReadOnlyList<ClientCertItem> GetClientCertificates(); 25void Remove(IReadOnlyList<ClientCertItem> items);
PackageSource\IPackageSourceProvider.cs (1)
21IReadOnlyList<PackageSource> LoadAuditSources();
PackageSource\PackageSource.cs (1)
99public IReadOnlyList<X509Certificate>? ClientCertificates { get; set; }
PackageSource\PackageSourceProvider.cs (6)
18private readonly IReadOnlyList<PackageSource> _configurationDefaultSources; 19private readonly IReadOnlyList<PackageSource> _configurationDefaultAuditSources; 69IReadOnlyList<PackageSource> configurationDefaultAuditSources, 89private static IReadOnlyList<PackageSource> LoadConfigurationDefaultSources(IEnumerable<PackageSource> configurationDefaultSources) 173public IReadOnlyList<PackageSource> LoadAuditSources() 177internal IReadOnlyList<PackageSource> LoadAuditSources(IEnvironmentVariableReader environmentVariableReader)
PackageSourceMapping\PackageSourceMapping.cs (4)
22internal IReadOnlyDictionary<string, IReadOnlyList<string>> Patterns { get; } 37public IReadOnlyList<string> GetConfiguredPackageSources(string packageId) 52public PackageSourceMapping(IReadOnlyDictionary<string, IReadOnlyList<string>> patterns) 74var patterns = new Dictionary<string, IReadOnlyList<string>>();
PackageSourceMapping\PackageSourceMappingProvider.cs (4)
36public IReadOnlyList<PackageSourceMappingSourceItem> GetPackageSourceMappingItems() 47internal void Remove(IReadOnlyList<PackageSourceMappingSourceItem> packageSourceMappingSourceItems) 85public void SavePackageSourceMappings(IReadOnlyList<PackageSourceMappingSourceItem> packageSourceMappingsSourceItems) 92IReadOnlyList<PackageSourceMappingSourceItem> existingSettingsLookup = GetPackageSourceMappingItems();
PackageSourceMapping\SearchTree.cs (2)
24foreach (KeyValuePair<string, IReadOnlyList<string>> patternsPerSource in configuration.Patterns) 95public IReadOnlyList<string> GetConfiguredPackageSources(string term)
Proxy\WebProxy.cs (2)
18private IReadOnlyList<string> _bypassList = Array.Empty<string>(); 48public IReadOnlyList<string> BypassList
Settings\ConfigurationDefaults.cs (4)
16private IReadOnlyList<PackageSource>? _defaultPackageSources; 17private IReadOnlyList<PackageSource>? _defaultAuditSources; 58private IReadOnlyList<PackageSource> GetSourceItems(string sectionName) 92public IReadOnlyList<PackageSource> DefaultAuditSources
Settings\Items\UnknownItem.cs (1)
15public IReadOnlyList<SettingBase> Children => _mutableChildren.Select(c => c.Value).ToList();
Settings\NuGetPathContext.cs (1)
15public required IReadOnlyList<string> FallbackPackageFolders { get; init; }
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
Utility\ConfigurationContants.cs (1)
144public static IReadOnlyList<string> GetConfigKeys()
Utility\SettingsUtility.cs (3)
281public static IReadOnlyList<string> GetFallbackPackageFolders(ISettings settings) 286public static IReadOnlyList<string> GetFallbackPackageFolders(ISettings settings, IEnvironmentVariableReader environmentVariableReader) 325private static IReadOnlyList<string> GetFallbackPackageFoldersFromConfig(ISettings settings)
NuGet.DependencyResolver.Core (3)
Remote\RemoteWalkContext.cs (1)
69IReadOnlyList<string> sources = PackageSourceMapping.GetConfiguredPackageSources(libraryRange.Name);
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Frameworks (8)
AssetTargetFallbackFramework.cs (3)
8using FallbackList = System.Collections.Generic.IReadOnlyList<NuGet.Frameworks.NuGetFramework>; 23public FallbackList Fallback { get; } 30public AssetTargetFallbackFramework(NuGetFramework framework, FallbackList fallbackFrameworks)
FallbackFramework.cs (3)
8using FallbackList = System.Collections.Generic.IReadOnlyList<NuGet.Frameworks.NuGetFramework>; 17public FallbackList Fallback { get; } 21public FallbackFramework(NuGetFramework framework, FallbackList fallbackFrameworks)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.LibraryModel (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
NuGet.PackageManagement (101)
Audit\AuditChecker.cs (13)
24IReadOnlyList<SourceRepository>? auditSources, 29private readonly IReadOnlyList<SourceRepository>? _auditSources = auditSources; 98IReadOnlyList<ILogMessage> warnings = packagesWithKnownVulnerabilities is not null 126static bool IsAnyVulnerabilityDataFound(IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities) 143IReadOnlyList<SourceRepository>? auditSources, 150IReadOnlyList<SourceRepository> vulnerabilitySources; 179List<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities = null; 316IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities, 349IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>> knownVulnerabilities) 355if (file.TryGetValue(name, out var packageVulnerabilities))
Audit\AuditCheckResult.cs (2)
18public IReadOnlyList<ILogMessage> Warnings { get; } 48internal AuditCheckResult(IReadOnlyList<ILogMessage> warnings)
BuildIntegration\BuildIntegratedProjectAction.cs (9)
36public IReadOnlyList<SourceRepository> Sources { get; } 38internal IReadOnlyList<(NuGetProjectAction, BuildIntegratedInstallationContext)> ActionAndContextList { get; } 45IReadOnlyList<SourceRepository> sources, 46IReadOnlyList<NuGetProjectAction> originalActions, 98IReadOnlyList<SourceRepository> sources, 99IReadOnlyList<(NuGetProjectAction, BuildIntegratedInstallationContext)> originalActionsAndInstallationContexts, 145public IReadOnlyList<NuGetProjectAction> GetProjectActions() 151var added = BuildIntegratedRestoreUtility.GetAddedPackages(OriginalLockFile, RestoreResult.LockFile); 152var removed = BuildIntegratedRestoreUtility.GetAddedPackages(RestoreResult.LockFile, OriginalLockFile);
BuildIntegration\BuildIntegratedRestoreUtility.cs (5)
35var sortedPackages = await BuildIntegratedProjectUtility.GetOrderedProjectPackageDependencies(project); 68public static IReadOnlyList<PackageIdentity> GetAddedPackages( 110public static IReadOnlyList<BuildIntegratedNuGetProject> GetParentProjectsInClosure( 111IReadOnlyList<BuildIntegratedNuGetProject> projects, 130var listOfParents = cache.GetParents(target.MSBuildProjectPath);
BuildIntegration\DependencyGraphRestoreUtility.cs (11)
33public static Task<IReadOnlyList<RestoreSummary>> RestoreAsync( 64public static async Task<IReadOnlyList<RestoreSummary>> RestoreAsync( 73IReadOnlyList<IAssetsLogMessage> additionalMessages, 99var restoreSummaries = await RestoreRunner.RunAsync(restoreContext, token); 153var requests = await RestoreRunner.GetRequests(restoreContext); 154var results = await RestoreRunner.RunWithoutCommit(requests, restoreContext); 207var requests = await RestoreRunner.GetRequests(restoreContext); 208var results = await RestoreRunner.RunWithoutCommit(requests, restoreContext); 227var specs = await project.GetPackageSpecsAsync(context); 243public static async Task<(DependencyGraphSpec dgSpec, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetSolutionRestoreSpecAndAdditionalMessages( 326IReadOnlyList<IAssetsLogMessage> additionalMessasges,
BuildIntegration\PackageReferenceRollbackException.cs (1)
23public IReadOnlyList<ILogMessage> LogMessages { get; }
DependencyGraphCacheContext.cs (2)
43public Dictionary<string, IReadOnlyList<IDependencyGraphProject>> DirectReferenceCache { get; set; } = new Dictionary<string, IReadOnlyList<IDependencyGraphProject>>(StringComparer.Ordinal);
IDE\IDeleteOnRestartManager.cs (1)
23IReadOnlyList<string> GetPackageDirectoriesMarkedForDeletion();
IDE\PackageRestoreContext.cs (2)
23public IReadOnlyList<SourceRepository> AuditSources { get; } 72IReadOnlyList<SourceRepository> auditSources,
IDE\PackageRestoreManager.cs (3)
225var items = await msbuildProject.ProjectServices.ReferencesReader.GetItemsAsync(ProjectItems.NuGetAuditSuppress); 370IReadOnlyList<SourceRepository> auditSources = packageRestoreContext.AuditSources; 419private static async Task<AuditCheckResult> RunNuGetAudit(PackageRestoreContext packageRestoreContext, List<SourceRepository> sourceRepositories, IReadOnlyList<SourceRepository> auditSources)
IDE\PackagesMarkedForDeletionEventArgs.cs (2)
19public IReadOnlyList<string> DirectoriesMarkedForDeletion { get; } 25public PackagesMarkedForDeletionEventArgs(IReadOnlyList<string> directoriesMarkedForDeletion)
IDependencyGraphProject.cs (3)
28Task<IReadOnlyList<PackageSpec>> GetPackageSpecsAsync(DependencyGraphCacheContext context); 34Task<(IReadOnlyList<PackageSpec> dgSpecs, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetPackageSpecsAndAdditionalMessagesAsync(DependencyGraphCacheContext context);
InstallationCompatibility.cs (1)
152var packageTypes = nuspecReader.GetPackageTypes();
NuGetPackageManager.cs (12)
40private IReadOnlyList<SourceRepository> _globalPackageFolderRepositories; 163public IReadOnlyList<SourceRepository> GlobalPackageFolderRepositories 825IReadOnlyList<PackageIdentity> packageIdentities, 1000IReadOnlyList<PackageIdentity> packageIdentities, 2218IReadOnlyList<BuildIntegratedNuGetProject> buildIntegratedProjects, 2434var allSortedProjects = DependencyGraphSpec.SortPackagesByDependencyOrder(dgFile.Projects); 2918IReadOnlyList<PackageSourceMappingSourceItem> originalPackageSourceMappings = null; 3290var actions = projectAction.GetProjectActions(); 3373IReadOnlyList<string> filesToBeUpdated = isNoOp ? null : GetFilesToBeUpdated(projectAction.RestoreResultPair); 3425var addedPackages = BuildIntegratedRestoreUtility.GetAddedPackages( 3446var parents = BuildIntegratedRestoreUtility.GetParentProjectsInClosure( 3507private static IReadOnlyList<string> GetFilesToBeUpdated(RestoreResultPair result)
PackageDownloader.cs (1)
104IReadOnlyList<string> configuredPackageSources = null;
PackageWithDependants.cs (2)
17public IReadOnlyList<PackageIdentity> DependantPackages { get; } 19public PackageWithDependants(PackageIdentity identity, IReadOnlyList<PackageIdentity> dependingPackages)
Projects\BuildIntegratedNuGetProject.cs (3)
60public abstract Task<IReadOnlyList<PackageSpec>> GetPackageSpecsAsync(DependencyGraphCacheContext context); 62public abstract Task<(IReadOnlyList<PackageSpec> dgSpecs, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetPackageSpecsAndAdditionalMessagesAsync(DependencyGraphCacheContext context);
Projects\DefaultProjectServices.cs (2)
60public Task<IReadOnlyList<(string id, string[] metadata)>> GetItemsAsync(string itemTypeName, params string[] metadataNames) 62IReadOnlyList<(string, string[])> items = Array.Empty<(string, string[])>();
Projects\IProjectSystemReferencesReader.cs (1)
50Task<IReadOnlyList<(string id, string[] metadata)>> GetItemsAsync(string itemTypeName, params string[] metadataNames);
Projects\MSBuildNuGetProject.cs (3)
640public async Task<IReadOnlyList<PackageSpec>> GetPackageSpecsAsync(DependencyGraphCacheContext context) 646public async Task<(IReadOnlyList<PackageSpec> dgSpecs, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetPackageSpecsAndAdditionalMessagesAsync(DependencyGraphCacheContext context)
Projects\ProjectJsonNuGetProject.cs (3)
166public override async Task<IReadOnlyList<PackageSpec>> GetPackageSpecsAsync(DependencyGraphCacheContext context) 172public override async Task<(IReadOnlyList<PackageSpec> dgSpecs, IReadOnlyList<IAssetsLogMessage> additionalMessages)> GetPackageSpecsAndAdditionalMessagesAsync(DependencyGraphCacheContext context)
Resolution\GatherCacheResult.cs (2)
21public GatherCacheResult(bool hasEntry, IReadOnlyList<SourcePackageDependencyInfo> packages) 41public IReadOnlyList<SourcePackageDependencyInfo> Packages { get; }
Resolution\GatherContext.cs (5)
36public IReadOnlyList<SourceRepository> PrimarySources { get; set; } 41public IReadOnlyList<SourceRepository> AllSources { get; set; } 51public IReadOnlyList<string> PrimaryTargetIds { get; set; } 56public IReadOnlyList<PackageIdentity> PrimaryTargets { get; set; } 61public IReadOnlyList<PackageIdentity> InstalledPackages { get; set; }
Resolution\ResolverGather.cs (5)
533private void QueueWork(IReadOnlyList<SourceResource> sources, string packageId, bool ignoreExceptions) 539private void QueueWork(IReadOnlyList<SourceResource> sources, PackageIdentity package, bool ignoreExceptions, bool isInstalledPackage) 541IReadOnlyList<string> configuredPackageSources = null; 724public GatherResult(GatherRequest request, IReadOnlyList<SourcePackageDependencyInfo> packages) 731public IReadOnlyList<SourcePackageDependencyInfo> Packages { get; }
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
Utility\BuildIntegratedProjectUtility.cs (4)
27public static async Task<IReadOnlyList<PackageIdentity>> GetOrderedProjectPackageDependencies( 75public static IReadOnlyList<PackageIdentity> GetOrderedLockFilePackageDependencies(LockFile lockFile) 88public static IReadOnlyList<LibraryIdentity> GetOrderedLockFileDependencies(LockFile lockFile) 116var sortedDependencies = TopologicalSortUtility.SortPackagesByDependencyOrder(dependencies);
Utility\PackagesConfigLockFileUtility.cs (1)
84public static IReadOnlyList<IRestoreLogMessage> ValidatePackagesConfigLockFiles(
NuGet.Packaging (98)
Core\IAsyncPackageCoreReader.cs (2)
46/// <see cref="IReadOnlyList{PackageType}" />.</returns> 49Task<IReadOnlyList<PackageType>> GetPackageTypesAsync(CancellationToken cancellationToken);
Core\INuspecCoreReader.cs (1)
38IReadOnlyList<PackageType> GetPackageTypes();
Core\IPackageCoreReader.cs (1)
35IReadOnlyList<PackageType> GetPackageTypes();
Core\NuspecCoreReaderBase.cs (1)
111public virtual IReadOnlyList<PackageType> GetPackageTypes()
Core\NuspecUtility.cs (1)
50public static IReadOnlyList<PackageType> GetPackageTypes(XElement metadataNode, bool useMetadataNamespace)
Core\PackageDependency.cs (4)
28public IReadOnlyList<string> Include { get; } 33public IReadOnlyList<string> Exclude { get; } 58IReadOnlyList<string>? include, 59IReadOnlyList<string>? exclude)
PackageCreation\Authoring\LicenseMetadata.cs (2)
41public IReadOnlyList<string>? WarningsAndErrors { get; } 48public LicenseMetadata(LicenseType type, string license, NuGetLicenseExpression? expression, IReadOnlyList<string>? warningsAndErrors, Version version)
PackageReaderBase.cs (2)
89public virtual IReadOnlyList<PackageType> GetPackageTypes() 138public virtual Task<IReadOnlyList<PackageType>> GetPackageTypesAsync(CancellationToken cancellationToken)
Rules\UpholdBuildConventionRule.cs (1)
20private static readonly IReadOnlyList<string> BuildFolders = new string[]
RuntimeModel\RuntimeDescription.cs (2)
20public IReadOnlyList<string> InheritedRuntimes { get; } 50private RuntimeDescription(string runtimeIdentifier, IReadOnlyList<string>? inheritedRuntimes, IReadOnlyDictionary<string, RuntimeDependencySet>? runtimeDependencySets)
RuntimeModel\RuntimeGraph.cs (1)
201var inheritedRuntimes = desc.InheritedRuntimes;
Signing\Archive\EndOfCentralDirectoryRecord.cs (2)
16private static readonly IReadOnlyList<byte> Signature = new byte[4] { 0x50, 0x4b, 0x05, 0x06 }; 105private static void ThrowByteSignatureNotFoundException(IReadOnlyList<byte> signature)
Signing\Archive\ExtraField.cs (3)
25internal static bool TryRead(CentralDirectoryHeader header, [NotNullWhen(returnValue: true)] out IReadOnlyList<ExtraField>? extraFields) 48internal static bool TryRead(LocalFileHeader header, [NotNullWhen(returnValue: true)] out IReadOnlyList<ExtraField>? extraFields) 74bool readDiskNumberStart, out IReadOnlyList<ExtraField> extraFields)
Signing\Archive\SignedPackageArchiveIOUtility.cs (1)
376IReadOnlyList<CentralDirectoryHeaderMetadata> records,
Signing\Archive\SignedPackageArchiveUtility.cs (2)
213if (ExtraField.TryRead(header, out IReadOnlyList<ExtraField>? extraFields)) 223if (ExtraField.TryRead(header, out IReadOnlyList<ExtraField>? extraFields))
Signing\Authoring\RepositorySignPackageRequest.cs (2)
22public IReadOnlyList<string>? PackageOwners { get; } 54IReadOnlyList<string>? packageOwners)
Signing\SignatureException.cs (2)
16public IReadOnlyList<PackageVerificationResult>? Results { get; } 41public SignatureException(IReadOnlyList<PackageVerificationResult> results, PackageIdentity package)
Signing\Signatures\CommitmentTypeIndication.cs (2)
25public IReadOnlyList<CommitmentTypeQualifier>? Qualifiers { get; } 27private CommitmentTypeIndication(Oid commitmentTypeId, IReadOnlyList<CommitmentTypeQualifier>? qualifiers)
Signing\Signatures\IRepositorySignature.cs (1)
13IReadOnlyList<string>? PackageOwners { get; }
Signing\Signatures\IssuerSerial.cs (4)
31public IReadOnlyList<GeneralName> GeneralNames { get; } 34private IssuerSerial(IReadOnlyList<GeneralName> generalNames, byte[] serialNumber) 66var generalNames = ReadGeneralNames(sequenceReader); 81private static IReadOnlyList<GeneralName> ReadGeneralNames(DerSequenceReader reader)
Signing\Signatures\NuGetPackageOwners.cs (2)
19public IReadOnlyList<string> PackageOwners { get; } 21public NuGetPackageOwners(IReadOnlyList<string> packageOwners)
Signing\Signatures\PolicyInformation.cs (4)
24public IReadOnlyList<PolicyQualifierInfo>? PolicyQualifiers { get; } 26private PolicyInformation(Oid policyIdentifier, IReadOnlyList<PolicyQualifierInfo>? policyQualifiers) 44IReadOnlyList<PolicyQualifierInfo>? policyQualifiers = null; 54private static IReadOnlyList<PolicyQualifierInfo> ReadPolicyQualifiers(
Signing\Signatures\RepositoryCountersignature.cs (3)
19public IReadOnlyList<string>? PackageOwners { get; } 27IReadOnlyList<string>? packageOwners) 63var packageOwners = AttributeUtility.GetNuGetPackageOwners(countersignature.SignedAttributes);
Signing\Signatures\RepositoryPrimarySignature.cs (1)
17public IReadOnlyList<string>? PackageOwners { get; }
Signing\Signatures\Signature.cs (5)
21private readonly Lazy<IReadOnlyList<Timestamp>> _timestamps; 31public IReadOnlyList<Timestamp> Timestamps => _timestamps.Value; 47_timestamps = new Lazy<IReadOnlyList<Timestamp>>(() => GetTimestamps(SignerInfo, FriendlyName)); 89var timestamps = Timestamps; 391private static IReadOnlyList<Timestamp> GetTimestamps(SignerInfo signer, string signatureFriendlyName)
Signing\Signatures\SigningCertificate.cs (6)
20public IReadOnlyList<EssCertId> Certificates { get; } 21public IReadOnlyList<PolicyInformation>? Policies { get; } 24IReadOnlyList<EssCertId> certificates, 25IReadOnlyList<PolicyInformation>? policies) 42IReadOnlyList<PolicyInformation>? policies = null; 72private static IReadOnlyList<PolicyInformation> ReadPolicies(DerSequenceReader reader)
Signing\Signatures\SigningCertificateV2.cs (8)
23public IReadOnlyList<EssCertIdV2> Certificates { get; } 24public IReadOnlyList<PolicyInformation>? Policies { get; } 27IReadOnlyList<EssCertIdV2> certificates, 28IReadOnlyList<PolicyInformation>? policies) 56var certificates = ReadCertificates(essCertIdV2Reader); 57IReadOnlyList<PolicyInformation>? policies = null; 85private static IReadOnlyList<EssCertIdV2> ReadCertificates(DerSequenceReader reader) 99private static IReadOnlyList<PolicyInformation> ReadPolicies(DerSequenceReader reader)
Signing\Timestamp\Extensions.cs (2)
18public IReadOnlyList<Extension> ExtensionsList { get; } 20private Extensions(IReadOnlyList<Extension> extensions)
Signing\Timestamp\Rfc3161TimestampProvider.cs (1)
124IReadOnlyList<X509Certificate2> chain)
Signing\TrustedSigners\ITrustedSignersProvider.cs (2)
14IReadOnlyList<TrustedSignerItem> GetTrustedSigners(); 26void Remove(IReadOnlyList<TrustedSignerItem> trustedSigners);
Signing\TrustedSigners\TrustedSignersProvider.cs (3)
22public IReadOnlyList<TrustedSignerItem> GetTrustedSigners() 33public void Remove(IReadOnlyList<TrustedSignerItem> trustedSigners) 65public static IReadOnlyList<TrustedSignerAllowListEntry> GetAllowListEntries(ISettings settings, ILogger logger)
Signing\TrustStore\SystemCertificateBundleX509ChainFactory.cs (2)
14internal static readonly IReadOnlyList<string> ProbePaths = new[] 30internal static bool TryCreate(IReadOnlyList<string> probePaths, [NotNullWhen(returnValue: true)] out SystemCertificateBundleX509ChainFactory? factory)
Signing\Utility\AttributeUtility.cs (2)
153public static CryptographicAttributeObject CreateNuGetPackageOwners(IReadOnlyList<string> packageOwners) 181public static IReadOnlyList<string>? GetNuGetPackageOwners(CryptographicAttributeObjectCollection signedAttributes)
Signing\Utility\CertificateUtility.cs (4)
46internal static IReadOnlyList<SignatureLog> X509Certificate2ToLogMessages(X509Certificate2 cert, HashAlgorithmName fingerprintAlgorithm, string indentation = " ") 395public static IReadOnlyList<byte[]> GetRawDataForCollection(X509Certificate2Collection certificates) 472internal static IReadOnlyList<string> GetCrlDistributionPointUrls(X509Certificate2 cert) 537internal static IReadOnlyList<string> GetOcspUrls(X509Certificate2 cert)
Signing\Utility\SigningUtility.cs (2)
58IReadOnlyList<X509Certificate2> chainList) 88IReadOnlyList<X509Certificate2> chainList)
Signing\Verification\AllowListVerificationProvider.cs (6)
87if (ShouldVerifyOwners(certificateHashEntry as TrustedSignerAllowListEntry, signature as IRepositorySignature, out var allowedOwners, out var actualOwners)) 114if (ShouldVerifyOwners(certificateHashEntry as TrustedSignerAllowListEntry, repositoryCountersignature.Value, out var allowedOwners, out var actualOwners)) 134private static bool ShouldVerifyOwners(TrustedSignerAllowListEntry? entry, IRepositorySignature? repoSignature, [NotNullWhen(returnValue: true)] out IReadOnlyList<string>? allowedOwners, [NotNullWhen(returnValue: true)] out IReadOnlyList<string>? actualOwners)
Signing\Verification\ClientPolicyContext.cs (1)
57var allowList = TrustedSignersProvider.GetAllowListEntries(settings, logger);
Signing\Verification\TrustedSignerAllowListEntry.cs (2)
16public IReadOnlyList<string>? Owners { get; } 29IReadOnlyList<string>? owners = null)
Signing\Verification\VerifySignaturesResult.cs (1)
28public IReadOnlyList<PackageVerificationResult> Results { get; }
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
TopologicalSortUtility.cs (2)
22public static IReadOnlyList<T> SortPackagesByDependencyOrder<T>( 80public static IReadOnlyList<PackageDependencyInfo> SortPackagesByDependencyOrder(
NuGet.ProjectModel (68)
_generated\12\CacheFileSourceGen.GetJsonTypeInfo.g.cs (1)
56if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
_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>),
_generated\19\AssetsLogMessageSourceGen.IReadOnlyListString.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>? _IReadOnlyListString; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> IReadOnlyListString 24get => _IReadOnlyListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<string>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> Create_IReadOnlyListString(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<string>, string>(options, info); 49private void IReadOnlyListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<string>? value)
_generated\23\AssetsLogMessageSourceGen.GetJsonTypeInfo.g.cs (1)
44if (type == typeof(global::System.Collections.Generic.IReadOnlyList<string>))
_generated\5\CacheFileSourceGen.IAssetsLogMessage.g.cs (3)
275var info11 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 290AttributeProviderFactory = static () => typeof(global::NuGet.ProjectModel.IAssetsLogMessage).GetProperty("TargetGraphs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 293properties[11] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<string>>(options, info11);
_generated\8\CacheFileSourceGen.IReadOnlyListString.g.cs (10)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>? _IReadOnlyListString; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> IReadOnlyListString 24get => _IReadOnlyListString ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<string>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> Create_IReadOnlyListString(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<string>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<string>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<string>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<string>, string>(options, info); 49private void IReadOnlyListStringSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<string>? value)
DependencyGraphSpec.cs (7)
63public IReadOnlyList<string> Restore => _restore.ToList(); 68public IReadOnlyList<PackageSpec> Projects => _projects.Values.ToList(); 83public IReadOnlyList<string> GetParents(string rootUniqueName) 93var closure = GetClosure(project.RestoreMetadata.ProjectUniqueName); 136public DependencyGraphSpec CreateFromClosure(string projectUniqueName, IReadOnlyList<PackageSpec> closure) 164public IReadOnlyList<PackageSpec> GetClosure(string rootUniqueName) 404public static IReadOnlyList<PackageSpec> SortPackagesByDependencyOrder(
ExternalProjectReference.cs (1)
92public IReadOnlyList<string> ExternalProjectReferences { get; }
IExternalProjectReferenceProvider.cs (2)
18IReadOnlyList<ExternalProjectReference> GetReferences(string entryPointPath); 23IReadOnlyList<ExternalProjectReference> GetEntryPoints();
JsonPackageSpecReader.Utf8JsonStreamReader.cs (9)
283var values = jsonReader.ReadDelimitedString(); 288var values = jsonReader.ReadDelimitedString(); 293var values = jsonReader.ReadDelimitedString(); 366var values = jsonReader.ReadDelimitedString(); 375var values = jsonReader.ReadDelimitedString(); 384var values = jsonReader.ReadDelimitedString(); 556IReadOnlyList<string> values = jsonReader.ReadNextStringOrArrayOfStringsAsReadOnlyList() ?? Array.Empty<string>(); 566private static IEnumerable<FrameworkRuntimePair> ReadCompatibilitySets(IReadOnlyList<string> values, string compatibilitySetName) 723IReadOnlyList<string> imports = jsonReader.ReadNextStringOrArrayOfStringsAsReadOnlyList();
JsonTextReaderExtensions.cs (4)
16internal static IReadOnlyList<string> ReadDelimitedString(this JsonTextReader reader) 151internal static IReadOnlyList<string> ReadStringOrArrayOfStringsAsReadOnlyList(this JsonTextReader reader) 173internal static IReadOnlyList<string> ReadStringArrayAsReadOnlyListFromArrayStart(this JsonTextReader reader) 191return (IReadOnlyList<string>)strings ?? Array.Empty<string>();
LockFile\AssetsLogMessage.cs (2)
45public IReadOnlyList<string> TargetGraphs { get; set; } 88IReadOnlyList<string> targetGraphs,
LockFile\IAssetsLogMessage.cs (1)
72IReadOnlyList<string> TargetGraphs { get; }
LockFile\Utf8JsonStreamIAssetsLogMessageConverter.cs (1)
68IReadOnlyList<string> targetGraphs = null;
ProjectLockFile\PackagesLockFileUtilities.cs (4)
624public IReadOnlyList<KeyValuePair<LockFileDependency, LockFileDependency>> MatchedDependencies { get; } 626public LockFileValidityWithMatchedResults(bool isValid, IReadOnlyList<KeyValuePair<LockFileDependency, LockFileDependency>> matchedDependencies) 650public IReadOnlyList<string> InvalidReasons { get; } 652public LockFileValidationResult(bool isValid, IReadOnlyList<string> invalidReasons)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\Utf8JsonStreamReader.cs (4)
243internal IReadOnlyList<string> ReadDelimitedString() 294internal IReadOnlyList<string> ReadNextStringOrArrayOfStringsAsReadOnlyList() 316internal IReadOnlyList<string> ReadStringArrayAsReadOnlyListFromArrayStart() 331return (IReadOnlyList<string>)strings ?? Array.Empty<string>();
TargetFrameworkInformation.cs (1)
160hashCode.AddSequence((IReadOnlyList<NuGetFramework>)Imports);
NuGet.Protocol (133)
_generated\14\JsonContext.IReadOnlyListPackageVulnerabilityInfo.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>? _IReadOnlyListPackageVulnerabilityInfo; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>> IReadOnlyListPackageVulnerabilityInfo 22get => _IReadOnlyListPackageVulnerabilityInfo ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>> Create_IReadOnlyListPackageVulnerabilityInfo(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>, global::NuGet.Protocol.Model.PackageVulnerabilityInfo>(options, info); 47private void IReadOnlyListPackageVulnerabilityInfoSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>? value)
_generated\15\JsonContext.VulnerabilityIndex.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>>? _VulnerabilityIndex; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>> VulnerabilityIndex 22get => _VulnerabilityIndex ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>> Create_VulnerabilityIndex(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>> 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>, global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>(options, info); 47private void VulnerabilityIndexSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>? value)
_generated\24\JsonContext.GetJsonTypeInfo.g.cs (3)
34if (type == typeof(global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>)) 78if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>)) 82if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.V3VulnerabilityIndexEntry>))
_generated\3\JsonContext.VulnerabilityPage.g.cs (13)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>>? _VulnerabilityPage; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>> VulnerabilityPage 22get => _VulnerabilityPage ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>>)Options.GetTypeInfo(typeof(global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>> Create_VulnerabilityPage(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>> 31ObjectCreator = () => new global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>(), 37jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateDictionaryInfo<global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>, string, global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>(options, info); 47private void VulnerabilityPageSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::NuGet.Protocol.Model.CaseInsensitiveDictionary<global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>>? value) 57foreach (global::System.Collections.Generic.KeyValuePair<string, global::System.Collections.Generic.IReadOnlyList<global::NuGet.Protocol.Model.PackageVulnerabilityInfo>> entry in value)
FindPackageByIdDependencyInfo.cs (2)
23public IReadOnlyList<PackageDependencyGroup> DependencyGroups { get; } 28public IReadOnlyList<FrameworkSpecificGroup> FrameworkReferenceGroups { get; }
LegacyFeed\DependencyInfoResourceV2Feed.cs (1)
76var packages = await _feedParser.FindPackagesByIdAsync(packageId, sourceCacheContext, log, token);
LegacyFeed\MetadataResourceV2Feed.cs (1)
76var packages = await _feedParser.FindPackagesByIdAsync(packageId, includeUnlisted, includePrerelease, sourceCacheContext, log, token);
LegacyFeed\PackageMetadataResourceV2Feed.cs (1)
50var packages = await _feedParser.FindPackagesByIdAsync(packageId, includeUnlisted, includePrerelease, sourceCacheContext, log, token);
LegacyFeed\PackageSearchResourceV2Feed.cs (1)
46var query = await _feedParser.Search(
LegacyFeed\V2FeedPackageInfo.cs (1)
240public IReadOnlyList<PackageDependencyGroup> DependencySets
LegacyFeed\V2FeedPage.cs (1)
27public IReadOnlyList<V2FeedPackageInfo> Items { get; }
LegacyFeed\V2FeedParser.cs (4)
137var allPackages = await FindPackagesByIdAsync(package.Id, sourceCacheContext, log, token); 149public async Task<IReadOnlyList<V2FeedPackageInfo>> FindPackagesByIdAsync( 189public Task<IReadOnlyList<V2FeedPackageInfo>> FindPackagesByIdAsync(string id, SourceCacheContext sourceCacheContext, ILogger log, CancellationToken token) 246public async Task<IReadOnlyList<V2FeedPackageInfo>> Search(
LegacyFeed\V2FeedUtilities.cs (1)
47var packages = await feedParser.FindPackagesByIdAsync(
LocalRepositories\FindLocalPackagesResourceUnzipped.cs (5)
23private readonly Lazy<IReadOnlyList<LocalPackageInfo>> _packages; 30_packages = new Lazy<IReadOnlyList<LocalPackageInfo>>(() => GetPackagesCore(root)); 67private static Dictionary<PackageIdentity, LocalPackageInfo> GetIndex(Lazy<IReadOnlyList<LocalPackageInfo>> packages) 85private static Dictionary<Uri, LocalPackageInfo> GetPathIndex(Lazy<IReadOnlyList<LocalPackageInfo>> packages) 102private static IReadOnlyList<LocalPackageInfo> GetPackagesCore(string root)
LocalRepositories\LocalV2FindPackageByIdResource.cs (7)
31private readonly ConcurrentDictionary<string, IReadOnlyList<LocalPackageInfo>> _packageInfoCache 32= new ConcurrentDictionary<string, IReadOnlyList<LocalPackageInfo>>(StringComparer.OrdinalIgnoreCase); 99var infos = GetPackageInfos(id, cacheContext, logger); 402private IReadOnlyList<LocalPackageInfo> GetPackageInfos( 407IReadOnlyList<LocalPackageInfo> results = null; 409Func<string, IReadOnlyList<LocalPackageInfo>> findPackages = (packageId) => GetPackageInfosCore(packageId, logger); 423private IReadOnlyList<LocalPackageInfo> GetPackageInfosCore(string id, ILogger logger)
Model\GetVulnerabilityInfoResult.cs (4)
20public IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? KnownVulnerabilities { get; } 31IReadOnlyList<IReadOnlyDictionary<string, IReadOnlyList<PackageVulnerabilityInfo>>>? knownVulnerabilities,
Model\IPackageSearchMetadata.cs (1)
33IReadOnlyList<string> OwnersList { get; }
Model\LocalPackageSearchMetadata.cs (2)
49private IReadOnlyList<string> _ownersList; 51public IReadOnlyList<string> OwnersList
Model\PackageSearchMetadata.cs (2)
67private IReadOnlyList<string> _ownersList; 71public IReadOnlyList<string> OwnersList
Model\PackageSearchMetadataBuilder.cs (1)
40public IReadOnlyList<string> OwnersList { get; set; }
Model\PackageSearchMetadataV2Feed.cs (3)
53_ownersList = (IReadOnlyList<string>)package.Owners; 90private IReadOnlyList<string> _ownersList; 91public IReadOnlyList<string> OwnersList => _ownersList;
PackagesFolder\LocalPackageFileCache.cs (5)
28private readonly ConcurrentDictionary<string, Lazy<IReadOnlyList<string>>> _filesCache 29= new ConcurrentDictionary<string, Lazy<IReadOnlyList<string>>>(PathUtility.GetStringComparerBasedOnOS()); 69public virtual Lazy<IReadOnlyList<string>> GetOrAddFiles(string expandedPath) 77e => new Lazy<IReadOnlyList<string>>(() => GetFiles(e))); 170private static IReadOnlyList<string> GetFiles(string expandedPath)
PackagesFolder\LocalPackageInfo.cs (3)
20private readonly Lazy<IReadOnlyList<string>> _files; 32Lazy<IReadOnlyList<string>> files, 75public IReadOnlyList<string> Files => _files.Value;
PackagesFolder\NuGetv3LocalRepositoryUtility.cs (1)
16IReadOnlyList<NuGetv3LocalRepository> repositories,
Plugins\Messages\GetCredentialsResponse.cs (2)
34public IReadOnlyList<string> AuthenticationTypes { get; } 48IReadOnlyList<string> authenticationTypes = null)
Plugins\Messages\GetOperationClaimsResponse.cs (1)
23public IReadOnlyList<OperationClaim> Claims { get; }
Plugins\PluginCacheEntry.cs (2)
39public IReadOnlyList<OperationClaim> OperationClaims { get; set; } 68OperationClaims = serializer.Deserialize<IReadOnlyList<OperationClaim>>(jsonTextReader);
Plugins\PluginCreationResult.cs (2)
19public IReadOnlyList<OperationClaim> Claims { get; } 50public PluginCreationResult(IPlugin plugin, IPluginMulticlientUtilities utilities, IReadOnlyList<OperationClaim> claims)
Plugins\PluginManager.cs (5)
35private ConcurrentDictionary<PluginRequestKey, Lazy<Task<IReadOnlyList<OperationClaim>>>> _pluginOperationClaims; 224var operationClaims = await _pluginOperationClaims.GetOrAdd( 226key => new Lazy<Task<IReadOnlyList<OperationClaim>>>(() => 320_pluginOperationClaims = new ConcurrentDictionary<PluginRequestKey, Lazy<Task<IReadOnlyList<OperationClaim>>>>(); 325private static async Task<IReadOnlyList<OperationClaim>> GetPluginOperationClaimsAsync(
Plugins\PluginPackageReader.cs (3)
381public override IReadOnlyList<PackageType> GetPackageTypes() 392/// <see cref="IReadOnlyList{PackageType}" />.</returns> 395public override async Task<IReadOnlyList<PackageType>> GetPackageTypesAsync(
Providers\PackageSearchResourceV3Provider.cs (1)
27var endpoints = serviceIndex.GetServiceEntryUris(ServiceTypes.SearchQueryService);
Providers\RawSearchResourceV3Provider.cs (1)
30var endpoints = serviceIndex.GetServiceEntryUris(ServiceTypes.SearchQueryService);
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (3)
43private readonly IReadOnlyList<Uri> _baseUris; 60IReadOnlyList<Uri> baseUris, 64IReadOnlyList<Uri> baseUris,
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResourceProvider.cs (1)
26var packageBaseAddress = serviceIndexResource?.GetServiceEntryUris(ServiceTypes.PackageBaseAddress);
Resources\PluginResource.cs (1)
26private readonly IReadOnlyList<PluginCreationResult> _pluginCreationResults;
Resources\ServiceIndexResourceV3.cs (8)
30private static readonly IReadOnlyList<ServiceIndexEntry> _emptyEntries = new List<ServiceIndexEntry>(); 60public virtual IReadOnlyList<ServiceIndexEntry> Entries 76public virtual IReadOnlyList<ServiceIndexEntry> GetServiceEntries(params string[] orderedTypes) 86public virtual IReadOnlyList<ServiceIndexEntry> GetServiceEntries(NuGetVersion clientVersion, params string[] orderedTypes) 98var compatible = GetBestVersionMatchForType(clientVersion, entries); 110private IReadOnlyList<ServiceIndexEntry> GetBestVersionMatchForType(NuGetVersion clientVersion, List<ServiceIndexEntry> entries) 139public virtual IReadOnlyList<Uri> GetServiceEntryUris(params string[] orderedTypes) 149public virtual IReadOnlyList<Uri> GetServiceEntryUris(NuGetVersion clientVersion, params string[] orderedTypes)
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)
SourceRepository.cs (5)
22private readonly Dictionary<Type, IReadOnlyList<INuGetResourceProvider>> _providerCache; 154IReadOnlyList<INuGetResourceProvider> possible; 177private static Dictionary<Type, IReadOnlyList<INuGetResourceProvider>> Init(IEnumerable<Lazy<INuGetResourceProvider>> providers) 179var cache = new Dictionary<Type, IReadOnlyList<INuGetResourceProvider>>(ProviderCacheTypes); 189private static IReadOnlyList<INuGetResourceProvider>
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
Utility\JsonContext.cs (2)
17[JsonSerializable(typeof(IReadOnlyList<V3VulnerabilityIndexEntry>), TypeInfoPropertyName = "VulnerabilityIndex")] 18[JsonSerializable(typeof(CaseInsensitiveDictionary<IReadOnlyList<PackageVulnerabilityInfo>>), TypeInfoPropertyName = "VulnerabilityPage")]
NuGet.Resolver (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
NuGet.Versioning (2)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
118internal void AddSequence<T>(IReadOnlyList<T>? list) where T : notnull
src\nuget-client\build\Shared\SharedExtensions.cs (1)
169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
PresentationCore (1)
System\Windows\Nrbf\SerializationRecordExtensions.cs (1)
358internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count)
PresentationFramework (39)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (8)
124global::System.Collections.Generic.IReadOnlyList<AlternateWordForm> AlternateForms { get; } 133global::System.Collections.Generic.IReadOnlyList<WordSegment> GetTokens(string text); 280public global::System.Collections.Generic.IReadOnlyList<AlternateWordForm> AlternateForms => _default.AlternateForms; 387public global::System.Collections.Generic.IReadOnlyList<WordSegment> GetTokens(string text) => _default.GetTokens(text); 1149global::System.Collections.Generic.IReadOnlyList<global::MS.Internal.WindowsRuntime.Windows.Data.Text.AlternateWordForm> __value = default; 1219public unsafe global::System.Collections.Generic.IReadOnlyList<global::MS.Internal.WindowsRuntime.Windows.Data.Text.AlternateWordForm> AlternateForms 1320global::System.Collections.Generic.IReadOnlyList<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment> __result = default; 1404public unsafe global::System.Collections.Generic.IReadOnlyList<global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegment> GetTokens(string text)
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (4)
38global::System.Collections.Generic.IReadOnlyList<string> GetExtensionSubtags(string singleton); 159public global::System.Collections.Generic.IReadOnlyList<string> GetExtensionSubtags(string singleton) => AsInternal(new InterfaceTag<ILanguageExtensionSubtags>()).GetExtensionSubtags(singleton); 498global::System.Collections.Generic.IReadOnlyList<string> __value = default; 530public unsafe global::System.Collections.Generic.IReadOnlyList<string> GetExtensionSubtags(string singleton)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections.cs (1)
22RegisterCustomAbiTypeMappingNoLock(typeof(IReadOnlyList<>), typeof(MS.Internal.WindowsRuntime.ABI.System.Collections.Generic.IReadOnlyList<>), "Windows.Foundation.Collections.IVectorView`1");
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (9)
32public static IObjectReference CreateMarshaler(global::System.Collections.Generic.IReadOnlyList<T> obj) => 38public static global::System.Collections.Generic.IReadOnlyList<T> FromAbi(IntPtr thisPtr) => 41public static IntPtr FromManaged(global::System.Collections.Generic.IReadOnlyList<T> value) => 110private readonly global::System.Collections.Generic.IReadOnlyList<T> _list; 112internal ToAbiHelper(global::System.Collections.Generic.IReadOnlyList<T> list) => _list = list; 249private static ConditionalWeakTable<global::System.Collections.Generic.IReadOnlyList<T>, ToAbiHelper> _adapterTable = 250new ConditionalWeakTable<global::System.Collections.Generic.IReadOnlyList<T>, ToAbiHelper>(); 254var __this = global::WinRT.ComWrappersSupport.FindObject<global::System.Collections.Generic.IReadOnlyList<T>>(thisPtr);
System\Windows\Documents\NLGSpellerInterop.cs (6)
650public IReadOnlyList<ISpellerSegment> SubSegments 688public IReadOnlyList<string> Suggestions 798private IReadOnlyList<ISpellerSegment> _subSegments = null; 799private IReadOnlyList<string> _suggestions = null; 857public IReadOnlyList<ISpellerSegment> Segments 923private IReadOnlyList<ISpellerSegment> _segments;
System\Windows\Documents\SpellerInteropBase.cs (3)
40IReadOnlyList<ISpellerSegment> SubSegments { get; } 55IReadOnlyList<string> Suggestions { get; } 76IReadOnlyList<ISpellerSegment> Segments { get; }
System\Windows\Documents\WinRTSpellerInterop.cs (6)
966public IReadOnlyList<ISpellerSegment> SubSegments 976public IReadOnlyList<string> Suggestions 1025private IReadOnlyList<string> _suggestions; 1028private static readonly IReadOnlyList<ISpellerSegment> _empty; 1051public IReadOnlyList<ISpellerSegment> Segments 1085private IReadOnlyList<SpellerSegment> _segments;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
53public static IReadOnlyList<SpellerSegment> ComprehensiveGetTokens( 59IReadOnlyList<WordSegment> tokens = segmenter?.GetTokens(text) ?? Array.Empty<WordSegment>();
Qdrant.ApiService (2)
Program.cs (2)
21var collections = await client.ListCollectionsAsync(); 87var results = await client.SearchAsync("movie_collection", new[] { 0.12217915f, -0.034832448f }, limit: 3);
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (2)
833private static bool TryGetNssDbOverrides(out IReadOnlyList<string> overrides) 868if (TryGetNssDbOverrides(out var nssDbOverrides))
Roslyn.Diagnostics.Analyzers (54)
AbstractRunIterations`1.cs (1)
128var statements = syntaxGenerator.GetStatements(updatedMethod);
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (1)
121var existingMembers = generator.GetMembers(declaration);
src\roslyn\src\Compilers\Core\Portable\Text\TextChangeRangeExtensions.cs (1)
16public static TextChangeRange? Accumulate(this TextChangeRange? accumulatedTextChangeSoFar, IReadOnlyList<TextChangeRange> changesInNextVersion)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (6)
75public static IReadOnlyList<T> ToBoxedImmutableArray<T>(this IEnumerable<T>? items) 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 275if (source is IReadOnlyList<TItem> list) 610IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, EqualityComparer<T>.Default), 619IReadOnlyList<T> readOnlyList => IndexOf(readOnlyList, value, comparer), 640public static int IndexOf<T>(this IReadOnlyList<T> list, T value, IEqualityComparer<T> comparer)
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (4)
15public static bool HasDuplicates<T>(this IReadOnlyList<T> list) 18public static bool HasDuplicates<T>(this IReadOnlyList<T> list, IEqualityComparer<T> comparer) 21public static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector) 34internal static bool HasDuplicates<TItem, TValue>(this IReadOnlyList<TItem> list, Func<TItem, TValue> selector, IEqualityComparer<TValue> comparer)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (3)
33public static IReadOnlyList<T> EmptyBoxedImmutableArray<T>() 38public static IReadOnlyList<T> EmptyReadOnlyList<T>() 80public static IReadOnlyList<T> SingletonReadOnlyList<T>(T value)
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
20public static readonly IReadOnlyList<T> Instance = ImmutableArray<T>.Empty;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\AbstractSyntaxFormatting.cs (1)
34IReadOnlyList<TextSpan> spansToFormat;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\AbstractBlockFacts.cs (4)
18public abstract IReadOnlyList<TStatementSyntax> GetExecutableBlockStatements(SyntaxNode? node); 21public abstract IReadOnlyList<TStatementSyntax> GetStatementContainerStatements(SyntaxNode? node); 26IReadOnlyList<SyntaxNode> IBlockFacts.GetExecutableBlockStatements(SyntaxNode? node) 29IReadOnlyList<SyntaxNode> IBlockFacts.GetStatementContainerStatements(SyntaxNode? node)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\BlockFacts\IBlockFacts.cs (2)
39IReadOnlyList<SyntaxNode> GetExecutableBlockStatements(SyntaxNode? node); 48IReadOnlyList<SyntaxNode> GetStatementContainerStatements(SyntaxNode? node);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
45public static IEnumerable<(SyntaxToken, SyntaxToken)> ConvertToTokenPairs(this SyntaxNode root, IReadOnlyList<TextSpan> spans)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (4)
12public static IReadOnlyList<T> ToReadOnlyList<T>(this IList<T> list) 14if (list is IReadOnlyList<T> readOnlyList) 22public static T Last<T>(this IReadOnlyList<T> list) 25public static int IndexOf<T>(this IReadOnlyList<T> list, T value, int startIndex = 0)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (8)
57/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/>. 60internal static IReadOnlyList<T> ToBoxedImmutableArrayWithNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 62var list = sequence.ToBoxedImmutableArray(); 73/// Use to validate public API input for properties that are exposed as <see cref="IReadOnlyList{T}"/> and 77internal static IReadOnlyList<T> ToBoxedImmutableArrayWithDistinctNonNullItems<T>(IEnumerable<T>? sequence, string argumentName) where T : class 79var list = sequence.ToBoxedImmutableArray(); 90=> (sequence is IReadOnlyList<T> list) ? IndexOfNullOrDuplicateItem(list) : EnumeratingIndexOfNullOrDuplicateItem(sequence); 110private static int IndexOfNullOrDuplicateItem<T>(this IReadOnlyList<T> list) where T : class
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (2)
38public static Task<IReadOnlyList<T>> EmptyReadOnlyList<T>() 104public static readonly Task<IReadOnlyList<T>> EmptyReadOnlyList = Task.FromResult(SpecializedCollections.EmptyReadOnlyList<T>());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
178=> compilation.GetTypeByMetadataName(typeof(IReadOnlyList<>).FullName!);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (3)
33public static IReadOnlyList<string> GetNameParts(this INamespaceOrTypeSymbol symbol) 42IReadOnlyList<string> names1, IReadOnlyList<string> names2,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (2)
28var existingParameters = generator.GetParameters(declaration); 152IReadOnlyList<SyntaxNode> parameters, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
32public IReadOnlyList<SyntaxNode> OutermostBlockStatements { get; private set; } 33public IReadOnlyList<SyntaxNode> InnermostBlockStatements { get; private set; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
75var textChanges = Text.GetTextChanges(oldDocument.Text);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\ILayeredServiceMetadata.cs (1)
11IReadOnlyList<string> WorkspaceKinds { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
28public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
17public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
36public override IReadOnlyList<StatementSyntax> GetExecutableBlockStatements(SyntaxNode? node) 53public override IReadOnlyList<StatementSyntax> GetStatementContainerStatements(SyntaxNode? node)
rzc (8)
CompositeRazorProjectFileSystem.cs (2)
12public CompositeRazorProjectFileSystem(IReadOnlyList<RazorProjectFileSystem> fileSystems) 17public IReadOnlyList<RazorProjectFileSystem> FileSystems { get; }
DefaultExtensionDependencyChecker.cs (1)
154public IReadOnlyList<AssemblyIdentity> References { get; }
DiscoverCommand.cs (1)
245private static void Serialize(Stream stream, IReadOnlyList<TagHelperDescriptor> tagHelpers)
GenerateCommand.cs (2)
309var tagHelpers = JsonSerializer.Deserialize<IReadOnlyList<TagHelperDescriptor>>(stream, TagHelperDescriptorJsonConverter.SerializerOptions);
Json\JsonDataWriter.cs (2)
153public void WriteArray<T>(IReadOnlyList<T>? elements, WriteValue<T> writeElement) 175public void WriteArray<T>(string propertyName, IReadOnlyList<T>? elements, WriteValue<T> writeElement)
Shared (4)
EmptyCollections\Empty.cs (1)
38public static IReadOnlyList<T> ReadOnlyList<T>() => EmptyReadOnlyList<T>.Instance;
EmptyCollections\EmptyCollectionExtensions.cs (2)
62public static IReadOnlyList<T> EmptyIfNull<T>(this IReadOnlyList<T>? list)
LogBuffering\SerializedLogRecordFactory.cs (1)
24IReadOnlyList<KeyValuePair<string, object?>> attributes,
Shared.Tests (3)
EmptyCollections\EmptyCollectionExtensionsTests.cs (3)
19EmptyCollectionExtensions.EmptyIfNull((IReadOnlyList<T>?)null).Should().BeEmpty(); 28EmptyCollectionExtensions.EmptyIfNull((IReadOnlyList<T>)input).Should().BeEmpty().And.NotBeSameAs(input); 38EmptyCollectionExtensions.EmptyIfNull((IReadOnlyList<T>)nonempty).Should().BeSameAs(nonempty);
Stress.ApiService (1)
Program.cs (1)
222IReadOnlyList<KeyValuePair<string, object?>> eventData = new List<KeyValuePair<string, object?>>()
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
351KeyValuePair<TKey, TValue> IReadOnlyList<KeyValuePair<TKey, TValue>>.this[int index] => GetAt(index); 1583TKey IReadOnlyList<TKey>.this[int index] => _dictionary.GetAt(index).Key; 1722TValue IReadOnlyList<TValue>.this[int index] => _dictionary.GetAt(index).Value;
System.Collections.Immutable (10)
System\Collections\Immutable\ImmutableArray_1.cs (1)
85T IReadOnlyList<T>.this[int index]
System\Collections\Immutable\ImmutableExtensions.cs (2)
44internal static IReadOnlyList<T> AsReadOnlyList<T>(this IEnumerable<T> sequence) 48if (sequence is IReadOnlyList<T> orderedCollection)
System\Collections\Immutable\ImmutableList_1.cs (1)
1182IReadOnlyList<T> list = items.AsReadOnlyList();
System\Collections\Immutable\ImmutableList_1.Node.cs (2)
243internal static Node NodeTreeFromList(IReadOnlyList<T> items, int start, int length) 1570IReadOnlyList<T> list = keys.AsReadOnlyList();
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (2)
235IReadOnlyList<KeyValuePair<TKey, TValue>> list = dictionary.AsReadOnlyList(); 589private static Node NodeTreeFromList(IReadOnlyList<KeyValuePair<TKey, TValue>> items, int start, int length)
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
17/// We implement <see cref="IReadOnlyList{T}"/> because it adds an ordinal indexer.
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (1)
721internal static Node NodeTreeFromList(IReadOnlyList<T> items, int start, int length)
System.CommandLine (20)
Binding\ArgumentConverter.cs (2)
22case IReadOnlyList<Token> manyValues: 86IReadOnlyList<Token> tokens)
Command.cs (1)
251public ParseResult Parse(IReadOnlyList<string> args, ParserConfiguration? configuration = null)
Help\HelpBuilder.cs (1)
221public void WriteColumns(IReadOnlyList<TwoColumnHelpRow> items, HelpContext context)
Invocation\ParseErrorAction.cs (1)
90var unmatchedTokens = parseResult.UnmatchedTokens;
ParseResult.cs (5)
20private readonly IReadOnlyList<Token> _unmatchedTokens; 91public IReadOnlyList<ParseError> Errors { get; } 96public IReadOnlyList<Token> Tokens { get; } 107public IReadOnlyList<string> UnmatchedTokens 337internal IReadOnlyList<CommandLineAction>? PreActions => _preActions;
Parsing\CommandLineParser.cs (2)
21public static ParseResult Parse(Command command, IReadOnlyList<string> args, ParserConfiguration? configuration = null) 140IReadOnlyList<string> arguments,
Parsing\DirectiveResult.cs (1)
23public IReadOnlyList<string> Values => _values is null ? Array.Empty<string>() : _values;
Parsing\ParseDiagramAction.cs (1)
38var unmatchedTokens = parseResult.UnmatchedTokens;
Parsing\StringExtensions.cs (4)
29this IReadOnlyList<string> args, 111out var newTokens, 269private static bool FirstArgumentIsRootCommand(IReadOnlyList<string> args, Command rootCommand, bool inferRootCommand) 318out IReadOnlyList<string>? newTokens,
Parsing\SymbolResult.cs (1)
55public IReadOnlyList<Token> Tokens => _tokens is not null ? _tokens : Array.Empty<Token>();
Parsing\TryReplaceToken.cs (1)
13out IReadOnlyList<string>? replacementTokens,
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\InstrumentAdvice.cs (1)
36public IReadOnlyList<T>? HistogramBucketBoundaries
System.Formats.Nrbf (9)
System\Formats\Nrbf\ArrayRectangularPrimitiveRecord.cs (2)
21private readonly IReadOnlyList<T> _values; 24internal ArrayRectangularPrimitiveRecord(ArrayInfo arrayInfo, int[] lengths, IReadOnlyList<T> values) : base(arrayInfo)
System\Formats\Nrbf\ArraySinglePrimitiveRecord.cs (3)
27internal ArraySinglePrimitiveRecord(ArrayInfo arrayInfo, IReadOnlyList<T> values) : base(arrayInfo) 38internal IReadOnlyList<T> Values { get; } 48internal static IReadOnlyList<T> DecodePrimitiveTypes(BinaryReader reader, int count)
System\Formats\Nrbf\MemberTypeInfo.cs (3)
20internal MemberTypeInfo(IReadOnlyList<(BinaryType BinaryType, object? AdditionalInfo)> infos) => _infos = infos; 22private readonly IReadOnlyList<(BinaryType BinaryType, object? AdditionalInfo)> _infos; 24internal IReadOnlyList<(BinaryType BinaryType, object? AdditionalInfo)> Infos => _infos;
System\Formats\Nrbf\NrbfDecoder.cs (1)
324IReadOnlyList<T> values = ArraySinglePrimitiveRecord<T>.DecodePrimitiveTypes(reader, info.GetSZArrayLength());
System.Linq.Expressions (76)
System\Dynamic\Utils\ExpressionUtils.cs (5)
35public static ReadOnlyCollection<T> ReturnReadOnly<T>(ref IReadOnlyList<T> collection) 37IReadOnlyList<T> value = collection; 243internal static bool SameElements<T>(ICollection<T>? replacement, IReadOnlyList<T> current) where T : class 259internal static bool SameElements<T>(ref IEnumerable<T>? replacement, IReadOnlyList<T> current) where T : class 284private static bool SameElementsInCollection<T>(ICollection<T> replacement, IReadOnlyList<T> current) where T : class
System\Linq\Expressions\BlockExpression.cs (18)
467private IReadOnlyList<Expression> _expressions; // either the original IList<Expression> or a ReadOnlyCollection if the user has accessed it. 469internal BlockN(IReadOnlyList<Expression> expressions) 504private IReadOnlyList<ParameterExpression> _variables; // list of variables or ReadOnlyCollection if the user has accessed the read-only collection 506internal ScopeExpression(IReadOnlyList<ParameterExpression> variables) 519protected IReadOnlyList<ParameterExpression> VariablesList => _variables; 522internal IReadOnlyList<ParameterExpression> ReuseOrValidateVariables(ReadOnlyCollection<ParameterExpression>? variables) 541internal Scope1(IReadOnlyList<ParameterExpression> variables, Expression body) 546private Scope1(IReadOnlyList<ParameterExpression> variables, object body) 603private IReadOnlyList<Expression> _body; 605internal ScopeN(IReadOnlyList<ParameterExpression> variables, IReadOnlyList<Expression> body) 614protected IReadOnlyList<Expression> Body => _body; 642internal ScopeWithType(IReadOnlyList<ParameterExpression> variables, IReadOnlyList<Expression> expressions, Type type) 978IReadOnlyList<Expression> expressionList = expressions as IReadOnlyList<Expression> ?? expressions.ToReadOnly(); 1088private static BlockExpression GetOptimizedBlockExpression(IReadOnlyList<Expression> expressions) 1097_ => new BlockN(expressions as ReadOnlyCollection<Expression> ?? (IReadOnlyList<Expression>)expressions.ToArray()),
System\Linq\Expressions\Compiler\CompilerScope.cs (2)
100IReadOnlyList<ParameterExpression> variables = GetVariables(node); 482private static IReadOnlyList<ParameterExpression> GetVariables(object scope)
System\Linq\Expressions\Compiler\StackSpiller.SpilledExpressionBlock.cs (2)
38private static Expression MakeBlock(IReadOnlyList<Expression> expressions) 50internal SpilledExpressionBlock(IReadOnlyList<Expression> expressions)
System\Linq\Expressions\DebugViewWriter.cs (4)
226private void VisitExpressions<T>(char open, IReadOnlyList<T> expressions) where T : Expression 231private void VisitExpressions<T>(char open, char separator, IReadOnlyList<T> expressions) where T : Expression 236private void VisitDeclarations(IReadOnlyList<ParameterExpression> expressions) 250private void VisitExpressions<T>(char open, char separator, IReadOnlyList<T> expressions, Action<T> visit)
System\Linq\Expressions\DynamicExpression.cs (5)
494private IReadOnlyList<Expression> _arguments; // storage for the original IList or read-only collection. See IArgumentProvider for more info. 496internal DynamicExpressionN(Type delegateType, CallSiteBinder binder, IReadOnlyList<Expression> arguments) 524internal TypedDynamicExpressionN(Type returnType, Type delegateType, CallSiteBinder binder, IReadOnlyList<Expression> arguments) 853IReadOnlyList<Expression> argumentList = arguments as IReadOnlyList<Expression> ?? arguments.ToReadOnly();
System\Linq\Expressions\Expression.cs (1)
238private static void RequiresCanRead(IReadOnlyList<Expression> items, string paramName)
System\Linq\Expressions\IndexExpression.cs (2)
21private IReadOnlyList<Expression> _arguments; 26IReadOnlyList<Expression> arguments)
System\Linq\Expressions\Interpreter\ControlFlowInstructions.cs (2)
37public override string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects) 164public override string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects)
System\Linq\Expressions\Interpreter\Instruction.cs (1)
26public virtual string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects) => ToString();
System\Linq\Expressions\Interpreter\InstructionList.cs (3)
111internal static InstructionView[] GetInstructionViews(IReadOnlyList<Instruction> instructions, IReadOnlyList<object>? objects, 112Func<int, int> labelIndexer, IReadOnlyList<KeyValuePair<int, object?>>? debugCookies)
System\Linq\Expressions\Interpreter\LocalAccess.cs (1)
27public override string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects)
System\Linq\Expressions\Interpreter\StackOperations.cs (1)
48public override string ToDebugString(int instructionIndex, object? cookie, Func<int, int> labelIndexer, IReadOnlyList<object>? objects) =>
System\Linq\Expressions\InvocationExpression.cs (4)
127private IReadOnlyList<Expression> _arguments; 129public InvocationExpressionN(Expression lambda, IReadOnlyList<Expression> arguments, Type returnType) 713IReadOnlyList<Expression> argumentList = arguments as IReadOnlyList<Expression> ?? arguments.ToReadOnly();
System\Linq\Expressions\LambdaExpression.cs (4)
307internal static Expression<TDelegate> Create(Expression body, string? name, bool tailCall, IReadOnlyList<ParameterExpression> parameters) 565private IReadOnlyList<ParameterExpression> _parameters; 567public ExpressionN(Expression body, IReadOnlyList<ParameterExpression> parameters) 593public FullExpression(Expression body, string? name, bool tailCall, IReadOnlyList<ParameterExpression> parameters)
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\Linq\Expressions\NewExpression.cs (2)
20private IReadOnlyList<Expression> _arguments; 22internal NewExpression(ConstructorInfo? constructor, IReadOnlyList<Expression> arguments, ReadOnlyCollection<MemberInfo>? members)
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\Microsoft\Win32\SafeHandles\SafeFileHandle.ThreadPoolValueTaskSource.cs (4)
44private IReadOnlyList<Memory<byte>>? _readScatterBuffers; 45private IReadOnlyList<ReadOnlyMemory<byte>>? _writeGatherBuffers; 199public ValueTask<long> QueueReadScatter(IReadOnlyList<Memory<byte>> buffers, long fileOffset, CancellationToken cancellationToken) 212public ValueTask QueueWriteGather(IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset, CancellationToken cancellationToken)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
215T IReadOnlyList<T>.this[int index]
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\Collections\Generic\CollectionExtensions.cs (1)
16internal static List<T> CreateTrimmedList<T>(this IReadOnlyList<T> readOnlyList, int count)
System\IO\BinaryReaderExtensions.cs (3)
60/// <inheritdoc cref="WritePrimitives{T}(BinaryWriter, IReadOnlyList{T})"/> 201internal static unsafe void WritePrimitives<T>(this BinaryWriter writer, IReadOnlyList<T> values) 278static void WritePrimitiveCollection(BinaryWriter writer, IReadOnlyList<T> values)
System\IO\BinaryWriterExtensions.cs (1)
30internal static void Write(this BinaryWriter writer, IReadOnlyList<MemberTypeInfo> memberTypeInfo)
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (2)
55public IReadOnlyList<T> ArrayObjects { get; } 62internal ArrayRecord(ArrayInfo arrayInfo, IReadOnlyList<T> arrayObjects) : base(arrayInfo)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleObject.cs (1)
22public ArraySingleObject(Id objectId, IReadOnlyList<object?> arrayObjects)
System\Private\Windows\BinaryFormat\Serializer\ArraySinglePrimitive.cs (1)
28public ArraySinglePrimitive(Id objectId, IReadOnlyList<T> arrayObjects)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.cs (2)
20private readonly IReadOnlyList<object?> _records; 22internal ArraySingleString(Id objectId, IReadOnlyList<object?> arrayObjects, IReadOnlyRecordMap recordMap)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (2)
12private readonly IReadOnlyList<object?> _recordList; 15internal StringListAdapter(IReadOnlyList<object?> recordList, IReadOnlyRecordMap recordMap)
System\Private\Windows\BinaryFormat\Serializer\ClassInfo.cs (2)
20public IReadOnlyList<string> MemberNames { get; } 22public ClassInfo(Id objectId, string name, IReadOnlyList<string> memberNames)
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (7)
20public IReadOnlyList<object?> MemberValues { get; } 21internal IReadOnlyList<MemberTypeInfo> MemberTypeInfo { get; } 27public IReadOnlyList<string> MemberNames => ClassInfo.MemberNames; 48IReadOnlyList<MemberTypeInfo> memberTypeInfo, 49IReadOnlyList<object?> memberValues) 61IReadOnlyList<MemberTypeInfo> memberTypeInfo, 62IReadOnlyList<object?> memberValues)
System\Private\Windows\BinaryFormat\Serializer\ClassWithId.cs (2)
31public ClassWithId(Id id, ClassRecord metadataClass, IReadOnlyList<object?> memberValues) 41: this(id, metadataClass, (IReadOnlyList<object?>)memberValues)
System\Private\Windows\BinaryFormat\Serializer\ClassWithMembersAndTypes.cs (4)
25IReadOnlyList<MemberTypeInfo> memberTypeInfo, 26IReadOnlyList<object?> memberValues) 35IReadOnlyList<MemberTypeInfo> memberTypeInfo, 37: this(classInfo, libraryId, memberTypeInfo, (IReadOnlyList<object>)memberValues)
System\Private\Windows\BinaryFormat\Serializer\Record.cs (1)
86private protected static void WriteRecords(BinaryWriter writer, IReadOnlyList<object?> objects, bool coalesceNulls)
System\Private\Windows\BinaryFormat\Serializer\SystemClassWithMembersAndTypes.cs (4)
22IReadOnlyList<MemberTypeInfo> memberTypeInfo, 23IReadOnlyList<object?> memberValues) 30IReadOnlyList<MemberTypeInfo> memberTypeInfo, 32: this(classInfo, memberTypeInfo, (IReadOnlyList<object?>)memberValues)
System\Private\Windows\Ole\DataFormatsCore.cs (2)
58IReadOnlyList<T>? formats, 122IReadOnlyList<T>? formats,
System.Reflection.Metadata (14)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (14)
36public MetadataAggregator(MetadataReader baseReader, IReadOnlyList<MetadataReader> deltaReaders) 42IReadOnlyList<int>? baseTableRowCounts, 43IReadOnlyList<int>? baseHeapSizes, 44IReadOnlyList<MetadataReader>? deltaReaders) 51IReadOnlyList<int>? baseTableRowCounts, 52IReadOnlyList<int>? baseHeapSizes, 53IReadOnlyList<MetadataReader>? deltaReaders) 114out IReadOnlyList<int> baseTableRowCounts, 115out IReadOnlyList<int> baseHeapSizes) 135IReadOnlyList<int> baseSizes, 136IReadOnlyList<MetadataReader> deltaReaders) 168IReadOnlyList<int> baseRowCounts, 169IReadOnlyList<MetadataReader> deltaReaders) 194internal static RowCounts[][] GetBaseRowCounts(IReadOnlyList<int> baseRowCounts, int generations)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
88[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyList<>))]
System.Text.Json (9)
System\Text\Json\Serialization\JsonTypeClassifierContext.cs (4)
38IReadOnlyList<JsonUnionCaseInfo> unionCases, 39IReadOnlyList<JsonDerivedType> derivedTypes, 71public IReadOnlyList<JsonUnionCaseInfo> UnionCases { get; } 82public IReadOnlyList<JsonDerivedType> DerivedTypes { get; }
System\Text\Json\Serialization\Metadata\MemberAccessor.cs (1)
74public abstract UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries);
System\Text\Json\Serialization\Metadata\ReflectionEmitCachingMemberAccessor.cs (1)
86public override UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries) =>
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (2)
612public override UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries) => 615private static DynamicMethod CreateUnionTryGetValueAccessor(Type unionType, IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries)
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
206public override UnionTryGetValueAccessor<TUnion> CreateUnionTryGetValueAccessor<TUnion>(IReadOnlyList<KeyValuePair<Type, MethodInfo>> entries)
System.Windows.Forms (15)
System\Windows\Forms\ComponentModel\COM2Interop\COM2Properties.cs (1)
159public void RegisterPropertyEvents(IReadOnlyList<ICom2ExtendedBrowsingHandler> handlers)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3319private IReadOnlyList<Entry> Entries => Items.InnerList;
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (1)
148IReadOnlyList<ItemArray.Entry?> entries = owner.Items.InnerArray.Entries;
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (5)
99IReadOnlyList<ListViewGroup> visibleGroups = GetVisibleGroups(); 141IReadOnlyList<ListViewGroup> visibleGroups = GetVisibleGroups(); 215IReadOnlyList<ListViewGroup> visibleGroups = GetVisibleGroups(); 258internal IReadOnlyList<ListViewGroup> GetVisibleGroups() 296IReadOnlyList<ListViewGroup> visibleGroups = GetVisibleGroups();
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (4)
193internal IReadOnlyList<ListViewItem> GetVisibleItems() 241IReadOnlyList<ListViewItem> visibleItems = GetVisibleItems(); 256IReadOnlyList<ListViewItem> visibleItems = GetVisibleItems(); 272IReadOnlyList<ListViewItem> visibleItems = GetVisibleItems();
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (2)
15private protected IReadOnlyList<GridItem> _entries; 17internal GridItemCollection(IReadOnlyList<GridItem>? entries)
System\Windows\Forms\Internal\ItemArray.cs (1)
35internal IReadOnlyList<Entry?> Entries => _entries;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DesignerUtils.cs (2)
731public static List<IComponent>? CopyDragObjects(IReadOnlyList<IComponent> objects, IServiceProvider svcProvider) 790private static List<IComponent> GetCopySelection(IReadOnlyList<IComponent> objects, IDesignerHost host)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1883IReadOnlyList<IComponent> components;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
689IReadOnlyList<IComponent> components;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2668IReadOnlyList<IComponent> components;