192 implementations of
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
56public object this[string name]
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
293public StringValues this[string key] { get => _innerHeaders[key]; set => _innerHeaders[key] = value; }
Http3\Http3ConnectionTests.cs (1)
857public StringValues this[string key] { get => _innerHeaders[key]; set => _innerHeaders[key] = value; }
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
263public object? this[string key]
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
41object? IDictionary<object, object?>.this[object key]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1376public StringValues this[string key]
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
100StringValues IDictionary<string, StringValues>.this[string key]
Internal\ItemsDictionary.cs (1)
28object? IDictionary<object, object?>.this[object key]
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
98public TValue this[TKey key]
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\RouteValueDictionary.cs (1)
263public object? this[string key]
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
46ValidationStateEntry IDictionary<object, ValidationStateEntry>.this[object key]
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
DictionaryModelBinderIntegrationTest.cs (2)
1520string IDictionary<string, string>.this[string key] 1625TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
AttributeDictionary.cs (1)
22public string? this[string key]
TempDataDictionary.cs (1)
85public object? this[string key]
ViewDataDictionary.cs (1)
306public object? this[string index]
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
26string[] IDictionary<string, string[]>.this[string key]
DictionaryStringValuesWrapper.cs (1)
37StringValues IDictionary<string, StringValues>.this[string key]
OwinEnvironment.cs (1)
113object IDictionary<string, object>.this[string key]
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
90StringValues IDictionary<string, StringValues>.this[string key]
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
44StringValues IDictionary<string, StringValues>.this[string key]
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
90StringValues IDictionary<string, StringValues>.this[string key]
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
44StringValues IDictionary<string, StringValues>.this[string key]
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
78StringValues IDictionary<string, StringValues>.this[string key]
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1198public StringValues this[string key] { get => _innerHeaders[key]; set => _innerHeaders[key] = value; }
Microsoft.AspNetCore.Shared.Tests (5)
ClosedGenericMatcherTest.cs (1)
238object IDictionary<string, object>.this[string key]
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
98public TValue this[TKey key]
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
90StringValues IDictionary<string, StringValues>.this[string key]
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
44StringValues IDictionary<string, StringValues>.this[string key]
Microsoft.Build.Framework (3)
ImmutableSegmentedDictionary`2.cs (1)
120TValue IDictionary<TKey, TValue>.this[TKey key]
ImmutableSegmentedDictionary`2+Builder.cs (1)
84public TValue this[TKey key]
SegmentedDictionary`2.cs (1)
179public TValue this[TKey key]
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
39public TValue this[TKey key]
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Extensions.AI.Abstractions (3)
AdditionalPropertiesDictionary{TValue}.cs (1)
64public TValue this[string key]
Functions\AIFunctionArguments.cs (1)
104public object? this[string key]
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Extensions.AI.AzureAIInference (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Extensions.AI.Ollama (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Extensions.AI.OpenAI (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
273public object this[string key]
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
46public U this[T key] { get => ((IDictionary<T, U>)Map)[key]; set => ((IDictionary<T, U>)Map)[key] = value; }
Microsoft.Maui.Controls (3)
OrderedDictionary.cs (1)
188 public TValue this[TKey key]
ResourceDictionary.cs (1)
212 public object this[string index]
Shell\ShellNavigationQueryParameters.cs (1)
41 public object this[string key]
Microsoft.ML.Core (1)
Utilities\Tree.cs (1)
50public Tree<TKey, TValue> this[TKey key]
Microsoft.ML.SearchSpace (3)
Option\NestOption.cs (1)
21public OptionBase this[string key] { get => ((IDictionary<string, OptionBase>)_options)[key]; set => ((IDictionary<string, OptionBase>)_options)[key] = value; }
Parameter.cs (1)
270public Parameter this[string key]
SearchSpace.cs (1)
106public OptionBase this[string key] { get => ((IDictionary<string, OptionBase>)_options)[key]; set => ((IDictionary<string, OptionBase>)_options)[key] = value; }
Microsoft.ML.TorchSharp (1)
Utils\DefaultDictionary.cs (1)
30public TValue this[TKey key]
PresentationCore (4)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
680ushort IDictionary<int, ushort>.this[int i]
System\Windows\Media\CharacterMetricsDictionary.cs (1)
241public CharacterMetrics this[int key]
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
210public string this[XmlLanguage key]
System\Windows\Media\GlyphTypeface.cs (1)
1774public double this[ushort key]
PresentationFramework (2)
MS\Internal\Annotations\ObservableDictionary.cs (1)
233public string this[string key]
MS\Internal\WeakDictionary.cs (1)
245public TValue this[TKey key]
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Shared (1)
EmptyCollections\EmptyReadonlyDictionary.cs (1)
33TValue IDictionary<TKey, TValue>.this[TKey key]
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (1)
364public TValue this[TKey key]
System\Collections\Generic\SortedDictionary.cs (1)
106public TValue this[TKey key]
System\Collections\Generic\SortedList.cs (1)
570public TValue this[TKey key]
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1065public TValue this[TKey key]
System.Collections.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
577TValue IDictionary<TKey, TValue>.this[TKey key]
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
407public TValue this[TKey key]
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
263TValue IDictionary<TKey, TValue>.this[TKey key]
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
176public TValue this[TKey key]
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
217TValue IDictionary<TKey, TValue>.this[TKey key]
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
63public object this[string key]
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\ActivityTagsCollection.cs (1)
58public object? this[string key]
System.Linq.Expressions (1)
System\Dynamic\ExpandoObject.cs (1)
621object? IDictionary<string, object?>.this[string key]
System.Net.Http (1)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (1)
309object? System.Collections.Generic.IDictionary<string, object?>.this[string key] { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
228public TValue this[TKey key]
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
65TValue IDictionary<TKey, TValue>.this[TKey key]
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
28public object? this[string key]
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
71public CoseHeaderValue this[CoseHeaderLabel key]
System.ServiceModel.Primitives (1)
netstandard.cs (1)
1729public object this[string name] { get { return default; } set { } }
System.Speech (1)
artifacts\obj\System.Speech\Debug\net10.0\System.Speech.notsupported.cs (1)
302public System.Speech.Recognition.SemanticValue this[string key] { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } }
System.Xaml (2)
System\Xaml\NameScope.cs (1)
166public object this[string key]
System\Xaml\NameScopeDictionary.cs (1)
288object IDictionary<string, object>.this[string key]
System.Xaml.Tests (2)
System\Xaml\XamlTypeTests.cs (2)
3138int IDictionary<string, int>.this[string key] { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } 3140string IDictionary<int, string>.this[int key] { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
1260 writes to
ApplicationModelWebSite (6)
Conventions\ActionDescriptionAttribute.cs (1)
19model.Properties["description"] = _value;
Conventions\ApplicationDescription.cs (1)
19application.Properties["description"] = _description;
Conventions\ControllerDescriptionAttribute.cs (1)
19model.Properties["description"] = _value;
Conventions\ControllerLicenseConvention.cs (1)
12controller.Properties["license"] = @"Licensed to the .NET Foundation under one or more agreements.
Conventions\FromHeaderConvention.cs (1)
17param.Action.Properties["source"] = "From Header";
Conventions\MultipleAreasControllerConvention.cs (1)
21controllerCopy.RouteValues["area"] = areaNames[i];
Aspire.Azure.AI.Inference (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.AI.OpenAI (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Data.Tables (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Search.Documents (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Security.KeyVault (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Azure.Storage.Queues (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Confluent.Kafka (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.EndToEnd.Tests (18)
IntegrationServicesFixture.cs (3)
44BuildEnvironment.EnvVars["TestsRunningOutsideOfRepo"] = "true"; 45BuildEnvironment.EnvVars["RestoreAdditionalProjectSources"] = BuildEnvironment.BuiltNuGetsPath; 46BuildEnvironment.EnvVars["SkipAspireWorkloadManifest"] = "true";
tests\Shared\TemplatesTesting\AspireProject.cs (1)
191AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\BuildEnvironment.cs (11)
170EnvVars["DOTNET_ROOT"] = sdkForTemplatePath; 171EnvVars["DOTNET_INSTALL_DIR"] = sdkForTemplatePath; 172EnvVars["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 173EnvVars["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 174EnvVars["PATH"] = $"{sdkForTemplatePath}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}"; 176EnvVars["NUGET_PACKAGES"] = NuGetPackagesPath!; 177EnvVars["BUILT_NUGETS_PATH"] = BuiltNuGetsPath; 178EnvVars["TreatWarningsAsErrors"] = "true"; 181EnvVars["DEBUG_SESSION_PORT"] = ""; 184EnvVars["_MSBUILDTLENABLED"] = "0"; 185EnvVars["SkipAspireWorkloadManifest"] = "true";
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
220psi.Environment["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 221psi.Environment["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 250psi.Environment[item.Key] = item.Value;
Aspire.Hosting (6)
Dcp\DcpHost.cs (1)
214dcpProcessSpec.EnvironmentVariables[key] = val;
Dcp\Model\ExecutableReplicaSet.cs (1)
31Annotations[annotationName] = value;
Dcp\Model\ModelCommon.cs (3)
47Metadata.Annotations[annotationName] = value; 67Metadata.Annotations[annotationName] = JsonSerializer.Serialize<List<TValue>>(list.ToList()); 128annotations[annotationName] = newAnnotationVal;
Dcp\Process\ProcessUtil.cs (1)
44process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
44process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure.AppContainers (2)
ContainerAppContext.cs (2)
148configuration.ProvisionableProperties["AutoConfigureDataProtection"] = value; 158containerApp.ProvisionableProperties["Kind"] = value;
Aspire.Hosting.Azure.CosmosDB (12)
AzureCosmosDBContainerResource.cs (4)
124target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__DatabaseName"] = Parent.DatabaseName; 125target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__DatabaseName"] = Parent.DatabaseName; 126target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__ContainerName"] = ContainerName; 127target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__ContainerName"] = ContainerName;
AzureCosmosDBDatabaseResource.cs (2)
50target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__DatabaseName"] = DatabaseName; 51target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__DatabaseName"] = DatabaseName;
AzureCosmosDBResource.cs (6)
100target[connectionName] = ConnectionStringExpression; 103target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__ConnectionString"] = connectionStringExpression; 104target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__ConnectionString"] = connectionStringExpression; 111target[$"{connectionName}__accountEndpoint"] = ConnectionStringExpression; 113target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__AccountEndpoint"] = ConnectionStringExpression; 114target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__AccountEndpoint"] = ConnectionStringExpression;
Aspire.Hosting.Azure.EventHubs (6)
AzureEventHubsResource.cs (6)
95target[connectionName] = ConnectionStringExpression; 99target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__ConnectionString"] = ConnectionStringExpression; 105target[$"{connectionName}__fullyQualifiedNamespace"] = EventHubsEndpoint; 109target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__FullyQualifiedNamespace"] = EventHubsEndpoint; 118target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__EventHubName"] = eventHub; 122target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__ConsumerGroup"] = consumerGroup;
Aspire.Hosting.Azure.ServiceBus (6)
AzureServiceBusResource.cs (6)
94target[$"{connectionName}"] = ConnectionStringExpression; 96target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__ConnectionString"] = GetConnectionString(queueOrTopicName, subscriptionName); 101target[$"{connectionName}__fullyQualifiedNamespace"] = ServiceBusEndpoint; 103target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__FullyQualifiedNamespace"] = ServiceBusEndpoint; 106target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__QueueOrTopicName"] = queueOrTopicName; 110target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__SubscriptionName"] = subscriptionName;
Aspire.Hosting.Azure.Storage (23)
AzureBlobStorageResource.cs (5)
58target[connectionName] = connectionString; 60target[$"{AzureStorageResource.BlobsConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 67target[$"{connectionName}__blobServiceUri"] = Parent.BlobEndpoint; 68target[$"{connectionName}__queueServiceUri"] = Parent.QueueEndpoint; 73target[$"{AzureStorageResource.BlobsConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.BlobEndpoint;
AzureQueueStorageResource.cs (4)
58target[connectionName] = connectionString; 59target[$"{AzureStorageResource.QueuesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 64target[$"{connectionName}__queueServiceUri"] = Parent.QueueEndpoint; 66target[$"{AzureStorageResource.QueuesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.QueueEndpoint;
AzureStorageResource.cs (10)
84target[connectionName] = connectionString; 86target[$"{BlobsConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 87target[$"{QueuesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 88target[$"{TablesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 93target[$"{connectionName}__blobServiceUri"] = BlobEndpoint; 94target[$"{connectionName}__queueServiceUri"] = QueueEndpoint; 95target[$"{connectionName}__tableServiceUri"] = TableEndpoint; 97target[$"{BlobsConnectionKeyPrefix}__{connectionName}__ServiceUri"] = BlobEndpoint; 98target[$"{QueuesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = QueueEndpoint; 99target[$"{TablesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = TableEndpoint;
AzureTableStorageResource.cs (4)
32target[connectionName] = connectionString; 33target[$"{AzureStorageResource.TablesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 38target[$"{connectionName}__tableServiceUri"] = Parent.TableEndpoint; 40target[$"{AzureStorageResource.TablesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.TableEndpoint; // Updated for consistency
Aspire.Microsoft.Data.SqlClient (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Milvus.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.MongoDB.Driver (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.MySqlConnector (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.NATS.Net (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Npgsql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Oracle.EntityFrameworkCore (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Qdrant.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.RabbitMQ.Client (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Seq (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.StackExchange.Redis (1)
src\Components\Common\HealthChecksExtensions.cs (1)
28builder.Properties[healthCheckKey] = true;
Aspire.Templates.Tests (16)
BuildAndRunTemplateTests.cs (1)
139testSpecificBuildEnvironment.EnvVars[KnownConfigNames.AllowUnsecuredTransport] = "true";
tests\Shared\TemplatesTesting\AspireProject.cs (1)
191AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\BuildEnvironment.cs (11)
170EnvVars["DOTNET_ROOT"] = sdkForTemplatePath; 171EnvVars["DOTNET_INSTALL_DIR"] = sdkForTemplatePath; 172EnvVars["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 173EnvVars["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 174EnvVars["PATH"] = $"{sdkForTemplatePath}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}"; 176EnvVars["NUGET_PACKAGES"] = NuGetPackagesPath!; 177EnvVars["BUILT_NUGETS_PATH"] = BuiltNuGetsPath; 178EnvVars["TreatWarningsAsErrors"] = "true"; 181EnvVars["DEBUG_SESSION_PORT"] = ""; 184EnvVars["_MSBUILDTLENABLED"] = "0"; 185EnvVars["SkipAspireWorkloadManifest"] = "true";
tests\Shared\TemplatesTesting\ToolCommand.cs (3)
220psi.Environment["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 221psi.Environment["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 250psi.Environment[item.Key] = item.Value;
BasicWebSite (14)
Controllers\TempDataController.cs (10)
20TempData["key"] = value; 26TempData["key"] = value; 55TempData["key1"] = value; 56TempData["key2"] = intValue; 57TempData["key3"] = listValues; 58TempData["key4"] = datetimeValue; 59TempData["key5"] = guidValue; 65TempData["value1"] = "steve"; 95TempData["LargeValue"] = new string(character, size); 109TempData[nameof(UnhandledExceptionAndSettingTempData)] = "James";
Controllers\TestingController.cs (1)
137TempData["Value"] = value + 1;
Conventions\ApplicationDescription.cs (1)
19application.Properties["description"] = _description;
Filters\TraceResourceFilter.cs (1)
16context.HttpContext.Items[nameof(TraceResourceFilter)] = $"This value was set by {nameof(TraceResourceFilter)}";
StoreIntoTempDataActionResult.cs (1)
17tempDataDictionary["Name"] = "Michael";
dotnet-svcutil-lib (37)
AppInsightsTelemetryClient.cs (3)
120context.GlobalProperties["SvcUtil.Version"] = Tool.PackageVersion; 121context.GlobalProperties["Dotnet.Version"] = string.IsNullOrEmpty(sdkVersion) ? "unknown" : sdkVersion; 122context.GlobalProperties["TestMode"] = testMode.ToString();
FrameworkFork\Microsoft.CodeDom\Configuration\CodeDomCompilationConfiguration.cs (1)
39compilerInfo._providerOptions[RedistVersionInfo.NameTag] = RedistVersionInfo.DefaultVersion;
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
125this.Properties[KeySizeProperty] = value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (2)
71binding.OperationSupportingTokenParameters[requestAction] = requirements; 85binding.OptionalOperationSupportingTokenParameters[requestAction] = optionalRequirements;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (2)
30properties[MessageHeadersPropertyKey] = message.Headers; 62properties[key] = value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (7)
152sspiRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 155sspiRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 196digestTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 199digestTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 220certificateTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 268usernameRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 271usernameRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (4)
862requirement.Properties[ServiceModelSecurityTokenRequirement.ExtendedProtectionPolicy] = _extendedProtectionPolicy; 871requirement.Properties[ServiceModelSecurityTokenRequirement.MessageDirectionProperty] = MessageDirection.Input; 872requirement.Properties[ServiceModelSecurityTokenRequirement.SupportingTokenAttachmentModeProperty] = attachmentMode; 873requirement.Properties[ServiceModelSecurityTokenRequirement.ExtendedProtectionPolicy] = _extendedProtectionPolicy;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (4)
27this.Properties[TargetAddressProperty] = value; 39this.Properties[ViaProperty] = value; 51this.Properties[IsOutOfBandTokenProperty] = value; 63this.Properties[PreferSslCertificateAuthenticatorProperty] = value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (1)
23this.Properties[ListenUriProperty] = value;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (11)
52this.Properties[SupportSecurityContextCancellationProperty] = defaultSupportSecurityContextCancellation; 102this.Properties[SecurityAlgorithmSuiteProperty] = value; 114this.Properties[SecurityBindingElementProperty] = value; 126this.Properties[IssuerAddressProperty] = value; 138this.Properties[IssuerBindingProperty] = value; 150this.Properties[SecureConversationSecurityBindingElementProperty] = value; 162this.Properties[MessageSecurityVersionProperty] = value; 175this.Properties[DefaultMessageSecurityVersionProperty] = (object)value; 187this.Properties[TransportSchemeProperty] = value; 199this.Properties[SupportSecurityContextCancellationProperty] = value; 211this.Properties[duplexClientLocalAddressProperty] = value;
ImportModule.cs (1)
326dcOptions.Namespaces[namespaceMapping.Key] = namespaceMapping.Value;
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
59public void Set(string key, string value) => _secrets[key] = value;
GenerateDocumentationAndConfigFiles (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
GenericHostWebSite (1)
Controllers\TestingController.cs (1)
123TempData["Value"] = value + 1;
HttpAbstractions.SampleApp (2)
Program.cs (2)
38context.Items["Item1"] = "Value1"; 39context.Items["Item2"] = "Value2";
IIS.FunctionalTests (22)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (3)
60deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = port.ToString(CultureInfo.InvariantCulture); 75deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = string.Empty; 91deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = port;
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
48deploymentParameters.HandlerSettings["handlerVersion"] = _handlerVersion20; 68deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_OUTOFPROCESS_HANDLER"] = temporaryFile; 95deploymentParameters.HandlerSettings["handlerVersion"] = version; 114deploymentParameters.HandlerSettings["handlerVersion"] = version;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
142deploymentParameters.HandlerSettings["debugLevel"] = "";
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
113deploymentParameters.HandlerSettings["debugLevel"] = "file"; 114deploymentParameters.HandlerSettings["debugFile"] = "subdirectory\\debug.txt"; 128deploymentParameters.HandlerSettings["debugLevel"] = "file"; 143deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG"] = "file"; 145deploymentParameters.HandlerSettings["debugFile"] = ""; 164deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG_FILE"] = firstTempFile; 190deploymentParameters.HandlerSettings["debugLevel"] = "file,eventlog"; 257deploymentParameters.HandlerSettings["enableOutOfProcessConsoleRedirection"] = "false";
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
143deploymentParameters.HandlerSettings["debugLevel"] = "";
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (1)
55baseDeploymentParameters.HandlerSettings["shutdownDelay"] = delayShutdown ? "1000" : "0";
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (3)
93deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1"; 120deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1"; 145deploymentParameters.EnvironmentVariables["COREHOST_TRACE"] = "1";
IIS.LongTests (44)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
485deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 505deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 526deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (40)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 385deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 421deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 509deploymentParameters.HandlerSettings["suppressRecycleOnStartupTimeout"] = "true"; 709deploymentParameters.HandlerSettings["SetCurrentDirectory"] = "false"; 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 793deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 841deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 884deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 901deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 902deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 927deploymentParameters.HandlerSettings["stackSize"] = "10000000"; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1111deploymentParameters.HandlerSettings["handlerVersion"] = "88.93"; 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1162deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1181deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1198deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_IIS_HTTPAUTH"] = "shouldberemoved"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1217deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Production"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1259deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm2"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1277deploymentParameters.WebConfigBasedEnvironmentVariables["OtherVariable"] = "%TestVariable%;Hello"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1339deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ANCM_HTTPS_PORT"] = "123"; 1354deploymentParameters.WebConfigBasedEnvironmentVariables["ENABLE_HTTPS_REDIRECTION"] = "true"; 1433deploymentParameters.HandlerSettings["forwardResponseConnectionHeader"] = "true"; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.NewHandler.FunctionalTests (44)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
485deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 505deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 526deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (40)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 385deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 421deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 509deploymentParameters.HandlerSettings["suppressRecycleOnStartupTimeout"] = "true"; 709deploymentParameters.HandlerSettings["SetCurrentDirectory"] = "false"; 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 793deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 841deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 884deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 901deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 902deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 927deploymentParameters.HandlerSettings["stackSize"] = "10000000"; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1111deploymentParameters.HandlerSettings["handlerVersion"] = "88.93"; 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1162deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1181deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1198deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_IIS_HTTPAUTH"] = "shouldberemoved"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1217deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Production"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1259deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm2"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1277deploymentParameters.WebConfigBasedEnvironmentVariables["OtherVariable"] = "%TestVariable%;Hello"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1339deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ANCM_HTTPS_PORT"] = "123"; 1354deploymentParameters.WebConfigBasedEnvironmentVariables["ENABLE_HTTPS_REDIRECTION"] = "true"; 1433deploymentParameters.HandlerSettings["forwardResponseConnectionHeader"] = "true"; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.NewShim.FunctionalTests (44)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
485deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 505deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 526deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (40)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 385deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 421deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 509deploymentParameters.HandlerSettings["suppressRecycleOnStartupTimeout"] = "true"; 709deploymentParameters.HandlerSettings["SetCurrentDirectory"] = "false"; 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 793deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 841deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 884deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 901deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 902deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 927deploymentParameters.HandlerSettings["stackSize"] = "10000000"; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1111deploymentParameters.HandlerSettings["handlerVersion"] = "88.93"; 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1162deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1181deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1198deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_IIS_HTTPAUTH"] = "shouldberemoved"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1217deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Production"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1259deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm2"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1277deploymentParameters.WebConfigBasedEnvironmentVariables["OtherVariable"] = "%TestVariable%;Hello"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1339deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ANCM_HTTPS_PORT"] = "123"; 1354deploymentParameters.WebConfigBasedEnvironmentVariables["ENABLE_HTTPS_REDIRECTION"] = "true"; 1433deploymentParameters.HandlerSettings["forwardResponseConnectionHeader"] = "true"; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
IIS.ShadowCopy.Tests (21)
ShadowCopyTests.cs (20)
22deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 23deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 48deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 49deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directoryName; 78deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 79deploymentParameters.HandlerSettings["shadowCopyDirectory"] = $"..\\{directory.DirectoryInfo.Name}"; 111deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 112deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 146deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 147deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 177deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 178deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 203deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 204deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 243deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 244deploymentParameters.HandlerSettings["shadowCopyDirectory"] = directory.DirectoryPath; 288deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 289deploymentParameters.HandlerSettings["shadowCopyDirectory"] = "./ShadowCopy/../ShadowCopy/"; 318deploymentParameters.HandlerSettings["enableShadowCopy"] = "true"; 319deploymentParameters.HandlerSettings["shadowCopyDirectory"] = "./ShadowCopy";
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
IISExpress.FunctionalTests (61)
src\Servers\IIS\IIS\test\Common.FunctionalTests\AspNetCorePortTests.cs (3)
60deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = port.ToString(CultureInfo.InvariantCulture); 75deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = string.Empty; 91deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_PORT"] = port;
src\Servers\IIS\IIS\test\Common.FunctionalTests\GlobalVersionTests.cs (4)
48deploymentParameters.HandlerSettings["handlerVersion"] = _handlerVersion20; 68deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_OUTOFPROCESS_HANDLER"] = temporaryFile; 95deploymentParameters.HandlerSettings["handlerVersion"] = version; 114deploymentParameters.HandlerSettings["handlerVersion"] = version;
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\FunctionalTestsBase.cs (1)
27parameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
src\Servers\IIS\IIS\test\Common.FunctionalTests\Inprocess\MaxRequestBodySizeTests.cs (1)
142deploymentParameters.HandlerSettings["debugLevel"] = "";
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (8)
113deploymentParameters.HandlerSettings["debugLevel"] = "file"; 114deploymentParameters.HandlerSettings["debugFile"] = "subdirectory\\debug.txt"; 128deploymentParameters.HandlerSettings["debugLevel"] = "file"; 143deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG"] = "file"; 145deploymentParameters.HandlerSettings["debugFile"] = ""; 164deploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG_FILE"] = firstTempFile; 190deploymentParameters.HandlerSettings["debugLevel"] = "file,eventlog"; 257deploymentParameters.HandlerSettings["enableOutOfProcessConsoleRedirection"] = "false";
src\Servers\IIS\IIS\test\Common.FunctionalTests\MaxRequestBodySizeTests.cs (1)
143deploymentParameters.HandlerSettings["debugLevel"] = "";
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
485deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 505deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true"; 526deploymentParameters.HandlerSettings["disallowRotationOnConfigChange"] = "true";
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (40)
49deploymentParameters.EnvironmentVariables["DotnetPath"] = _dotnetLocation; 115deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(_dotnetLocation); 136deploymentParameters.EnvironmentVariables["PATH"] = "."; 210deploymentParameters.EnvironmentVariables["PATH"] = Path.GetDirectoryName(DotNetCommands.GetDotNetExecutable(deploymentParameters.RuntimeArchitecture)); 385deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 421deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 509deploymentParameters.HandlerSettings["suppressRecycleOnStartupTimeout"] = "true"; 709deploymentParameters.HandlerSettings["SetCurrentDirectory"] = "false"; 727deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTUP_SUSPEND_EVENT"] = "ANCM_TestEvent"; 769deploymentParameters.EnvironmentVariables[environmentVariable] = value; 793deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "TRUE"; 839deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 840deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 841deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 863deploymentParameters.EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = ""; 884deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 901deploymentParameters.WebConfigBasedEnvironmentVariables["DOTNET_STARTUP_HOOKS"] = "InProcessWebSite"; 902deploymentParameters.HandlerSettings["callStartupHook"] = "false"; 927deploymentParameters.HandlerSettings["stackSize"] = "10000000"; 944deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_PATH"] = _dotnetLocation; 961deploymentParameters.EnvironmentVariables["ANCM_LAUNCHER_ARGS"] = Path.ChangeExtension(Path.Combine(publishedApp.Path, deploymentParameters.ApplicationPublisher.ApplicationPath), ".dll"); 1111deploymentParameters.HandlerSettings["handlerVersion"] = "88.93"; 1112deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1135deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example"; 1162deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1181deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_INPROCESS_TESTING_LONG_VALUE"] = expectedValue; 1198deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_IIS_HTTPAUTH"] = "shouldberemoved"; 1216deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Development"; 1217deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = "Production"; 1234deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1258deploymentParameters.EnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm1"; 1259deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_HOSTINGSTARTUPASSEMBLIES"] = "Asm2"; 1276deploymentParameters.EnvironmentVariables["TestVariable"] = "World"; 1277deploymentParameters.WebConfigBasedEnvironmentVariables["OtherVariable"] = "%TestVariable%;Hello"; 1292deploymentParameters.EnvironmentVariables["ANCM_PREFER_ENVIRONMENT_VARIABLES"] = "true"; 1293deploymentParameters.EnvironmentVariables["ASPNETCORE_ENVIRONMENT"] = environment; 1339deploymentParameters.WebConfigBasedEnvironmentVariables["ASPNETCORE_ANCM_HTTPS_PORT"] = "123"; 1354deploymentParameters.WebConfigBasedEnvironmentVariables["ENABLE_HTTPS_REDIRECTION"] = "true"; 1433deploymentParameters.HandlerSettings["forwardResponseConnectionHeader"] = "true"; 1496deploymentParameters.EnvironmentVariables["ANCM_ADDITIONAL_ERROR_PAGE_LINK"] = "http://example";
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
509persistentStateCollection["Counter"] = requestCount;
RequestTests.cs (1)
2145persistentStateCollection["Counter"] = requestCount;
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
841persistentStateCollection["Counter"] = requestCount;
Kestrel.SampleApp (1)
ClientCertBufferingFeature.cs (1)
72connectionItems.Items["tls.clientcert.negotiated"] = true;
Metrics (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Metrics.Legacy (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonObject.cs (1)
47set => _properties[key] = value;
Microsoft.Arcade.Common (1)
Command.cs (1)
124_process.StartInfo.Environment[name] = value;
Microsoft.AspNetCore (8)
WebApplication.cs (1)
38Properties[GlobalEndpointRouteBuilderKey] = this;
WebApplicationBuilder.cs (7)
421_builtApplication.Properties[UseRoutingKey] = app.Properties[UseRoutingKey]; 426app.Properties[EndpointRouteBuilderKey] = localRouteBuilder; 440_builtApplication.Properties[AuthenticationMiddlewareSetKey] = true; 449_builtApplication.Properties[AuthorizationMiddlewareSetKey] = true; 469app.Properties[item.Key] = item.Value; 478app.Properties[EndpointRouteBuilderKey] = priorRouteBuilder; 509_builtApplication.Properties[MiddlewareDescriptionsKey] = destinationDescriptions;
Microsoft.AspNetCore.Antiforgery (3)
AntiforgeryApplicationBuilderExtensions.cs (1)
26builder.Properties[AntiforgeryMiddlewareSetKey] = true;
AntiforgeryMiddleware.cs (1)
22context.Items[AntiforgeryMiddlewareWithEndpointInvokedKey] = AntiforgeryMiddlewareWithEndpointInvokedValue;
src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
Microsoft.AspNetCore.Authentication (3)
AuthAppBuilderExtensions.cs (1)
24app.Properties[AuthenticationMiddlewareSetKey] = true;
RemoteAuthenticationHandler.cs (2)
154ticketContext.Properties!.Items[AuthSchemeKey] = Scheme.Name; 236properties.Items[CorrelationProperty] = correlationId;
Microsoft.AspNetCore.Authentication.Abstractions (8)
AuthenticationOptions.cs (1)
45SchemeMap[name] = builder;
AuthenticationProperties.cs (4)
138Items[key] = value; 162=> Parameters[key] = value; 187Items[key] = value.GetValueOrDefault().ToString(); 219Items[key] = value.GetValueOrDefault().ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture);
TokenExtensions.cs (3)
44properties.Items[TokenKeyPrefix + token.Name] = token.Value; 49properties.Items[TokenNamesKey] = string.Join(';', tokenNames); 86properties.Items[tokenKey] = tokenValue;
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
144newProperties.Items[item.Key] = item.Value;
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
154_schemes[scheme.Name] = scheme;
Microsoft.AspNetCore.Authentication.Core.Test (10)
AuthenticationPropertiesTests.cs (8)
32props.Items["change"] = "good"; 33props.Parameters["something"] = "bad"; 260props.Items["foo"] = dateTimeOffset.ToString("r", CultureInfo.InvariantCulture); 266props.Items["foo"] = "BAR"; 291props.Items["foo"] = true.ToString(); 294props.Items["foo"] = false.ToString(); 297props.Items["foo"] = null; 300props.Items["foo"] = "BAR";
AuthenticationTicketTests.cs (2)
36props.Items["change"] = "good"; 37props.Parameters["something"] = "bad";
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
110queryStrings[name] = value;
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
401items[AuthPersistenceKey] = persistence;
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
OpenIdConnectHandler.cs (4)
265properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 474properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 969properties.Items[OpenIdConnectSessionProperties.SessionState] = message.SessionState; 974properties.Items[OpenIdConnectSessionProperties.CheckSessionIFrame] = _configuration.CheckSessionIframe;
Microsoft.AspNetCore.Authentication.Test (18)
CookieTests.cs (1)
691ctx.Properties.Items["updated"] = "yes";
OAuthChallengePropertiesTest.cs (7)
27properties.Parameters["scope"] = new string[] { "foo", "bar" }; 57properties.Parameters["max_age"] = TimeSpan.FromSeconds(500); 79properties.Parameters["prompt"] = "consent"; 110properties.Parameters["access_type"] = "offline"; 111properties.Parameters["approval_prompt"] = "force"; 112properties.Parameters["login_hint"] = "test@example.com"; 113properties.Parameters["prompt"] = "login";
OpenIdConnect\OpenIdConnectChallengeTests.cs (1)
992PushedParameters[key] = query[key];
TwitterTests.cs (3)
210properties.Items["testkey"] = "testvalue"; 260properties.Items["testkey"] = "testvalue"; 366properties.Items["testkey"] = "testvalue";
WsFederation\WsFederationTest.cs (3)
316context.HttpContext.Items["MessageReceived"] = true; 331context.HttpContext.Items["SecurityTokenReceived"] = true; 351context.HttpContext.Items["AuthenticationFailed"] = true;
WsFederation\WsFederationTest_Handler.cs (3)
305context.HttpContext.Items["MessageReceived"] = true; 320context.HttpContext.Items["SecurityTokenReceived"] = true; 340context.HttpContext.Items["AuthenticationFailed"] = true;
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
131properties.Items[WsFederationDefaults.UserstatePropertiesKey] = wsFederationMessage.Wctx;
Microsoft.AspNetCore.Authorization.Policy (2)
AuthorizationAppBuilderExtensions.cs (1)
32app.Properties[AuthorizationMiddlewareSetKey] = true;
AuthorizationMiddleware.cs (1)
102context.Items[AuthorizationMiddlewareInvokedWithEndpointKey] = AuthorizationMiddlewareWithEndpointInvokedValue;
Microsoft.AspNetCore.Components (2)
src\Http\Routing\src\RouteOptions.cs (2)
154_constraintTypeMap[token] = typeof(T); 170_constraintTypeMap[token] = type;
Microsoft.AspNetCore.Components.Endpoints (4)
Builder\RazorComponentEndpointDataSource.cs (1)
141builder.Properties[ResourceCollectionKey] = resourceCollection;
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
303httpContext.Items[ComponentSequenceKey] = result;
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
173httpContext.Items[InvokedRenderModesKey] = new InvokedRenderModes(currentInvocation);
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
EndpointHtmlRendererTest.cs (1)
944httpContext.Items[nameof(StatusCodePagesOptions)] = null; // simulate missing re-execution route
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHandleRegistry.cs (1)
30circuitHandles[circuitKey] = circuitHost?.Handle;
Microsoft.AspNetCore.Components.Server.Tests (1)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\HubMessageHelpers.cs (1)
21hubMessage.Headers[header.Key] = header.Value;
Microsoft.AspNetCore.Components.WebAssembly (1)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
130fetchOptions[name] = value;
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
214Data[key] = value;
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
81 responseHeaders["Content-Type"] = values.ContentType;
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
81 responseHeaders["Content-Type"] = values.ContentType;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
81 responseHeaders["Content-Type"] = values.ContentType;
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
51set { Items[key] = value; }
Microsoft.AspNetCore.Cors (3)
Infrastructure\CorsMiddleware.cs (1)
104context.Items[CorsMiddlewareWithEndpointInvokedKey] = CorsMiddlewareWithEndpointInvokedValue;
Infrastructure\CorsOptions.cs (2)
62PolicyMap[name] = (policy, Task.FromResult(policy)); 79PolicyMap[name] = (policy, Task.FromResult(policy));
Microsoft.AspNetCore.Diagnostics (7)
DeveloperExceptionPage\DeveloperExceptionPageExtensions.cs (2)
26app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware"; 46app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware";
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
262problemDetails.Extensions["exception"] = JsonSerializer.SerializeToElement(new ExceptionExtensionData
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
111app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware";
src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
StatusCodePage\StatusCodePagesMiddleware.cs (1)
52context.Items[nameof(StatusCodePagesOptions)] = _options.PathFormat;
Microsoft.AspNetCore.Diagnostics.Tests (2)
ExceptionHandlerMiddlewareTest.cs (2)
286context.Items["ExceptionHandler"] = true; 604httpContext.Items[_name] = true;
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
57HttpContext.Items["__HttpContext"] = HttpContext;
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
UnaryServerCallHandlerTests.cs (1)
1423context.UserState["IntercepterRun"] = true;
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
44.AddHeaderParsing(options => options.MaxCachedValuesPerHeader["Date"] = -1)
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostBuilder.cs (2)
236context.Properties[_startupKey] = instance; 250_builder.Properties[typeof(ConfigureContainerBuilder)] = configureContainerBuilder;
GenericHost\WebHostBuilderBase.cs (2)
86context.Properties[typeof(WebHostBuilderContext)] = webHostBuilderContext; 87context.Properties[typeof(WebHostOptions)] = options;
src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
ShutdownTests.cs (1)
63deploymentParameters.EnvironmentVariables["ASPNETCORE_STARTMECHANIC"] = shutdownMechanic;
Microsoft.AspNetCore.Hosting.Tests (2)
HostingApplicationDiagnosticsTests.cs (1)
1069context.HttpContext.Items["__RequestUnhandled"] = true;
HostingMetricsTests.cs (1)
65context3.HttpContext.Items["__RequestUnhandled"] = true;
Microsoft.AspNetCore.Http (6)
Builder\ApplicationBuilder.cs (2)
112Properties[key] = value; 190context.Items[RequestUnhandledKey] = true;
Internal\ItemsDictionary.cs (1)
41_items[key] = value;
src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
Timeouts\RequestTimeoutOptions.cs (1)
45Policies[policyName] = policy;
Microsoft.AspNetCore.Http.Abstractions (2)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
24problemDetails.Extensions["traceId"] = "|37dd3dd5-4a9619f953c40a16.";
MapPathMiddlewareTests.cs (2)
15context.Items["test.PathBase"] = context.Request.PathBase.Value; 16context.Items["test.Path"] = context.Request.Path.Value;
UseMiddlewareTest.cs (2)
286context.Items["before"] = true; 288context.Items["after"] = true;
UsePathBaseExtensionsTests.cs (2)
215context.Items["test.Path"] = context.Request.Path; 216context.Items["test.PathBase"] = context.Request.PathBase;
UseWhenExtensionsTests.cs (3)
129context.Items[key] = 1; 137context.Items[key] = 1 + (int)item; 141context.Items[key] = 1;
Microsoft.AspNetCore.Http.Extensions (1)
DefaultProblemDetailsWriter.cs (1)
60context.ProblemDetails.Extensions[traceIdKeyName] = traceId;
Microsoft.AspNetCore.Http.Extensions.Tests (34)
ProblemDetailsDefaultWriterTest.cs (5)
465expectedProblem.Extensions["Extension1"] = "Extension1-Value"; 466expectedProblem.Extensions["Extension2"] = "Extension2-Value"; 512expectedProblem.Extensions["Extension"] = customExtensionData; 578context.ProblemDetails.Extensions["new-extension"] = new { TraceId = Guid.NewGuid() }; 579context.ProblemDetails.Extensions["traceId"] = expectedTraceId;
RequestDelegateFactoryTests.cs (26)
246httpContext.Items["input"] = id; 302httpContext.Items["tryParsable"] = tryParsable; 354httpContext.Items["tryParsable"] = tryParsable; 611httpContext.Items["tryParsable"] = tryParsable; 645context.Items["headers"] = headerValues; 646context.Items["query"] = queryValues; 647context.Items["form"] = formValues; 673context.Items["headers"] = headerValues; 674context.Items["query"] = queryValues; 675context.Items["form"] = formValues; 697httpContext.Items["myAwaitedBindAsyncRecord"] = myAwaitedBindAsyncRecord; 698httpContext.Items["myAwaitedBindAsyncStruct"] = myAwaitedBindAsyncStruct; 1602context.Items["uri"] = myBindAsyncRecord.Uri; 1606context.Items["uri"] = myBindAsyncRecord?.Uri; 1610context.Items["uri"] = myBindAsyncRecord?.Uri; 1614context.Items["uri"] = mySimpleBindAsyncRecord.Uri; 1619context.Items["uri"] = myNullableBindAsyncStruct.Uri; 1623context.Items["uri"] = myNullableBindAsyncStruct?.Uri; 1627context.Items["uri"] = myNullableBindAsyncStruct?.Uri; 1631context.Items["uri"] = mySimpleBindAsyncStruct.Uri; 2206context.Items["invoked"] = true; 3189httpContext.Items[nameof(args.BoundToStringValues)] = args.BoundToStringValues; 3190httpContext.Items[nameof(args.BoundToString)] = args.BoundToString; 3191httpContext.Items[nameof(args.BoundToStringArray)] = args.BoundToStringArray; 3192httpContext.Items[nameof(args.BoundToIntArray)] = args.BoundToIntArray; 3638httpContext.Items["calls"] = _calls;
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (2)
368httpContext.Items["invoked"] = false; 872httpContext.Items["invoked"] = false;
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (1)
400httpContext.Items[structToBeZeroedKey] = new BodyStruct { Id = 42 };
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsOfTTests.Generated.cs (1)
1852httpContext.Items[nameof(ChecksumResult.Checksum)] = Checksum;
Microsoft.AspNetCore.Http.Tests (6)
ApplicationBuilderTests.cs (2)
160builder1.Properties["test"] = "value1"; 163builder2.Properties["test"] = "value2";
DefaultHttpContextTests.cs (1)
117context.Items["foo"] = item;
Timeouts\RequestTimeoutsMiddlewareTests.cs (3)
293context.Items["SetFrom"] = "default"; 304context.Items["SetFrom"] = "policy1"; 314context.Items["SetFrom"] = "policy2";
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersExtensions.cs (1)
33builder.Properties[ForwardedHeadersAdded] = true;
Microsoft.AspNetCore.Identity (4)
SignInManager.cs (4)
672props.Items[PasskeyCreationOptionsKey] = options.AsJson(); 766props.Items[PasskeyRequestOptionsKey] = options.AsJson(); 1322properties.Items[LoginProviderKey] = provider; 1325properties.Items[XsrfKey] = userId;
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
src\Identity\test\Shared\PriorityOrderer.cs (1)
78dictionary[key] = result;
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\HtmlPageContext.cs (1)
28_properties[key] = value;
Microsoft.AspNetCore.Identity.InMemory.Test (1)
src\Identity\test\Shared\PriorityOrderer.cs (1)
78dictionary[key] = result;
Microsoft.AspNetCore.Identity.Test (5)
SignInManagerTest.cs (4)
1378properties.Items["LoginProvider"] = "blah"; 1409properties.Items["LoginProvider"] = "blah"; 1440properties.Items["LoginProvider"] = "blah"; 1441properties.Items["CustomValue"] = "fizzbuzz";
src\Identity\test\Shared\PriorityOrderer.cs (1)
78dictionary[key] = result;
Microsoft.AspNetCore.JsonPatch (2)
Internal\DictionaryAdapterOfTU.cs (2)
39dictionary[convertedKey] = convertedValue; 127dictionary[convertedKey] = convertedValue;
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Internal\DictionaryAdapterOfTU.cs (2)
34dictionary[convertedKey] = convertedValue; 119dictionary[convertedKey] = convertedValue;
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (26)
IntegrationTests\DictionaryIntegrationTest.cs (26)
17model.DictionaryOfStringToInteger["one"] = 1; 18model.DictionaryOfStringToInteger["two"] = 2; 31model.DictionaryOfStringToInteger["one"] = 1; 32model.DictionaryOfStringToInteger["two"] = 2; 51model.DictionaryOfStringToInteger["one"] = 1; 52model.DictionaryOfStringToInteger["two"] = 2; 69model.DictionaryOfStringToInteger["one"] = 1; 70model.DictionaryOfStringToInteger["two"] = 2; 87model.DictionaryOfStringToInteger["one"] = 1; 88model.DictionaryOfStringToInteger["two"] = 2; 106model.DictionaryOfStringToInteger["one"] = 1; 107model.DictionaryOfStringToInteger["two"] = 2; 148model.DictionaryOfStringToCustomer[key1] = value1; 163model.DictionaryOfStringToCustomer[key1] = value1; 186model.DictionaryOfStringToCustomer[key1] = value1; 187model.DictionaryOfStringToCustomer[key2] = value2; 210model.DictionaryOfStringToCustomer[key1] = value1; 211model.DictionaryOfStringToCustomer[key2] = value2; 232model.DictionaryOfStringToCustomer[key1] = value1; 233model.DictionaryOfStringToCustomer[key2] = value2; 255model.DictionaryOfStringToCustomer[key1] = value1; 256model.DictionaryOfStringToCustomer[key2] = value2; 279model.DictionaryOfStringToCustomer[key1] = value1; 280model.DictionaryOfStringToCustomer[key2] = value2; 303model.DictionaryOfStringToInteger[key1] = value1; 304model.DictionaryOfStringToInteger[key2] = value2;
Microsoft.AspNetCore.JsonPatch.Tests (26)
IntegrationTests\DictionaryIntegrationTest.cs (26)
17model.DictionaryOfStringToInteger["one"] = 1; 18model.DictionaryOfStringToInteger["two"] = 2; 31model.DictionaryOfStringToInteger["one"] = 1; 32model.DictionaryOfStringToInteger["two"] = 2; 51model.DictionaryOfStringToInteger["one"] = 1; 52model.DictionaryOfStringToInteger["two"] = 2; 69model.DictionaryOfStringToInteger["one"] = 1; 70model.DictionaryOfStringToInteger["two"] = 2; 87model.DictionaryOfStringToInteger["one"] = 1; 88model.DictionaryOfStringToInteger["two"] = 2; 106model.DictionaryOfStringToInteger["one"] = 1; 107model.DictionaryOfStringToInteger["two"] = 2; 148model.DictionaryOfStringToCustomer[key1] = value1; 163model.DictionaryOfStringToCustomer[key1] = value1; 186model.DictionaryOfStringToCustomer[key1] = value1; 187model.DictionaryOfStringToCustomer[key2] = value2; 210model.DictionaryOfStringToCustomer[key1] = value1; 211model.DictionaryOfStringToCustomer[key2] = value2; 232model.DictionaryOfStringToCustomer[key1] = value1; 233model.DictionaryOfStringToCustomer[key2] = value2; 255model.DictionaryOfStringToCustomer[key1] = value1; 256model.DictionaryOfStringToCustomer[key2] = value2; 279model.DictionaryOfStringToCustomer[key1] = value1; 280model.DictionaryOfStringToCustomer[key2] = value2; 303model.DictionaryOfStringToInteger[key1] = value1; 304model.DictionaryOfStringToInteger[key2] = value2;
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\ActionDescriptorExtensions.cs (1)
48actionDescriptor.Properties[typeof(T)] = value;
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiDescriptionExtensions.cs (1)
48apiDescription.Properties[typeof(T)] = value;
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (21)
ApiResponseTypeProviderTest.cs (21)
23actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 145actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 202actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new[] 295actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 351actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 392actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 399actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 445actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 451actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 487actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 494actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(errorType); 538actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 545actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(InvalidTimeZoneException)); 584actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 591actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(void)); 631actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 637actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 681actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 687actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails)); 713actionDescriptor.Properties[typeof(ApiConventionResult)] = new ApiConventionResult(new IApiResponseMetadataProvider[] 717actionDescriptor.Properties[typeof(ProducesErrorResponseTypeAttribute)] = new ProducesErrorResponseTypeAttribute(typeof(ProblemDetails));
Microsoft.AspNetCore.Mvc.Core (12)
ApplicationModels\ApiConventionApplicationModelConvention.cs (2)
72action.Properties[typeof(ApiConventionResult)] = result; 84action.Properties[typeof(ProducesErrorResponseTypeAttribute)] = errorTypeAttribute;
ApplicationModels\ControllerActionDescriptorBuilder.cs (3)
153actionDescriptor.Properties[item.Key] = item.Value; 158actionDescriptor.Properties[item.Key] = item.Value; 163actionDescriptor.Properties[item.Key] = item.Value;
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
57options.ClientErrorMapping[statusCode] = new()
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
68problemDetails.Extensions[extension.Key] = extension.Value;
Infrastructure\DefaultProblemDetailsFactory.cs (1)
108problemDetails.Extensions["traceId"] = traceId;
ModelBinding\Binders\DictionaryModelBinder.cs (1)
208model[convertedKey] = ModelBindingHelper.CastOrDefault<TValue>(valueResult.Model);
Routing\UrlHelperFactory.cs (1)
60httpContext.Items[typeof(IUrlHelper)] = urlHelper;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Mvc.Core.Test (15)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (6)
64applicationModel.Properties["test"] = "application"; 89applicationModel.Properties["test"] = "application"; 94controller.Properties["test"] = "controller"; 115applicationModel.Properties["test"] = "application"; 120controller.Properties["test"] = "controller"; 127actionModel.Properties["test"] = "action";
Filters\FilterFactoryTest.cs (2)
231actionContext.HttpContext.Items["name"] = "foo"; 243actionContext.HttpContext.Items["name"] = "bar";
Infrastructure\ControllerActionInvokerTest.cs (1)
1961context.HttpContext.Items["Result"] = Value;
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
101expectedProblem.Extensions["Extension1"] = "Extension1-Value"; 102expectedProblem.Extensions["Extension2"] = "Extension2-Value";
Routing\ActionEndpointDataSourceBaseTest.cs (1)
144options.ConstraintMap["upper-case"] = typeof(UpperCaseParameterTransform);
Routing\ActionEndpointFactoryTest.cs (2)
25options.ConstraintMap["upper-case"] = typeof(UpperCaseParameterTransform); 465actionDescriptor.RouteValues[kvp.Key] = kvp.Value?.ToString();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
569action.RouteValues[kvp.Key] = kvp.Value?.ToString();
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
DictionaryModelBinderIntegrationTest.cs (2)
1529_data[key] = value; 1634_data[key] = value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
AnnotatedProblemDetails.cs (2)
25Extensions[kvp.Key] = kvp.Value; 57problemDetails.Extensions[kvp.Key] = kvp.Value;
ValidationProblemDetailsConverter.cs (2)
61Errors[kvp.Key] = kvp.Value; 74problemDetails.Errors[kvp.Key] = kvp.Value;
Microsoft.AspNetCore.Mvc.Razor (3)
LanguageViewLocationExpander.cs (1)
48context.Values[ValueKey] = CultureInfo.CurrentUICulture.Name;
RazorPage.cs (1)
64SectionWriters[name] = section;
RazorPageBase.cs (1)
389SectionWriters[name] = section;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
51routeModel.RouteValues["area"] = areaResult.areaName;
Microsoft.AspNetCore.Mvc.Razor.Test (10)
LanguageViewLocationExpanderTest.cs (2)
142viewLocationExpanderContext.Values["language"] = "en-GB"; 195viewLocationExpanderContext.Values["language"] = "!-invalid-culture-!";
RazorViewEngineTest.cs (7)
678c.Values["expander-key"] = expander1.ToString(); 746c.Values["expander-key"] = expander1.ToString(); 963expanderContext.Values["somekey"] = "somevalue"; 1022expanderContext.Values["somekey"] = "somevalue"; 1162c.Values["expander-key"] = expander.ToString(); 1221c.Values["expander-key"] = expander.ToString(); 1893context.ActionDescriptor.RouteValues["page"] = "MyPage";
TagHelpers\TagHelperComponentTagHelperTest.cs (1)
354context.Items["Key"] = "Value";
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\PageRouteModelFactory.cs (1)
51routeModel.RouteValues["area"] = areaResult.areaName;
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
39builder.Items[ResourceCollectionResolverKey] = resolver;
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (1)
36builder.Items[EndpointRouteBuilderKey] = endpoints;
Infrastructure\PageBinderFactory.cs (1)
157arguments[parameter.Name] = result.Model;
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
277action.RouteValues[kvp.Key] = kvp.Value?.ToString();
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
144options.ConstraintMap["upper-case"] = typeof(UpperCaseParameterTransform);
Microsoft.AspNetCore.Mvc.TagHelpers (5)
InputTagHelper.cs (3)
421htmlAttributes["type"] = inputType; 428htmlAttributes["multiple"] = "multiple"; 466htmlAttributes["type"] = "hidden";
SelectTagHelper.cs (2)
80context.Items[typeof(SelectTagHelper)] = null; 106context.Items[typeof(SelectTagHelper)] = currentValues;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
OptionTagHelperTest.cs (2)
425tagHelperContext.Items[typeof(SelectTagHelper)] = currentValues == null ? null : new CurrentValues(currentValues); 497tagHelperContext.Items[typeof(SelectTagHelper)] = currentValues == null ? null : new CurrentValues(currentValues);
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
32b.Properties[pair.Key] = pair.Value;
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
DefaultEditorTemplates.cs (2)
202htmlAttributes["class"] = htmlClassName; 409htmlAttributes["multiple"] = "multiple";
Filters\SaveTempDataPropertyFilterBase.cs (2)
54tempData[property.Key] = newValue; 77OriginalValues[property.PropertyInfo] = value;
HtmlHelper.cs (1)
170dictionary[helper.Name] = helper.GetValue(htmlAttributes);
NameAndIdProvider.cs (2)
64items[PreviousNameAndIdKey] = previousNameAndId; 156items[PreviousNameAndIdKey] = previousNameAndId;
ViewDataDictionary.cs (1)
315_data[index] = value;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
ControllerTest.cs (1)
379controller.TempData["key"] = input;
Filters\AntiforgeryMiddlewareAuthorizationFilterTest.cs (2)
20httpContext.Items[AntiforgeryMiddlewareAuthorizationFilter.AntiforgeryMiddlewareWithEndpointInvokedKey] = new object(); 38httpContext.Items[AntiforgeryMiddlewareAuthorizationFilter.AntiforgeryMiddlewareWithEndpointInvokedKey] = new object();
Filters\SaveTempDataFilterTest.cs (2)
102httpContext.Items[SaveTempDataFilter.SaveTempDataFilterContextKey] = new SaveTempDataFilter.SaveTempDataContext() { TempDataSaved = true }; 124httpContext.Items[SaveTempDataFilter.SaveTempDataFilterContextKey] = new SaveTempDataFilter.SaveTempDataContext() { RequestHasUnhandledException = true };
Microsoft.AspNetCore.OpenApi (11)
Extensions\OpenApiDocumentExtensions.cs (1)
20document.Components.Schemas[schemaId] = schema;
Schemas\OpenApiJsonSchema.Helpers.cs (2)
311schema.Discriminator.Mapping[kvp.Key] = new OpenApiSchemaReference(kvp.Value); 330schema.Metadata[OpenApiConstants.RefId] = reader.GetString() ?? string.Empty;
Services\OpenApiDocumentService.cs (7)
415response.Content[contentType] = new OpenApiMediaType { Schema = schema }; 592schema.Properties[description.Name] = parameterSchema; 644schema.Properties[description.Name] = parameterSchema; 656propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 666schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 675requestBody.Content[contentType] = new OpenApiMediaType 718requestBody.Content[contentType] = new OpenApiMediaType { Schema = await _componentService.GetOrCreateSchemaAsync(document, bodyParameter.Type, scopedServiceProvider, schemaTransformers, bodyParameter, cancellationToken: cancellationToken) };
Services\Schemas\OpenApiSchemaService.cs (1)
174schema.Properties[property.Key] = ResolveReferenceForSchema(document, property.Value, rootSchemaId);
Microsoft.AspNetCore.OpenApi.Microbenchmarks (4)
TransformersBenchmark.cs (4)
107schema.Extensions["x-my-extension"] = new JsonNodeExtension(context.ParameterDescription.Name); 111schema.Extensions["x-my-extension"] = new JsonNodeExtension("response"); 181schema.Extensions["x-my-extension"] = new JsonNodeExtension(context.ParameterDescription.Name); 185schema.Extensions["x-my-extension"] = new JsonNodeExtension("response");
Microsoft.AspNetCore.OpenApi.Tests (19)
Services\OpenApiDocumentServiceTestsBase.cs (2)
71routeOptions.ConstraintMap["regex"] = typeof(RegexInlineRouteConstraint); 157options.ConstraintMap["regex"] = typeof(RegexInlineRouteConstraint);
Transformers\CustomSchemaTransformerTests.cs (1)
159schema.Extensions["x-example-component"] = new JsonNodeExtension("#/components/schemas/TriangleExample");
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (1)
286schema.Extensions["x-my-extension"] = new JsonNodeExtension(context.ParameterDescription.Name);
Transformers\SchemaTransformerTests.cs (14)
156schema.Extensions["x-my-extension"] = new JsonNodeExtension("1"); 164schema.Extensions["x-my-extension"] = new JsonNodeExtension("2"); 190schema.Extensions["x-my-extension"] = new JsonNodeExtension("1"); 220schema.Extensions["x-my-extension"] = new JsonNodeExtension(context.ParameterDescription.Name); 500schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-triangle"); 571schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-triangle"); 575schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-square"); 613schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-triangle"); 617schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-square"); 655schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-triangle"); 659schema.Extensions["x-my-extension"] = new JsonNodeExtension("this-is-a-square"); 742schema.Extensions["modified-by-not-schema-transformer"] = new JsonNodeExtension(true); 958schema.Extensions["x-my-extension"] = new JsonNodeExtension("1"); 1007schema.Extensions["x-my-extension"] = new JsonNodeExtension(Dependency.InstantiationCount.ToString(CultureInfo.InvariantCulture));
Transformers\TypeBasedTransformerLifetimeTests.cs (1)
350schema.Extensions["x-my-extension"] = new JsonNodeExtension("1");
Microsoft.AspNetCore.OutputCaching (1)
Policies\VaryByValuePolicy.cs (1)
23rules.VaryByValues[result.Key] = result.Value;
Microsoft.AspNetCore.OutputCaching.Tests (2)
OutputCacheKeyProviderTests.cs (2)
133context.CacheVaryByRules.VaryByValues["b"] = "ValueB"; 134context.CacheVaryByRules.VaryByValues["a"] = "ValueA";
Microsoft.AspNetCore.Owin (23)
DictionaryStringValuesWrapper.cs (3)
34set { Inner[key] = value; } 40set { Inner[key] = value; } 68Inner[HeaderNames.ContentLength] = (StringValues)HeaderUtilities.FormatNonNegativeInt64(value.GetValueOrDefault());
OwinEnvironment.cs (6)
53_context.Items[OwinConstants.CallCancelled] = CancellationToken.None; 59_context.Items[OwinConstants.OwinVersion] = "1.0"; 62_context.Items[typeof(HttpContext).FullName] = _context; // Store for lookup when we transition back out of OWIN 143_context.Items[key] = value; 155_context.Items[key] = value; 616_contextEntries[entry.Key] = entry.Value;
OwinExtensions.cs (1)
51env[typeof(HttpContext).FullName] = httpContext;
OwinFeatureCollection.cs (1)
72Environment[key] = value;
WebSockets\OwinWebSocketAcceptAdapter.cs (1)
123environment[OwinConstants.WebSocket.AcceptAlt] = new WebSocketAcceptAlt(adapter.AcceptWebSocketAsync);
WebSockets\OwinWebSocketAcceptContext.cs (1)
49_options[OwinConstants.WebSocket.SubProtocol] = value;
WebSockets\WebSocketAcceptAdapter.cs (2)
53_env[OwinConstants.ResponseStatusCode] = 101; 70environment[OwinConstants.WebSocket.Accept] = new WebSocketAccept(adapter.AcceptWebSocket);
WebSockets\WebSocketAdapter.cs (8)
46_environment[OwinConstants.WebSocket.SendAsync] = new WebSocketSendAsync(SendAsync); 47_environment[OwinConstants.WebSocket.ReceiveAsync] = new WebSocketReceiveAsync(ReceiveAsync); 48_environment[OwinConstants.WebSocket.CloseAsync] = new WebSocketCloseAsync(CloseAsync); 49_environment[OwinConstants.WebSocket.CallCancelled] = ct; 50_environment[OwinConstants.WebSocket.Version] = OwinConstants.WebSocket.VersionValue; 52_environment[typeof(WebSocket).FullName] = webSocket; 82_environment[OwinConstants.WebSocket.ClientCloseStatus] = (int)(nativeResult.CloseStatus ?? WebSocketCloseStatus.NormalClosure); 83_environment[OwinConstants.WebSocket.ClientCloseDescription] = nativeResult.CloseStatusDescription ?? string.Empty;
Microsoft.AspNetCore.Owin.Tests (14)
OwinEnvironmentTests.cs (13)
64env["owin.RequestMethod"] = "SomeMethod"; 65env["server.User"] = new ClaimsPrincipal(new ClaimsIdentity("Foo")); 68env["owin.RequestUser"] = new ClaimsPrincipal(new ClaimsIdentity("Bar")); 70env["owin.RequestBody"] = Stream.Null; 73requestHeaders["CustomRequestHeader"] = new[] { "CustomRequestValue" }; 74env["owin.RequestPath"] = "/path"; 75env["owin.RequestPathBase"] = "/pathBase"; 76env["owin.RequestProtocol"] = "http/1.0"; 77env["owin.RequestQueryString"] = "key=value"; 78env["owin.RequestScheme"] = "http"; 79env["owin.ResponseBody"] = Stream.Null; 82responseHeaders["CustomResponseHeader"] = new[] { "CustomResponseValue" }; 83env["owin.ResponseStatusCode"] = 201;
OwinExtensionTests.cs (1)
22static readonly AppFunc notFound = env => new Task(() => { env["owin.ResponseStatusCode"] = 404; });
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
Microsoft.AspNetCore.Razor.Runtime.Test (7)
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (7)
19executionContext.Items["test-entry"] = 1234; 33parentExecutionContext.Items["test-entry"] = 1234; 51parentExecutionContext.Items["test-entry"] = parentComplexObject; 72parentExecutionContext.Items["test-entry"] = 1234; 76executionContext.Items["test-entry"] = 2222; 96executionContext.Items["new-entry"] = 2222; 111parentExecutionContext.Items["test-entry"] = 1234;
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
389_storage[key] = entry;
Microsoft.AspNetCore.Rewrite (3)
ApacheModRewrite\Flags.cs (2)
31FlagDictionary[flag] = value; 57FlagDictionary[flag] = value ?? string.Empty;
src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Routing (6)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
50builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder; 55builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder;
RouteOptions.cs (2)
154_constraintTypeMap[token] = typeof(T); 170_constraintTypeMap[token] = type;
src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Routing.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Routing.Tests (29)
Builder\GroupTest.cs (5)
30httpContext.Items["id"] = id; 61httpContext.Items["org"] = org; 62httpContext.Items["id"] = id; 95httpContext.Items["org"] = org; 96httpContext.Items["id"] = id;
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (6)
186context.Items["ExecutedEndpoint"] = true; 196httpContext.Items["First"] = true; 206httpContext.Items["Second"] = true; 309httpContext.Items["CurrentOrder"] = order; 314httpContext.Items["CurrentOrder"] = order; 316httpContext.Items[$"{_name}-Order"] = order;
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (8)
140httpContext.Items["input"] = id; 178httpContext.Items["input"] = id; 513httpContext.Items["input"] = id; 555httpContext.Items["input"] = id; 606httpContext.Items["value"] = id; 629httpContext.Items["value"] = id; 1084context.HttpContext.Items["loggerErrorIsEnabled"] = _logger.IsEnabled(LogLevel.Error); 1085context.HttpContext.Items["parentName"] = _routeHandlerContext.MethodInfo.DeclaringType?.Name;
DefaultLinkGeneratorTest.cs (4)
179o.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer); 205o.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer); 317o.ConstraintMap["upper-case"] = typeof(UpperCaseParameterTransform); 343o.ConstraintMap["upper-case"] = typeof(UpperCaseParameterTransform);
EndpointMiddlewareTest.cs (3)
171httpContext.Items[EndpointMiddleware.AuthorizationMiddlewareInvokedKey] = true; 268httpContext.Items[EndpointMiddleware.CorsMiddlewareInvokedKey] = true; 366httpContext.Items[EndpointMiddleware.AntiforgeryMiddlewareWithEndpointInvokedKey] = true;
Matching\DfaMatcherTest.cs (1)
34options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer);
RouteTest.cs (1)
1863options.ConstraintMap["test-policy"] = typeof(TestPolicy);
TestConstants.cs (1)
13context.Items["ShortCircuit"] = true;
Microsoft.AspNetCore.Server.HttpSys (7)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (3)
85Store[key] = value; 99Store[key] = value; 191Store[key] = StringValues.Concat(values, value);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
627unknownHeaders[headerName] = headerValue;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
56Extra[key] = value; 234Extra[key] = value;
UrlPrefixCollection.cs (1)
228_prefixes[key] = newPrefix;
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
DelegateOutOfProcTests.cs (1)
43deploymentParameters.EnvironmentVariables["queue"] = queueName;
Microsoft.AspNetCore.Server.IIS (6)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (3)
85Store[key] = value; 99Store[key] = value; 191Store[key] = StringValues.Concat(values, value);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
627unknownHeaders[headerName] = headerValue;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
56Extra[key] = value; 234Extra[key] = value;
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Common\DeploymentParameters.cs (3)
16EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true"; 27EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true"; 66EnvironmentVariables["ASPNETCORE_DETAILEDERRORS"] = "true";
Deployers\SelfHostDeployer.cs (1)
100DeploymentParameters.EnvironmentVariables["ASPNETCORE_CONTENTROOT"] = DeploymentParameters.ApplicationPath;
ProcessHelpers.cs (1)
31environment[name] = value;
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (8)
IISDeployer.cs (3)
91IISDeploymentParameters.WebConfigBasedEnvironmentVariables[DetailedErrorsEnvironmentVariable] = 101IISDeploymentParameters.HandlerSettings["debugLevel"] = "file"; 102IISDeploymentParameters.HandlerSettings["debugFile"] = _debugLogFile;
IISDeploymentParameterExtensions.cs (2)
12parameters.HandlerSettings["debugLevel"] = "file"; 13parameters.HandlerSettings["debugFile"] = filename;
IISExpressDeployer.cs (3)
85DeploymentParameters.EnvironmentVariables["LAUNCHER_PATH"] = executableName; 86DeploymentParameters.EnvironmentVariables["LAUNCHER_ARGS"] = executableArgs; 90DeploymentParameters.EnvironmentVariables["ASPNETCORE_CONTENTROOT"] = DeploymentParameters.ApplicationPath;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
89EndpointConfigurations[name] = configureOptions ?? throw new ArgumentNullException(nameof(configureOptions));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
HttpRequestHeadersTests.cs (18)
34headers["custom"] = new[] { "value" }; 45headers["host"] = new[] { "value" }; 46headers["content-length"] = new[] { "0" }; 59headers["host"] = new[] { "value" }; 60headers["custom"] = new[] { "value" }; 61headers["Content-Length"] = new[] { "0" }; 76headers["host"] = new[] { "value" }; 81headers["custom"] = new[] { "value" }; 86headers["Content-Length"] = new[] { "0" }; 197headers["host"] = v1; 198headers["Content-Length"] = v2; 199headers["custom"] = v3; 217headers["host"] = v1; 218headers["Content-Length"] = v2; 219headers["custom"] = v3; 248headers["host"] = kv1.Value; 259headers["custom"] = kv2.Value; 270headers["Content-Length"] = kv3.Value;
HttpResponseHeadersTests.cs (2)
287Assert.Throws<InvalidOperationException>(() => dictionary["my-header"] = "other-value"); 361dictionary["Content-Length"] = contentLength;
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionContextTests.cs (1)
687serverStream1.Features.Get<IPersistentStateFeature>().State["test"] = true;
Microsoft.AspNetCore.Shared.Tests (8)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (3)
85Store[key] = value; 99Store[key] = value; 191Store[key] = StringValues.Concat(values, value);
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
627unknownHeaders[headerName] = headerValue;
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
56Extra[key] = value; 234Extra[key] = value;
src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1202invocationMessage.Headers[key] = value;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
HubConnectionTests.cs (6)
1573options.Headers["X-test"] = "42"; 1574options.Headers["X-42"] = "test"; 1604options.Headers["X-test"] = "42"; 1605options.Headers["X-42"] = "test"; 1646options.Headers["User-Agent"] = ""; 1681options.Headers["User-Agent"] = "User Value";
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\HubMessageHelpers.cs (1)
21hubMessage.Headers[header.Key] = header.Value;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
60Connection.Items["ConnectedTask"] = new TaskCompletionSource();
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
RedisEndToEnd.cs (1)
325httpConnectionOptions.Headers["UserName"] = userName;
Microsoft.AspNetCore.SignalR.Tests (3)
HubConnectionHandlerTestUtils\Hubs.cs (3)
309Context.Items[nameof(UploadDoesWorkOnComplete)] = tcs.Task; 1240Context.Items[nameof(OnConnectedAsync)] = true; 1252Context.Items[nameof(OnDisconnectedAsync)] = true;
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
60Connection.Items["ConnectedTask"] = new TaskCompletionSource();
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
56processStartInfo.Environment[keyValuePair.Key] = keyValuePair.Value;
Microsoft.AspNetCore.Tests (6)
WebApplicationTests.cs (6)
1344builder.Host.Properties["lowercase"] = nameof(WebApplicationTests); 2018((IApplicationBuilder)app).Properties["didsomething"] = true; 2183builder.Host.Properties["hello"] = "world"; 2499app.Properties["__AuthenticationMiddlewareSet"] = true; 2519builder.Host.Properties["MyProp"] = 1; 2896Data["Random"] = Guid.NewGuid().ToString();
Microsoft.Build.Framework (10)
BinaryTranslator.cs (5)
634dictionary[key] = value; 655dictionary[key] = value; 679dictionary[key] = value; 736dictionary[key] = value; 766dictionary[key] = value;
BuildCheck\EnumerableExtensions.cs (4)
93dict[pair.Key] = pair.Value; 97dict[pair.Key] = mergeValues(value, pair.Value); 122dict[key] = mergeValue; 126dict[key] = mergeValues(value, mergeValue);
BuildException\BuildExceptionBase.cs (1)
140customKeyedSerializedData[reader.ReadString()] = reader.ReadOptionalString();
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
307builder[info.Id] = info;
InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
Microsoft.CodeAnalysis.Analyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.BannedApiAnalyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.CodeStyle (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourceAssemblySymbol.cs (1)
2845forwardedTypesFromSource[fullEmittedName] = originalDefinition;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\DiagnosticTest.cs (3)
586warnings[MessageProvider.Instance.GetIdForErrorCode(420)] = ReportDiagnostic.Error; 627warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Error; 1788warnings[MessageProvider.Instance.GetIdForErrorCode(168)] = ReportDiagnostic.Suppress;
Microsoft.CodeAnalysis.EditorFeatures (1)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
211telemetryEvent.Properties["vs.copilot.source"] = "CSharpOnTheFlyDocs";
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
6448runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.SwitchBetweenLambdaAndLocalFunction, cancellationToken); 6458runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingLambdaParameters, cancellationToken); 6464runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingLambdaReturnType, cancellationToken); 6471runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingTypeParameters, cancellationToken);
ExtractMethod\MethodExtractor.Analyzer.cs (1)
744sortedMap[typeParameter.Ordinal] = typeParameter;
Microsoft.CodeAnalysis.LanguageServer (1)
DotnetCliHelper.cs (1)
100startInfo.Environment["DOTNET_CLI_UI_LANGUAGE"] = "en-US";
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
186map[groupKey] = suggestedActions;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
90processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1";
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.PublicApiAnalyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (1)
175faultEvent.Properties[CustomFaultDescriptionPropertyName] = description;
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessUtilities.cs (1)
54startInfo.Environment[entry.Key] = entry.Value;
Microsoft.CodeAnalysis.UnitTests (4)
Collections\ImmutableDictionaryBuilderTestBase.cs (3)
64builder["five"] = 5; 66builder["five"] = 5; 70builder["five"] = 50;
Collections\ImmutableDictionaryTestBase.cs (1)
159Assert.Throws<NotSupportedException>(() => dictionary["a"] = 2);
Microsoft.CodeAnalysis.Workspaces (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
177processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
MSBuild\ProjectFile\ProjectFile.cs (1)
315_documents[GetAbsolutePathRelativeToProject(item.EvaluatedInclude)] = item;
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
Microsoft.DotNet.Build.Manifest (27)
ArtifactModel.cs (6)
25set { Attributes[nameof(Id)] = value; } 31set => Attributes[nameof(RepoOrigin)] = value; 47Attributes[nameof(NonShipping)] = value.ToString(); 71Attributes[nameof(Visibility)] = value.ToString(); 81set => Attributes[nameof(PipelineArtifactPath)] = value; 90set => Attributes[nameof(PipelineArtifactName)] = value;
BuildIdentity.cs (17)
42set { Attributes[nameof(Name)] = value; } 48set { Attributes[nameof(BuildId)] = value; } 54set { Attributes[nameof(ProductVersion)] = value; } 60set { Attributes[nameof(Branch)] = value; } 66set { Attributes[nameof(Commit)] = value; } 72set { Attributes[nameof(AzureDevOpsRepository)] = value; } 78set { Attributes[nameof(AzureDevOpsBranch)] = value; } 84set { Attributes[nameof(AzureDevOpsBuildNumber)] = value; } 90set { Attributes[nameof(AzureDevOpsAccount)] = value; } 96set { Attributes[nameof(AzureDevOpsProject)] = value; } 123Attributes[nameof(AzureDevOpsBuildDefinitionId)] = value.ToString(); 152Attributes[nameof(AzureDevOpsBuildId)] = value.ToString(); 160set { Attributes[nameof(InitialAssetsLocation)] = value; } 181Attributes[nameof(IsStable)] = value.ToString().ToLower(); 203Attributes[nameof(IsReleaseOnlyPackageVersion)] = value.ToString().ToLower(); 210set { Attributes[nameof(VersionStamp)] = value; } 229Attributes[nameof(PublishingVersion)] = ((int)value).ToString();
BuildModelFactory.cs (1)
209attributes[attribute.Key] = NormalizeAzureDevOpsUrl(attribute.Value);
PackageArtifactModel.cs (3)
25set { Attributes[nameof(Version)] = value; } 31set { Attributes[nameof(OriginBuildName)] = value; } 53Attributes[nameof(CouldBeStable)] = value.Value.ToString();
Microsoft.DotNet.Build.Manifest.Tests (27)
BuildModelFactoryTests.cs (27)
776buildIdentityA.Attributes[propertyName] = valueA; 778buildIdentityB.Attributes[propertyName] = valueB; 816buildIdentityB.Attributes[kvp.Key] = kvp.Value; 880blobArtifactA.Attributes["AttributeA"] = "ValueA"; 881blobArtifactA.Attributes["AttributeB"] = "ValueB"; 891blobArtifactB.Attributes["AttributeC"] = "ValueC"; 892blobArtifactB.Attributes["AttributeD"] = "ValueD"; 905packageArtifactA.Attributes["AttributeE"] = "ValueE"; 906packageArtifactA.Attributes["AttributeF"] = "ValueF"; 919packageArtifactB.Attributes["AttributeG"] = "ValueG"; 920packageArtifactB.Attributes["AttributeH"] = "ValueH"; 930pdbArtifactA.Attributes["AttributeI"] = "ValueI"; 931pdbArtifactA.Attributes["AttributeJ"] = "ValueJ"; 941pdbArtifactB.Attributes["AttributeK"] = "ValueK"; 942pdbArtifactB.Attributes["AttributeL"] = "ValueL"; 1056blobArtifactA.Attributes["AttributeA"] = "ValueA"; 1057blobArtifactA.Attributes["AttributeB"] = "ValueB"; 1067blobArtifactB.Attributes["AttributeC"] = "ValueC"; 1068blobArtifactB.Attributes["AttributeD"] = "ValueD"; 1081packageArtifactA.Attributes["AttributeE"] = "ValueE"; 1082packageArtifactA.Attributes["AttributeF"] = "ValueF"; 1095packageArtifactB.Attributes["AttributeG"] = "ValueG"; 1096packageArtifactB.Attributes["AttributeH"] = "ValueH"; 1106pdbArtifactA.Attributes["AttributeI"] = "ValueI"; 1107pdbArtifactA.Attributes["AttributeJ"] = "ValueJ"; 1117pdbArtifactB.Attributes["AttributeK"] = "ValueK"; 1118pdbArtifactB.Attributes["AttributeL"] = "ValueL";
Microsoft.DotNet.Helix.Sdk (6)
GetHelixWorkItems.cs (6)
58metadata["JobName"] = jobName; 59metadata["WorkItemName"] = name; 61metadata["ConsoleOutputUri"] = consoleUri; 83metadata["Failed"] = "false"; 93metadata["Failed"] = "true"; 109metadata["UploadedFiles"] = JsonConvert.SerializeObject(files);
Microsoft.Extensions.AI.Abstractions.Tests (1)
Functions\AIFunctionArgumentsTests.cs (1)
143args["key4"] = "value4";
Microsoft.Extensions.AI.AzureAIInference (4)
AzureAIInferenceChatClient.cs (2)
329result.AdditionalProperties["top_k"] = new BinaryData(JsonSerializer.SerializeToUtf8Bytes(topK, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(int)))); 337result.AdditionalProperties[prop.Key] = new BinaryData(data);
AzureAIInferenceEmbeddingGenerator.cs (1)
192result.AdditionalProperties[prop.Key] = new BinaryData(data);
AzureAIInferenceImageEmbeddingGenerator.cs (1)
146result.AdditionalProperties[prop.Key] = new BinaryData(data);
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
348azureAIOptions.AdditionalProperties["additional_property_from_raw_representation"] = new BinaryData("42"); 432azureAIOptions.AdditionalProperties["additional_property_from_raw_representation"] = new BinaryData("42");
Microsoft.Extensions.AI.Evaluation (2)
EvaluationMetricExtensions.cs (2)
34metric.Context[c.Name] = c; 118metric.Metadata[name] = value;
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
155arguments[kvp.Key] = jsonElement.ValueKind switch
Microsoft.Extensions.Configuration (1)
ConfigurationProvider.cs (1)
47=> Data[key] = value;
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationExtensions.cs (2)
28builder.Properties[FileProviderKey] = fileProvider; 73builder.Properties[FileLoadExceptionHandlerKey] = handler;
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Windows\Disk\WindowsDiskIoRatePerfCounter.cs (2)
48TotalCountDict[instanceName] = 0L; 73TotalCountDict[counter.InstanceName] += (long)value / TimeSpan.TicksPerSecond;
Windows\Disk\WindowsDiskIoTimePerfCounter.cs (2)
46TotalSeconds[instanceName] = 0f; 71TotalSeconds[counter.InstanceName] += busyTimeTicks / TimeSpan.TicksPerSecond;
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
89_features[key] = value;
Microsoft.Extensions.Http.Polly (2)
HttpRequestMessageExtensions.cs (1)
57request.Properties[PolicyExecutionContextKey] = context;
PolicyHttpMessageHandler.cs (1)
170request.Properties[PriorResponseKey] = result;
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\RequestMessageSnapshotTests.cs (1)
48request.Properties["some-new-prop"] = "ABC";
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
83socketsHttpHandler.Properties["__GrpcLoadBalancingDisabled"] = true;
Microsoft.Maui.Controls (2)
DataTemplate.cs (2)
56 Bindings[property] = binding ?? throw new ArgumentNullException(nameof(binding)); 63 Values[property] = value;
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
519 typeCache[xmlType] = returnType;
Microsoft.ML.AutoML (2)
TrainerExtensions\TrainerExtensionUtil.cs (2)
113ovaNode.Properties["BinaryTrainer"] = binaryNode; 126properties[property.Key] = property.Value;
Microsoft.Net.Http.Headers (1)
src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.VisualStudio.LanguageServices (1)
Watson\FaultReporter.cs (1)
175faultEvent.Properties[CustomFaultDescriptionPropertyName] = description;
MiddlewareAnalysisSample (1)
Startup.cs (1)
57app.Properties["analysis.NextMiddlewareName"] = "HomePage";
Mvc.RoutingWebSite (12)
Startup.cs (1)
112services.AddRouting(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamic.cs (1)
24services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicAndRazorPages.cs (1)
19services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicOrder.cs (1)
39services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForEndpointFilters.cs (4)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer)); 32ic.HttpContext.Items[nameof(IEndpointFilter)] = true; 33ic.HttpContext.Items[nameof(EndpointFilterFactoryContext.MethodInfo.Name)] = context.MethodInfo.Name; 48ic.HttpContext.Items[nameof(EndpointFilterInvocationContext.Arguments)] = firstArg;
StartupForFallback.cs (1)
22services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForGroups.cs (1)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForLinkGenerator.cs (1)
30options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer);
StartupRoutingDifferentBranches.cs (1)
87services.AddRouting(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
PresentationCore (3)
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
213set { _innerDictionary[key] = ValidateValue(value); } 252_innerDictionary[ConvertKey(key)] = ConvertValue(value);
System\Windows\Media\GlyphTypeface.cs (1)
390adjustedLanguageFaceNames[XmlLanguage.GetLanguage(pair.Key.IetfLanguageTag)] = pair.Value;
PresentationFramework (3)
System\Windows\Controls\DatePicker.cs (1)
879_isHandlerSuspended[property] = true;
System\Windows\Documents\DocumentSequence.cs (1)
298_asyncOps[userState] = asyncRequest;
System\Windows\Documents\FixedDocument.cs (1)
379_asyncOps[userState] = asyncRequest;
PresentationUI (3)
MS\Internal\Documents\RightsManagementProvider.cs (3)
516grantDictionary[user] = new List<ContentGrant>(); 532grantDictionary[owner] = new List<ContentGrant>(1); 554dictionary[user] = currentLicense;
RazorPagesWebSite (2)
ModelAsFilter.cs (1)
23context.HandlerArguments["message"] = "Hello from OnPageHandlerExecuting";
TempData\SetTempDataOnPageModelAndRedirect.cs (1)
13TempData["Message"] = message;
Roslyn.Diagnostics.Analyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
18options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer);
ServerComparison.FunctionalTests (1)
HelloWorldTest.cs (1)
56deploymentParameters.EnvironmentVariables[DebugEnvironmentVariable] = "console";
ServerComparison.TestSites (1)
OneTransformPerRequest.cs (1)
28context.Items["Transformed"] = true;
SocialWeather (2)
PersistentConnectionLifeTimeManager.cs (2)
22connection.Items["groups"] = new HashSet<string>(); 24connection.Items["format"] = format;
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
328dictionary[key] = list.ToArray();
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
71ActualMetadata[key] = value;
System.Composition.TypedParts (2)
System\Composition\TypedParts\Discovery\TypeInspector.cs (2)
137metadata[name] = newArray; 144metadata[name] = newArray;
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
56objects[ObjectId] = populated;
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
58objects[ObjectId] = populated;
System.ServiceModel.Federation.Tests (3)
WSTrustChannelSecurityTokenProviderTest.cs (3)
55tokenRequirement.Properties["http://schemas.microsoft.com/ws/2006/05/servicemodel/securitytokenrequirement/IssuedSecurityTokenParameters"] = tokenParams; 56tokenRequirement.Properties["http://schemas.microsoft.com/ws/2006/05/servicemodel/securitytokenrequirement/TargetAddress"] = targetAddress; 57tokenRequirement.Properties["http://schemas.microsoft.com/ws/2006/05/servicemodel/securitytokenrequirement/SecurityAlgorithmSuite"] = System.ServiceModel.Security.SecurityAlgorithmSuite.Default;
System.ServiceModel.NetFramingBase (1)
System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (1)
276serverCertRequirement.Properties[PreferSslCertificateAuthenticatorProperty] = true;
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
27collection[key] = value;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (2)
245dict[dataExtKey] = (JsonElement)propValue!; 258objDict[dataExtKey] = propValue!;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
899d[property] = value;
System.Text.Json.SourceGeneration (1)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
36dictionary[key] = value;
System.Xaml (2)
System\Xaml\MS\Impl\XmlNsInfo.cs (2)
444dict[key] = new ReadOnlyCollection<string>(dict[key]); 583_subsumeCount[ns] = currentCount;
Test.Utilities (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
Text.Analyzers (10)
src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
44builder[name] = value; 48builder[feature] = "true";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Options\EditorConfigValueSerializer.cs (2)
198entryWriter: (name, value) => builder[name] = value, 204builder[option.Definition.ConfigName] = option.Definition.Serializer.Serialize(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IDictionaryExtensions.cs (6)
109dictionary[key] = updated; 114dictionary[key] = ImmutableHashSet.Create(comparer, value); 128dictionary[key] = existingArray.Add(value); 140dictionary[key] = existingArray.IsEmpty && value.Equals(defaultArray[0]) ? defaultArray : existingArray.Add(value); 195dictionary[key] = collection; 223dictionary[key] = collection.Remove(value);
xunit.console (2)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextJsonReader.cs (1)
469_stringPool[s] = s;
common\DictionaryExtensions.cs (1)
28dictionary[key] = result;
1332 references to
ApplicationModelWebSite (5)
Controllers\ApplicationModelController.cs (2)
14return ControllerContext.ActionDescriptor.Properties["description"].ToString(); 20return ControllerContext.ActionDescriptor.Properties["description"].ToString();
Controllers\HomeController.cs (2)
13return ControllerContext.ActionDescriptor.Properties["description"].ToString(); 19return ControllerContext.ActionDescriptor.Properties["source"].ToString() + " - " + helloWorld;
Controllers\LicenseController.cs (1)
13return ControllerContext.ActionDescriptor.Properties["license"].ToString();
Aspire.Cli.Tests (5)
DotNet\DotNetCliRunnerTests.cs (5)
81Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 123Assert.Equal("false", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 155Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 240Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 243Assert.Equal("existing_value", env["EXISTING_VAR"]);
Aspire.Hosting.Tests (2)
Dcp\DcpExecutorTests.cs (2)
46Assert.Equal("CustomName", container.Metadata.Annotations["otel-service-name"]); 556Assert.Equal(expectedName, exe.Metadata.Annotations[CustomResource.OtelServiceNameAnnotation]);
Aspire.RabbitMQ.Client (4)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (4)
1150 => new("exception.type", exData["Type"]), 1161 => new("exception.message", exData["Message"]), 1172 => new("exception.stacktrace", exData["StackTrace"]), 1183 => new("exception.innerexception", exData["InnerException"]),
BasicWebSite (13)
Controllers\HomeController.cs (1)
107return ControllerContext.ActionDescriptor.Properties["description"].ToString();
Controllers\TempDataController.cs (10)
32var value = TempData["key"]; 38var value = TempData["key"]; 72var value1 = TempData["key1"].ToString(); 73var value2 = Convert.ToInt32(TempData["key2"], CultureInfo.InvariantCulture); 74var value3 = (IList<string>)TempData["key3"]; 75var value4 = (DateTime)TempData["key4"]; 76var value5 = (Guid)TempData["key5"]; 89return TempData["Name"]?.ToString(); 102return TempData["LargeValue"]?.ToString(); 116return TempData[nameof(UnhandledExceptionAndSettingTempData)]?.ToString();
Controllers\TestingController.cs (1)
148TempDataValue = (int)TempData["Value"],
Filters\TraceOutputResultFilter.cs (1)
13var trace = context.HttpContext.Items[nameof(TraceResourceFilter)];
Diagnostics.FunctionalTests (1)
DeveloperExceptionPageSampleTest.cs (1)
54var exceptionNode = (JsonElement)body.Extensions["exception"];
dotnet-svcutil-lib (5)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SecurityBindingElement.cs (2)
1434sb.AppendLine(" " + this.OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 1446sb.AppendLine(" " + this.OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
FrameworkFork\System.ServiceModel\System\ServiceModel\Configuration\SecurityElementBase.cs (1)
164SupportingTokenParameters stp2 = b2.OperationSupportingTokenParameters[operation1.Key];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
63AuthenticationSchemes authScheme = (AuthenticationSchemes)requirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
232object propertyValue = this.Properties[propertyName];
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
44return _secrets[key];
GenerateDocumentationAndConfigFiles (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
GenericHostWebSite (1)
Controllers\TestingController.cs (1)
134TempDataValue = (int)TempData["Value"],
Identity.DefaultUI.WebSite (1)
Pages\Contoso\Login.cshtml.cs (1)
59state["LoginProvider"],
IIS.FunctionalTests (11)
Http2TrailersResetTests.cs (5)
206Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 266Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 327Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 441Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 471Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
83Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 120Assert.Equal("411", decodedHeaders[InternalHeaderNames.Status]); 173Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 242Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 287Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 343Assert.Equal("500", decodedHeaders[InternalHeaderNames.Status]);
IISExpress.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
83Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 120Assert.Equal("411", decodedHeaders[InternalHeaderNames.Status]); 173Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 242Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 287Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 343Assert.Equal("500", decodedHeaders[InternalHeaderNames.Status]);
InMemory.FunctionalTests (2)
Http3\Http3ConnectionTests.cs (2)
501var http3Stream1 = (Http3Stream)streamContext1.Features.Get<IPersistentStateFeature>().State[Http3Connection.StreamPersistentStateKey]; 508var http3Stream2 = (Http3Stream)streamContext2.Features.Get<IPersistentStateFeature>().State[Http3Connection.StreamPersistentStateKey];
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (2)
210var webHostContext = (WebHostBuilderContext)bootstrapHostBuilder.Properties[typeof(WebHostBuilderContext)]; 421_builtApplication.Properties[UseRoutingKey] = app.Properties[UseRoutingKey];
Microsoft.AspNetCore.App.Analyzers.Test (6)
WebApplicationBuilder\UseTopLevelRouteRegistrationInsteadOfUseEndpointsTest.cs (6)
164AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM1"], diagnostic1.Location); 168AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM2"], diagnostic2.Location); 172AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM3"], diagnostic3.Location); 176AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM4"], diagnostic4.Location); 264AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM1"], diagnostic1.Location); 268AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MM2"], diagnostic2.Location);
Microsoft.AspNetCore.Authentication.Core.Test (17)
AuthenticationPropertiesTests.cs (17)
84Assert.Equal("foo bar", props.Items["foo"]); 89Assert.Equal("foo baz", props.Items["foo"]); 94Assert.Equal("xy", props.Items["bar"]); 99Assert.Equal(string.Empty, props.Items["bar"]); 119Assert.Equal("foo bar", props.Parameters["foo"]); 124Assert.Null(props.Parameters["foo"]); 137Assert.Equal(123, props.Parameters["foo"]); 142Assert.Null(props.Parameters["foo"]); 156Assert.Same(list, props.Parameters["foo"]); 161Assert.Null(props.Parameters["foo"]); 245Assert.Equal("Mon, 19 Mar 2018 12:34:56 GMT", props.Items["foo"]); 268Assert.Equal("BAR", props.Items["foo"]); 277Assert.Equal(true.ToString(), props.Items["foo"]); 280Assert.Equal(false.ToString(), props.Items["foo"]); 302Assert.Equal("BAR", props.Items["foo"]); 340Assert.Equal(props.Items["foo"], deserialized.Items["foo"]);
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
94persistence = (AuthPersistence)connectionItems[AuthPersistenceKey]!;
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1265RedirectUri = properties.Items[OpenIdConnectDefaults.RedirectUriForCodePropertiesKey]
Microsoft.AspNetCore.Authentication.Test (29)
OAuthChallengePropertiesTest.cs (9)
20Assert.Equal(new string[] { "foo", "bar" }, properties.Parameters["scope"]); 40Assert.Equal(new string[] { "foo", "bar" }, properties.Parameters["scope"]); 72Assert.Equal("login", properties.Parameters["prompt"]); 97Assert.Equal("offline", properties.Parameters["access_type"]); 99Assert.Equal("force", properties.Parameters["approval_prompt"]); 101Assert.Equal("test@example.com", properties.Parameters["login_hint"]); 103Assert.Equal("login", properties.Parameters["prompt"]); 140Assert.Equal(true, properties.Parameters["include_granted_scopes"]); 144Assert.Equal(false, properties.Parameters["include_granted_scopes"]);
OAuthTests.cs (3)
343Assert.Equal("testvalue", context.Properties.Items["testkey"]); 379Assert.Equal("testvalue", context.Properties.Items["testkey"]); 415Assert.Equal("testvalue", context.Properties.Items["testkey"]);
OpenIdConnect\OpenIdConnectChallengeTests.cs (5)
201var actualState = values[OpenIdConnectParameterNames.State]; 204Assert.Equal(userState ?? string.Empty, actualProperties.Items[OpenIdConnectDefaults.UserstatePropertiesKey]); 236var actualState = values[OpenIdConnectParameterNames.State]; 241Assert.Equal(userState, actualProperties.Items[OpenIdConnectDefaults.UserstatePropertiesKey]); 923Assert.Equal("login", mockBackchannel.PushedParameters["prompt"]);
OpenIdConnect\OpenIdConnectEventTests.cs (2)
815Assert.Equal("testvalue", context.Properties.Items["testkey"]); 886Assert.Equal("testvalue", context.Properties.Items["testkey"]);
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (2)
815Assert.Equal("testvalue", context.Properties.Items["testkey"]); 886Assert.Equal("testvalue", context.Properties.Items["testkey"]);
TicketSerializerTests.cs (2)
117var property1 = readClaim.Properties["property-1"]; 120var property2 = readClaim.Properties["property-2"];
TwitterTests.cs (2)
250Assert.Equal("testvalue", context.Properties.Items["testkey"]); 356Assert.Equal("testvalue", context.Properties.Items["testkey"]);
WsFederation\WsFederationTest.cs (2)
336Assert.True((bool)context.HttpContext.Items["MessageReceived"], "MessageReceived notification not invoked"); 337Assert.True((bool)context.HttpContext.Items["SecurityTokenReceived"], "SecurityTokenReceived notification not invoked");
WsFederation\WsFederationTest_Handler.cs (2)
325Assert.True((bool)context.HttpContext.Items["MessageReceived"], "MessageReceived notification not invoked"); 326Assert.True((bool)context.HttpContext.Items["SecurityTokenReceived"], "SecurityTokenReceived notification not invoked");
Microsoft.AspNetCore.Components.Analyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMBaseClass"], diagnostic.Location); 40AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location); 45AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location); 50AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location); 55AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMParameter"], diagnostic.Location); 60AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMReturnType"], diagnostic.Location); 79AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location); 84AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject"], diagnostic.Location); 89AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location); 94AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject2"], diagnostic.Location); 99AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Microsoft.AspNetCore.Components.Authorization.Tests (13)
AuthorizeViewTest.cs (7)
213var diff = batch.DiffsByComponentId[authorizeViewComponentId].Single(); 268var diff1 = batch1.DiffsByComponentId[authorizeViewComponentId].Single(); 280var diff2 = batch2.DiffsByComponentId[authorizeViewComponentId].Single(); 311var diff1 = Assert.Single(batch1.DiffsByComponentId[authorizeViewComponentId]); 329var diff2 = Assert.Single(batch2.DiffsByComponentId[authorizeViewComponentId]); 369var diff1 = batch1.DiffsByComponentId[authorizeViewComponentId].Single(); 387var diff2 = batch2.DiffsByComponentId[authorizeViewComponentId].Single();
CascadingAuthenticationStateTest.cs (4)
54var receiveAuthStateDiff = batch.DiffsByComponentId[receiveAuthStateId].Single(); 89var receiveAuthStateDiff1 = batch1.DiffsByComponentId[receiveAuthStateId].Single(); 107var receiveAuthStateDiff2 = batch2.DiffsByComponentId[receiveAuthStateId].Single(); 143var receiveAuthStateDiff = batch.DiffsByComponentId[receiveAuthStateId].Single();
src\Components\Shared\test\CapturedBatch.cs (2)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]); 39DiffsByComponentId[componentId].Add(diffClone);
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
115var pathFormat = _httpContext.Items[nameof(StatusCodePagesOptions)] as string;
Microsoft.AspNetCore.Components.Forms.Tests (2)
src\Components\Shared\test\CapturedBatch.cs (2)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]); 39DiffsByComponentId[componentId].Add(diffClone);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMBaseClass"], diagnostic.Location); 40AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location); 45AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location); 50AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location); 55AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMParameter"], diagnostic.Location); 60AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMReturnType"], diagnostic.Location); 79AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location); 84AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject"], diagnostic.Location); 89AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location); 94AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject2"], diagnostic.Location); 99AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Microsoft.AspNetCore.Components.Server.Tests (5)
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (5)
217var testData = BaseTestData[testDataName]; 265var testData = BaseTestData[testDataName]; 354var testData = BaseInvalidPayloads[invalidPayloadName]; 392var testData = ArgumentBindingErrors[argumentBindingErrorName]; 443var testData = MessageSizeData[testDataName];
Microsoft.AspNetCore.Components.Tests (44)
CascadingParameterTest.cs (16)
36var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 85var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 131var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 279var nestedComponentDiff = firstBatch.DiffsByComponentId[nestedComponentId].Single(); 419var nestedComponentDiff1 = batch.DiffsByComponentId[nestedComponentId1].Single(); 420var nestedComponentDiff2 = batch.DiffsByComponentId[nestedComponentId2].Single(); 467var diff = batch.DiffsByComponentId[componentId].Single(); 503var diff = batch.DiffsByComponentId[componentId].Single(); 541var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 585var diff = firstBatch.DiffsByComponentId[componentId].Single(); 602var diff2 = secondBatch.DiffsByComponentId[componentId].Single(); 618var diff3 = thirdBatch.DiffsByComponentId[componentId].Single(); 655var diff = firstBatch.DiffsByComponentId[componentId].Single(); 670var diff2 = secondBatch.DiffsByComponentId[componentId].Single(); 680var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 766var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single();
RendererTest.cs (26)
46var diff = batch.DiffsByComponentId[componentId].Single(); 77var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 107var firstDiff = batch.DiffsByComponentId[componentId].Single(); 120var secondDiff = secondBatch.DiffsByComponentId[componentId].Single(); 152var firstDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 165var secondDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 195var diff = create.DiffsByComponentId[componentId].Single(); 210var updateDiff = update.DiffsByComponentId[componentId].Single(); 289var diff = batch.DiffsByComponentId[componentId].Single(); 305var diff2 = batch2.DiffsByComponentId[componentId].Single(); 2011var renderer1Diff = renderer1Batch.DiffsByComponentId[renderer1ComponentId].Single(); 2021var renderer2Diff = renderer2Batch.DiffsByComponentId[renderer2ComponentId].Single(); 2058var diff = batch.DiffsByComponentId[rootComponentId].Single(); 2132var diff = renderer.Batches[1].DiffsByComponentId[childComponentId].Single(); 2170var diff = renderer.Batches[1].DiffsByComponentId[childComponentId].Single(); 2238var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2640var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2647var childComponentDiff = batch.DiffsByComponentId[childComponentFrame.ComponentId].Single(); 2767var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2774var childComponentDiff = batch.DiffsByComponentId[childComponentFrame.ComponentId].Single(); 2945var edit1 = batch1.DiffsByComponentId[componentId].Single().Edits.Single(); 2954var edit2 = batch2.DiffsByComponentId[componentId].Single().Edits.Single(); 3070Assert.Collection(newBatch.DiffsByComponentId[componentId].Single().Edits, 3420var parentComponentEdits1 = batch1.DiffsByComponentId[parentComponentId].Single().Edits; 5762var renderFactory = WhatToRender[TestId]; 5783var entries = EventActions[TestId];
src\Components\Shared\test\CapturedBatch.cs (2)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]); 39DiffsByComponentId[componentId].Add(diffClone);
Microsoft.AspNetCore.Components.Web.Tests (2)
src\Components\Shared\test\CapturedBatch.cs (2)
23=> GetComponentFrames<T>().SelectMany(f => DiffsByComponentId[f.ComponentId]); 39DiffsByComponentId[componentId].Add(diffClone);
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
25if (applicationBuilder.Properties[ResourceCollectionKey] is ResourceAssetCollection assetMap)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
51var counter = (string)payload["Name"];
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (6)
HealthCheckMiddlewareTests.cs (6)
904Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Healthy]); 905Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Degraded]); 906Assert.Equal(StatusCodes.Status503ServiceUnavailable, options.ResultStatusCodes[HealthStatus.Unhealthy]); 914Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Healthy]); 915Assert.Equal(StatusCodes.Status200OK, options.ResultStatusCodes[HealthStatus.Degraded]); 916Assert.Equal(StatusCodes.Status503ServiceUnavailable, options.ResultStatusCodes[HealthStatus.Unhealthy]);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Logging\HttpLoggingServiceExtensionsTests.cs (6)
81Assert.Equal("Taxonomy1", options.RouteParameterDataClasses["one"].TaxonomyName); 82Assert.Equal("Value1", options.RouteParameterDataClasses["one"].Value); 85Assert.Equal("Taxonomy2", options.RequestHeadersDataClasses["two"].TaxonomyName); 86Assert.Equal("Value2", options.RequestHeadersDataClasses["two"].Value); 89Assert.Equal("Taxonomy3", options.ResponseHeadersDataClasses["three"].TaxonomyName); 90Assert.Equal("Value3", options.ResponseHeadersDataClasses["three"].Value);
Microsoft.AspNetCore.Diagnostics.Tests (10)
DeveloperExceptionPageMiddlewareTest.cs (9)
70var originalExceptionMessage = ((JsonElement)body.Extensions["OriginalExceptionMessage"]).GetString(); 123var originalExceptionMessage = ((JsonElement)body.Extensions["OriginalExceptionMessage"]).GetString(); 124var endpointDisplayName = ((JsonElement)body.Extensions["EndpointDisplayName"]).GetString(); 125var routeValue = ((JsonElement)body.Extensions["RouteValue"]).GetString(); 126var path = ((JsonElement)body.Extensions["Path"]).GetString(); 182var originalExceptionMessage = ((JsonElement)body.Extensions["OriginalExceptionMessage"]).GetString(); 183var endpointDisplayName = ((JsonElement)body.Extensions["EndpointDisplayName"]).GetString(); 184var routeValue = ((JsonElement)body.Extensions["RouteValue"]).GetString(); 185var path = ((JsonElement)body.Extensions["Path"]).GetString();
ExceptionHandlerMiddlewareTest.cs (1)
85var originalExceptionMessage = ((JsonElement)body.Extensions["OriginalExceptionMessage"]).GetString();
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\XmlComments\GrpcXmlCommentsDocumentFilter.cs (1)
32.GroupBy(actionDesc => actionDesc.RouteValues["controller"]!)
Microsoft.AspNetCore.Grpc.Swagger.Tests (36)
Binding\BodyTests.cs (4)
30var bodySchema = operation.RequestBody.Content["application/json"].Schema; 49var bodySchema = operation.RequestBody.Content["application/json"].Schema; 65var bodySchema = operation.RequestBody.Content["application/json"].Schema; 79var bodySchema = operation.RequestBody.Content["application/json"].Schema;
Binding\ParametersTests.cs (2)
70Assert.Single(swagger.Components.Schemas["RequestBody"].Properties); 87Assert.Equal(4, swagger.Components.Schemas["RequestTwo"].Properties.Count);
Binding\ResponseBodyTests.cs (4)
31var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 45var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 61var bodySchema = operation.Responses["200"].Content["application/json"].Schema; 86var bodySchema = operation.Responses["200"].Content["application/json"].Schema;
SchemaGeneratorIntegrationTests.cs (15)
43var enumSchema = repository.Schemas[schema.Properties["enumValue"].Reference.Id]; 86Assert.Equal("string", schema.Properties["message"].Type); 87var valuesSchema = schema.Properties["values"]; 103Assert.Equal("RecursiveMessage", schema.Properties["child"].Reference.Id); 116Assert.Equal("string", schema.Properties["bytesValue"].Type); 117Assert.Equal("string", schema.Properties["bytesNullableValue"].Type); 163Assert.Equal("string", schema.Properties["@type"].Type); 176Assert.Equal("string", schema.Properties["firstOne"].Type); 177Assert.Equal("string", schema.Properties["firstTwo"].Type); 178Assert.Equal("string", schema.Properties["secondOne"].Type); 179Assert.Equal("string", schema.Properties["secondTwo"].Type); 193Assert.Equal("object", schema.Properties["mapValue"].Type); 194Assert.Equal("number", schema.Properties["mapValue"].AdditionalProperties.Type); 195Assert.Equal("double", schema.Properties["mapValue"].AdditionalProperties.Format); 208Assert.Equal("string", schema.Properties["fieldMaskValue"].Type);
XmlComments\XmlDocumentationIntegrationTests.cs (11)
51Assert.Equal("Name field!", path.Operations[OperationType.Get].Parameters[0].Description); 62Assert.Equal("BasicGet XML summary!", path.Operations[OperationType.Get].Summary); 63Assert.Equal("BasicGet XML remarks!", path.Operations[OperationType.Get].Description); 74Assert.Equal("BasicGet!", path.Operations[OperationType.Get].Summary); 75Assert.Null(path.Operations[OperationType.Get].Description); 86Assert.Equal("Request XML param!", path.Operations[OperationType.Post].RequestBody.Description); 97Assert.Null(path.Operations[OperationType.Post].RequestBody.Description); 108Assert.Equal("Detail field!", path.Operations[OperationType.Post].RequestBody.Description); 119Assert.Collection(path.Operations[OperationType.Get].Parameters, 141var helloReplyMessage = swagger.Components.Schemas["StringReply"]; 143Assert.Equal("Message field!", helloReplyMessage.Properties["message"].Description);
Microsoft.AspNetCore.HeaderPropagation.Tests (6)
HeaderPropagationMiddlewareTest.cs (6)
47Assert.Equal(new[] { "test" }, CapturedHeaders["in"].ToArray()); 90Assert.Equal(new[] { "test" }, CapturedHeaders["in"].ToArray()); 92Assert.Equal(new[] { "test2" }, CapturedHeaders["another"].ToArray()); 135Assert.Equal(expectedValues, CapturedHeaders["in"].ToArray()); 153Assert.Equal("test", CapturedHeaders["in"]); 196Assert.Equal("Test", CapturedHeaders["in"]);
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostBuilder.cs (4)
55var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 218var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 307var instance = context.Properties[_startupKey]; 308var builder = (ConfigureContainerBuilder)context.Properties[typeof(ConfigureContainerBuilder)];
GenericHost\SlimWebHostBuilder.cs (1)
31var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)];
Microsoft.AspNetCore.Hosting.Tests (1)
src\Shared\EventSource.Testing\TestCounterListener.cs (1)
51var counter = (string)payload["Name"];
Microsoft.AspNetCore.Http (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Http.Abstractions.Tests (13)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
40Assert.Equal((string)problemDetails.Extensions["traceId"]!, document.RootElement.GetProperty("traceId").GetString());
MapPathMiddlewareTests.cs (6)
65Assert.Equal(expectedPathBase, (string)context.Items["test.PathBase"]!); 66Assert.Equal(expectedPath, context.Items["test.Path"]); 93Assert.Equal(string.Concat(basePath, requestPath.AsSpan(0, matchPath.Length)), (string)context.Items["test.PathBase"]!); 94Assert.Equal(requestPath.Substring(matchPath.Length), context.Items["test.Path"]); 121Assert.Equal(basePath, (string)context.Items["test.PathBase"]!); 122Assert.Equal(requestPath, context.Items["test.Path"]);
UseMiddlewareTest.cs (2)
273Assert.True(Assert.IsType<bool>(context.Items["before"])); 274Assert.True(Assert.IsType<bool>(context.Items["after"]));
UsePathBaseExtensionsTests.cs (2)
222Assert.Equal(expectedPath, ((PathString?)requestContext.Items["test.Path"])!.Value.Value); 223Assert.Equal(expectedPathBase, ((PathString?)requestContext.Items["test.PathBase"])!.Value.Value);
UseWhenExtensionsTests.cs (2)
133var item = context.Items[key]; 156var item = context.Items[key];
Microsoft.AspNetCore.Http.Extensions.Tests (183)
ProblemDetailsDefaultWriterTest.cs (11)
56Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 161Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 201Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 241Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 281Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 324Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 367Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 410Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 453Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 564Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString()); 601Assert.Equal(expectedTraceId, problemDetails.Extensions["traceId"].ToString());
RequestDelegateFactoryTests.cs (29)
122Assert.True(httpContext.Items["invoked"] as bool?); 145Assert.True(httpContext.Items["invoked"] as bool?); 191Assert.Equal(1, httpContext.Items["invoked"]); 197Assert.Equal(2, httpContext.Items["invoked"]); 263Assert.Equal(42, httpContext.Items["input"]); 280Assert.Equal(1, context.Items["calls"]); 284Assert.Equal(1, context.Items["calls"]); 594Assert.Null(httpContext.Items["tryParsable"]); 621Assert.Null(httpContext.Items["tryParsable"]); 654Assert.Equal(new StringValues(new[] { "1", "2", "3" }), httpContext.Items["query"]); 655Assert.Equal(new StringValues(new[] { "4", "5", "6" }), httpContext.Items["headers"]); 656Assert.Equal(new StringValues(new[] { "7", "8", "9" }), httpContext.Items["form"]!); 682Assert.Null(httpContext.Items["query"]); 683Assert.Null(httpContext.Items["headers"]); 684Assert.Null(httpContext.Items["form"]); 704Assert.Equal(new MyAwaitedBindAsyncRecord(new Uri("https://example.org")), httpContext.Items["myAwaitedBindAsyncRecord"]); 705Assert.Equal(new MyAwaitedBindAsyncStruct(new Uri("https://example.org")), httpContext.Items["myAwaitedBindAsyncStruct"]); 877var deserializedRequestBody = httpContext.Items["body"]; 1189Assert.Same(myOriginalService, httpContext.Items["service"]); 1699Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]); 1703Assert.Null(httpContext.Items["uri"]); 2225var invokedInContext = Assert.IsType<bool>(httpContext.Items["invoked"]); 3154Assert.Null(httpContext.Items["RequiredRouteParam"]); 3155Assert.Null(httpContext.Items["RequiredQueryParam"]); 3156Assert.Null(httpContext.Items["RequiredHeaderParam"]); 3202Assert.Equal(headerValue, httpContext.Items[nameof(ParameterListFromHeaderCommaSeparatedValues.BoundToString)]); 3203Assert.Equal(new StringValues(headerValue), httpContext.Items[nameof(ParameterListFromHeaderCommaSeparatedValues.BoundToStringValues)]); 3204Assert.Equal(expectedStringArray, httpContext.Items[nameof(ParameterListFromHeaderCommaSeparatedValues.BoundToStringArray)]); 3205Assert.Equal(expectedIntArray, httpContext.Items[nameof(ParameterListFromHeaderCommaSeparatedValues.BoundToIntArray)]);
RequestDelegateGenerator\CompileTimeCreationTests.cs (1)
789Assert.Equal<string[]>(["hello", "bye"], (string[])httpContext.Items["message"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (4)
180Assert.Equal(expectedParameterValue, httpContext.Items["tryParsable"]); 774Assert.Equal(new[] { 1, 2, 3 }, (int[])httpContext.Items["query"]!); 775Assert.Equal(new[] { 4, 5, 6 }, (int[])httpContext.Items["headers"]!); 776Assert.Equal(new[] { 7, 8, 9 }, (int[])httpContext.Items["form"]!);
RequestDelegateGenerator\RequestDelegateCreationTests.AsParameters.cs (12)
32Assert.Equal(originalRouteParam, httpContext.Items["input"]); 72Assert.Equal(originalQueryParam, httpContext.Items["input"]); 73Assert.Equal(originalCustomQueryParam, httpContext.Items["customInput"]); 74Assert.Equal(originalAnotherCustomQueryParam, httpContext.Items["anotherCustomInput"]); 100Assert.Equal(originalHeaderParam, httpContext.Items["input"]); 204Assert.Equal(originalRouteParam, httpContext.Items["input"]); 225Assert.Equal(expectedValue, httpContext.Items["input"]); 287var input = Assert.IsType<ParameterListWithReadOnlyProperties>(httpContext.Items["input"]); 318Assert.Equal(foo, httpContext.Items["foo"]); 319Assert.Equal(bar, httpContext.Items["bar"]); 344var value = Assert.IsType<InheritBindAsync>(httpContext.Items["value"]); 345var anotherValue = Assert.IsType<MyBindAsyncRecord>(httpContext.Items["anotherValue"]);
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (10)
60Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]); 81Assert.Equal(new Uri("https://example.org"), httpContext.Items["uri"]); 110Assert.Null(httpContext.Items["uri"]); 139Assert.Null(httpContext.Items["uri"]); 248Assert.True(httpContext.Items["invoked"] as bool?); 249var arg = httpContext.Items["myBindAsyncParam"] as MyBindAsyncRecord; 252var todo = httpContext.Items["todo"] as Todo; 304Assert.True(httpContext.Items["invoked"] as bool?); 305var todo0 = httpContext.Items["customTodo"] as Todo; 308var todo1 = httpContext.Items["todo"] as Todo;
RequestDelegateGenerator\RequestDelegateCreationTests.cs (9)
439Assert.Equal(42, httpContext.Items["id"]); 465Assert.Equal(42, httpContext.Items["id"]); 487Assert.Null(httpContext.Items["id"]); 512Assert.Equal(42, httpContext.Items["id"]); 537Assert.Equal(42, httpContext.Items["id"]); 562Assert.Equal(42, httpContext.Items["id"]); 598Assert.Equal(new[] { 1, 2, 3 }, (int[])httpContext.Items["query"]!); 599Assert.Equal(new[] { 4, 5, 6 }, (int[])httpContext.Items["headers"]!); 600Assert.Equal(new[] { 7, 8, 9 }, (int[])httpContext.Items["form"]!);
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (5)
37Assert.Null(httpContext.Items["invoked"]); 38Assert.True(httpContext.Items["filterInvoked"] as bool?); 71Assert.True(httpContext.Items["invoked"] as bool?); 72Assert.True(httpContext.Items["filterInvoked"] as bool?); 152Assert.Equal(2, httpContext.Items["loggerInvoked"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (56)
41Assert.Equal(httpContext.Request.Form.Files, httpContext.Items["formFiles"]); 42var formFilesArgument = Assert.IsAssignableFrom<IFormFileCollection>(httpContext.Items["formFiles"]); 76Assert.Equal(httpContext.Request.Form.Files, httpContext.Items["formFiles"]); 77var formFiles = Assert.IsAssignableFrom<IFormFileCollection>(httpContext.Items["formFiles"]); 111Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 112var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 149Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 150var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 187Assert.Equal(httpContext.Request.Form.Files["file1"], httpContext.Items["file1"]); 188var file1Argument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file1"]); 192Assert.Equal(httpContext.Request.Form.Files["file2"], httpContext.Items["file2"]); 193var file2Argument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file2"]); 228Assert.Equal(httpContext.Request.Form.Files["file1"], httpContext.Items["file1"]); 229Assert.NotNull(httpContext.Items["file1"]); 231Assert.Equal(httpContext.Request.Form.Files["file2"], httpContext.Items["file2"]); 232Assert.Null(httpContext.Items["file2"]); 265Assert.Equal(httpContext.Request.Form.Files["my_file"], httpContext.Items["formFiles"]); 266var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 302Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["formFiles"]); 303var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["formFiles"]); 307var traceIdArgument = Assert.IsType<TraceIdentifier>(httpContext.Items["traceId"]); 375Assert.False((bool)httpContext.Items["invoked"]); 408Assert.Equal(httpContext.Request.Form.Files, httpContext.Items["formFiles"]); 409var formFilesArgument = Assert.IsType<FormFileCollection>(httpContext.Items["formFiles"]); 412Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]); 413var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 459Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]); 460var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 464var traceIdArgument = Assert.IsAssignableFrom<TraceIdentifier>(httpContext.Items["traceId"]); 504Assert.Equal(httpContext.Request.Form.Files["file"], httpContext.Items["file"]); 505var fileArgument = Assert.IsAssignableFrom<IFormFile>(httpContext.Items["file"]); 509var traceIdArgument = Assert.IsAssignableFrom<TraceIdentifier>(httpContext.Items["traceId"]); 556Assert.Equal(httpContext.Request.Form, httpContext.Items["formFiles"]); 557var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["formFiles"]); 603Assert.Equal(httpContext.Request.Form, httpContext.Items["formFiles"]); 604var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["formFiles"]); 650Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 679Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 680Assert.NotNull(httpContext.Items["message"]); 682Assert.Equal(httpContext.Request.Form["name"][0], httpContext.Items["name"]); 683Assert.NotNull(httpContext.Items["name"]); 712Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 713Assert.NotNull(httpContext.Items["message"]); 714Assert.Null(httpContext.Items["additionalMessage"]); 742Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 743Assert.NotNull(httpContext.Items["message"]); 772Assert.Equal(httpContext.Request.Form["message"][0], httpContext.Items["message"]); 773Assert.NotNull(httpContext.Items["message"]); 775var traceIdArgument = Assert.IsType<TraceIdentifier>(httpContext.Items["traceId"]); 835var formFilesArgument = Assert.IsAssignableFrom<FormFileCollection>(httpContext.Items["FormFilesArgument"]); 836var formArgument = Assert.IsAssignableFrom<IFormCollection>(httpContext.Items["FormArgument"]); 879Assert.False((bool)httpContext.Items["invoked"]); 904var content = Assert.IsType<MyTryParseRecord>(httpContext.Items["tryParsable"]); 937Assert.Null(httpContext.Items["invoked"]); 969Assert.Null(httpContext.Items["invoked"]); 1006Assert.Null(httpContext.Items["invoked"]);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (6)
254var rawRequestBody = httpContext.Items["body"]; 295var rawRequestBody = httpContext.Items["body"]; 336var rawRequestBody = httpContext.Items["body"]; 377var rawRequestBody = httpContext.Items["body"]; 404Assert.Equal(default(BodyStruct), httpContext.Items[structToBeZeroedKey]); 436var resultStruct = Assert.IsType<BodyStruct>(httpContext.Items["targetStruct"]);
RequestDelegateGenerator\RequestDelegateCreationTests.KeyServices.cs (11)
28Assert.Same(myOriginalService, httpContext.Items["arg"]); 76Assert.Same(myOriginalService1, httpContext1.Items["arg"]); 77Assert.Same(myOriginalService2, httpContext2.Items["arg"]); 94Assert.Same(myOriginalService, httpContext.Items["arg"]); 114Assert.Same(myOriginalService, httpContext.Items["arg"]); 146Assert.Null(httpContext.Items["arg"]); 171Assert.Same(myOriginalService1, httpContext.Items["arg1"]); 172Assert.IsType<TestService>(httpContext.Items["arg2"]); 200Assert.Same(myOriginalService1, httpContext.Items["arg1"]); 201Assert.IsType<TestService>(httpContext.Items["arg2"]); 202Assert.Same(myOriginalService2, httpContext.Items["arg3"]);
RequestDelegateGenerator\RequestDelegateCreationTests.Logging.cs (12)
40Assert.Null(httpContext.Items["invoked"]); 103Assert.Null(httpContext.Items["invoked"]); 154Assert.Null(httpContext.Items["invoked"]); 224Assert.Null(httpContext.Items["invoked"]); 271Assert.Null(httpContext.Items["invoked"]); 304Assert.Null(httpContext.Items["invoked"]); 350Assert.Null(httpContext.Items["invoked"]); 488Assert.Null(httpContext.Items["invoked"]); 524Assert.Null(httpContext.Items["invoked"]); 565Assert.Null(httpContext.Items["invoked"]); 604Assert.Null(httpContext.Items["invoked"]); 644Assert.Null(httpContext.Items["invoked"]);
RequestDelegateGenerator\RequestDelegateCreationTests.RouteParameter.cs (1)
232Assert.Equal(originalRouteParam, httpContext.Items["input"]);
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (13)
40Assert.Same(httpContext, httpContext.Items["arg"]); 63Assert.Equal(httpContext.RequestAborted, httpContext.Items["arg"]); 84Assert.Same(user, httpContext.Items["arg"]); 103Assert.Equal(httpContext.Request, httpContext.Items["arg"]); 122Assert.Equal(httpContext.Response, httpContext.Items["arg"]); 147Assert.Same(httpContext, httpContext.Items["input"]); 148Assert.Same(httpContext.User, httpContext.Items["user"]); 149Assert.Same(httpContext.Request, httpContext.Items["request"]); 150Assert.Same(httpContext.Response, httpContext.Items["response"]); 251Assert.Equal(expectedValue, httpContext.Items["parameterWithDefault"]); 254Assert.Equal(expectedValue, httpContext.Items["parameterWithConst"]); 283Assert.Equal(2.15m, httpContext.Items["parameterWithDefault"]); 284Assert.Equal(3.15m, httpContext.Items["parameterWithConst"]);
RequestDelegateGenerator\RequestDelegateCreationTests.TryParse.cs (3)
83Assert.Equal(expectedParameterValue, httpContext.Items["tryParsable"]); 215var p = httpContext.Items["p"]; 262Assert.Equal(expectedParameterValue, httpContext.Items["tryParsable"]);
Microsoft.AspNetCore.Http.Results.Tests (45)
ResultsOfTTests.Generated.cs (45)
59Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 122Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 147Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 174Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 201Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 274Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 339Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 366Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 393Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 422Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 451Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 480Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 558Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 625Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 654Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 683Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 712Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 743Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 774Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 805Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 836Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 919Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 988Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1019Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1050Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1081Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1112Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1145Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1178Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1211Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1244Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1277Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1365Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1436Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1469Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1502Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1535Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1568Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1601Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1636Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1671Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1706Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1741Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1776Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]); 1811Assert.Equal(input, httpContext.Items[nameof(ChecksumResult.Checksum)]);
Microsoft.AspNetCore.Http.Tests (9)
ApplicationBuilderTests.cs (1)
165Assert.Equal("value1", builder1.Properties["test"]);
DefaultHttpContextTests.cs (2)
118Assert.Same(item, context.Items["foo"]); 146Assert.Same(item, context.Items["foo"]);
HeaderDictionaryTests.cs (1)
133Assert.Throws<KeyNotFoundException>(() => asIDictionary["Header1"]);
Timeouts\RequestTimeoutOptionsTests.cs (3)
16var policy = options.Policies["policy1"]; 31var policy = options.Policies["policy1"]; 42Assert.Equal(TimeSpan.FromSeconds(47), options.Policies["policy1"].Timeout);
Timeouts\RequestTimeoutsMiddlewareTests.cs (2)
215Assert.Equal("default", context.Items["SetFrom"]); 235Assert.Equal("policy1", context.Items["SetFrom"]);
Microsoft.AspNetCore.Identity.Test (1)
SignInManagerTest.cs (1)
1457var customValue = externalProperties?.Items["CustomValue"];
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (16)
IntegrationTests\DictionaryIntegrationTest.cs (16)
41Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 42Assert.Equal(2, model.DictionaryOfStringToInteger["two"]); 43Assert.Equal(3, model.DictionaryOfStringToInteger["three"]); 61Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 79Assert.Equal(1, model.DictionaryOfStringToInteger["two"]); 97Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 98Assert.Equal(20, model.DictionaryOfStringToInteger["two"]); 116Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 117Assert.Equal(1, model.DictionaryOfStringToInteger["two"]); 196var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 219var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 241var actualValue2 = model.DictionaryOfStringToCustomer[key2]; 265var actualValue2 = model.DictionaryOfStringToCustomer[key2]; 289var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 313var actualValue1 = model.DictionaryOfStringToInteger[key1]; 314var actualValue2 = model.DictionaryOfStringToInteger[key2];
Microsoft.AspNetCore.JsonPatch.Tests (16)
IntegrationTests\DictionaryIntegrationTest.cs (16)
41Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 42Assert.Equal(2, model.DictionaryOfStringToInteger["two"]); 43Assert.Equal(3, model.DictionaryOfStringToInteger["three"]); 61Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 79Assert.Equal(1, model.DictionaryOfStringToInteger["two"]); 97Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 98Assert.Equal(20, model.DictionaryOfStringToInteger["two"]); 116Assert.Equal(1, model.DictionaryOfStringToInteger["one"]); 117Assert.Equal(1, model.DictionaryOfStringToInteger["two"]); 196var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 219var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 241var actualValue2 = model.DictionaryOfStringToCustomer[key2]; 265var actualValue2 = model.DictionaryOfStringToCustomer[key2]; 289var actualValue1 = model.DictionaryOfStringToCustomer[key1]; 313var actualValue1 = model.DictionaryOfStringToInteger[key1]; 314var actualValue2 = model.DictionaryOfStringToInteger[key2];
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
EndpointMetadataApiDescriptionProviderTest.cs (2)
51Assert.Equal(declaringTypeName, apiDescription.ActionDescriptor.RouteValues["controller"]); 59Assert.Equal(nameof(EndpointMetadataApiDescriptionProviderTest), apiDescription.ActionDescriptor.RouteValues["controller"]);
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
341var propertyBinder = _propertyBinders[property]; 392var propertyBinder = _propertyBinders[property];
ModelBinding\Binders\ComplexTypeModelBinder.cs (3)
117if (_propertyBinders[property] is PlaceholderBinder) 167if (_propertyBinders[property] is PlaceholderBinder) 308var binder = _propertyBinders[bindingContext.ModelMetadata];
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Mvc.Core.Test (26)
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (3)
41var value = actionModel.Properties[typeof(ApiConventionResult)]; 57var value = actionModel.Properties[typeof(ApiConventionResult)]; 158return Assert.IsType<TValue>(action.Properties[typeof(TValue)]);
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (3)
81Assert.Equal("application", descriptors.Single().Properties["test"]); 107Assert.Equal("controller", descriptors.Single().Properties["test"]); 134Assert.Equal("action", descriptors.Single().Properties["test"]);
ApplicationModels\ControllerActionDescriptorProviderTests.cs (5)
261var anonymousAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AllowAnonymousAction"); 269var authorizeAction = Assert.Single(descriptors, a => a.RouteValues["action"] == "AuthorizeAction"); 1316Assert.Null(context.Results[0].RouteValues["page"]); 1319Assert.Null(context.Results[1].RouteValues["controller"]); 1321Assert.Null(context.Results[1].RouteValues["action"]);
ControllerBaseTest.cs (7)
2361Assert.Equal("some-trace", problemDetails.Extensions["traceId"]); 2362Assert.Equal(new[] { "error1" }, problemDetails.Errors["key1"]); 2449Assert.Equal(1, problemDetails.Extensions["ext1"]); 2450Assert.Equal(2, problemDetails.Extensions["ext2"]); 2480Assert.Equal("some-trace", problemDetails.Extensions["traceId"]); 2526Assert.Equal(1, problemDetails.Extensions["ext1"]); 2527Assert.Equal(2, problemDetails.Extensions["ext2"]);
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (2)
110Assert.Equal(Activity.Current.Id, problemDetails.Extensions["traceId"]); 127Assert.Equal("42", problemDetails.Extensions["traceId"]);
Filters\FilterFactoryTest.cs (1)
213var filter = new TestFilter(providerContext.ActionContext.HttpContext.Items["name"] as string);
Infrastructure\ControllerActionInvokerTest.cs (1)
1445Assert.Equal(5, context.Object.Items["Result"]);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (2)
91Assert.Equal(Activity.Current.Id, problemDetails.Extensions["traceId"]); 117Assert.Equal("42", problemDetails.Extensions["traceId"]);
Routing\UrlHelperTestBase.cs (2)
921Assert.Same(urlHelper, actionContext.HttpContext.Items[typeof(IUrlHelper)] as IUrlHelper); 944Assert.Same(urlHelper, actionContext.HttpContext.Items[typeof(IUrlHelper)] as IUrlHelper);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (22)
BsonTempDataSerializerTest.cs (7)
107var roundTripValue = Assert.IsType<int[]>(values[key]); 128var roundTripValue = Assert.IsType<DateTime>(values[key]); 149var roundTripValue = Assert.IsType<Guid>(values[key]); 171var roundTripValue = Assert.IsType<long>(values[key]); 192var roundTripValue = (double)values[key]; 222var roundTripValue = Assert.IsType<string>(values[key]); 249var roundTripValue = Assert.IsType<DateTime[]>(values[key]);
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (15)
41Assert.Null(values[key]); 64var roundTripValue = Assert.IsType<int>(values[key]); 86var roundTripValue = (int?)values[key]; 107var roundTripValue = Assert.IsType<string>(values[key]); 128var roundTripValue = (DayOfWeek)values[key]; 149var roundTripValue = Assert.IsType<DateTime>(values[key]); 170var roundTripValue = Assert.IsType<Guid>(values[key]); 192var roundTripValue = Assert.IsType<string>(values[key]); 214var roundTripValue = Assert.IsType<string>(values[key]); 236var roundTripValue = Assert.IsType<Guid>(values[key]); 257var roundTripValue = Assert.IsType<int[]>(values[key]); 278var roundTripValue = Assert.IsType<string[]>(values[key]); 299var roundTripValue = Assert.IsType<string[]>(values[key]); 324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]); 349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
Microsoft.AspNetCore.Mvc.Razor.Test (4)
RazorPageTest.cs (1)
920var renderAsyncDelegate = page.SectionWriters["test-section"];
RazorViewEngineTest.cs (2)
1174Assert.Equal(expander.ToString(), c.Values["expander-key"]); 1233Assert.Equal(expander.ToString(), c.Values["expander-key"]);
TagHelpers\TagHelperComponentTagHelperTest.cs (1)
150Assert.Equal("Value", tagHelperContext.Items["Key"]);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
Infrastructure\PageActionDescriptorProviderTest.cs (3)
63Assert.Equal("/Test", descriptor.RouteValues["page"]); 332Assert.Equal("/Catalog/Details/Index", descriptor.RouteValues["page"]); 339Assert.Equal("/Catalog/Details/Index", descriptor.RouteValues["page"]);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataPropertyFilterBase.cs (1)
75var value = tempData[property.Key];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (22)
ControllerTest.cs (1)
380var result = controller.TempData["key"];
ExpressionHelperTest.cs (5)
80(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 215(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 338(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 342(Expression<Func<IDictionary<string, TestModel>, string>>)(model => model[key].SelectedCategory.CategoryName.MainCategory), 343(Expression<Func<IDictionary<string, LowerModel>, string>>)(model => model[key].selectedcategory.CategoryName.MainCategory)
Infrastructure\DefaultTempDataSerializerTest.cs (1)
30var roundTripValue = Assert.IsType<string>(values[key]);
Infrastructure\TempDataSerializerTestBase.cs (15)
41Assert.Null(values[key]); 64var roundTripValue = Assert.IsType<int>(values[key]); 86var roundTripValue = (int?)values[key]; 107var roundTripValue = Assert.IsType<string>(values[key]); 128var roundTripValue = (DayOfWeek)values[key]; 149var roundTripValue = Assert.IsType<DateTime>(values[key]); 170var roundTripValue = Assert.IsType<Guid>(values[key]); 192var roundTripValue = Assert.IsType<string>(values[key]); 214var roundTripValue = Assert.IsType<string>(values[key]); 236var roundTripValue = Assert.IsType<Guid>(values[key]); 257var roundTripValue = Assert.IsType<int[]>(values[key]); 278var roundTripValue = Assert.IsType<string[]>(values[key]); 299var roundTripValue = Assert.IsType<string[]>(values[key]); 324var roundTripValue = Assert.IsType<Dictionary<string, string>>(values[key]); 349var roundTripValue = Assert.IsType<Dictionary<string, int>>(values[key]);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
352var controllerName = description.ActionDescriptor.RouteValues["controller"];
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (74)
AdditionalTextsTests.Schemas.cs (25)
197var todo = path.RequestBody.Content["application/json"].Schema; 201var project = path.RequestBody.Content["application/json"].Schema; 205var board = path.RequestBody.Content["application/json"].Schema; 209project = path.RequestBody.Content["application/json"].Schema; 211Assert.Equal("The name of the project.", project.Properties["name"].Description); 212Assert.Equal("The description of the project.", project.Properties["description"].Description); 215todo = path.RequestBody.Content["application/json"].Schema; 216Assert.Equal("The identifier of the todo.", todo.Properties["id"].Description); 217Assert.Equal("The name of the todo.", todo.Properties["name"].Description); 218Assert.Equal("Another description of the todo.", todo.Properties["description"].Description); 221var typeWithExamples = path.RequestBody.Content["application/json"].Schema; 223var booleanTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["booleanType"].Example); 226var integerTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["integerType"].Example); 229var longTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["longType"].Example); 232var doubleTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["doubleType"].Example); 235var floatTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["floatType"].Example); 238var dateTimeTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["dateTimeType"].Example); 241var dateOnlyTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["dateOnlyType"].Example); 244var stringTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["stringType"].Example); 247var guidTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["guidType"].Example); 250var byteTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["byteType"].Example); 253var timeOnlyTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["timeOnlyType"].Example); 256var timeSpanTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["timeSpanType"].Example); 259var decimalTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["decimalType"].Example); 262var uriTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["uriType"].Example);
CompletenessTests.cs (18)
480var exampleClass = path.RequestBody.Content["application/json"].Schema; 482Assert.Equal("The `Label` property represents a label\nfor this instance.", exampleClass.Properties["label"].Description, ignoreLineEndingDifferences: true); 485var person = path.RequestBody.Content["application/json"].Schema; 487Assert.Equal("This tag will apply to the primary constructor parameter.", person.Properties["firstName"].Description); 488Assert.Equal("This tag will apply to the primary constructor parameter.", person.Properties["lastName"].Description); 491var derivedClass = path.RequestBody.Content["application/json"].Schema; 495var mainClass = path.RequestBody.Content["application/json"].Schema; 499var implementingClass = path.RequestBody.Content["application/json"].Schema; 503var inheritOnlyReturns = path.RequestBody.Content["application/json"].Schema; 507var inheritAllButRemarks = path.RequestBody.Content["application/json"].Schema; 511var genericClass = path.RequestBody.Content["application/json"].Schema; 515var genericParent = path.RequestBody.Content["application/json"].Schema; 517Assert.Equal("This property is a nullable value type.", genericParent.Properties["id"].Description); 518Assert.Equal("This property is a nullable reference type.", genericParent.Properties["name"].Description); 519Assert.Equal("This property is a generic type containing a tuple.", genericParent.Properties["taskOfTupleProp"].Description); 520Assert.Equal("This property is a tuple with a generic type inside.", genericParent.Properties["tupleWithGenericProp"].Description); 521Assert.Equal("This property is a tuple with a nested generic type inside.", genericParent.Properties["tupleWithNestedGenericProp"].Description); 524var paramsAndParamRefs = path.RequestBody.Content["application/json"].Schema;
OperationTests.MinimalApis.cs (1)
267var userParam = path6.RequestBody.Content["application/json"];
SchemaTests.cs (30)
184var todo = path.RequestBody.Content["application/json"].Schema; 188var project = path.RequestBody.Content["application/json"].Schema; 192var board = path.RequestBody.Content["application/json"].Schema; 196var element = path.RequestBody.Content["application/json"].Schema; 197Assert.Equal("The unique identifier for the element.", element.Properties["name"].Description); 201project = path.RequestBody.Content["application/json"].Schema; 203Assert.Equal("The name of the project.", project.Properties["name"].Description); 204Assert.Equal("The description of the project.", project.Properties["description"].Description); 207todo = path.RequestBody.Content["application/json"].Schema; 208Assert.Equal("The identifier of the todo.", todo.Properties["id"].Description); 209Assert.Equal("The name of the todo.", todo.Properties["name"].Description); 210Assert.Equal("Another description of the todo.", todo.Properties["description"].Description); 213var typeWithExamples = path.RequestBody.Content["application/json"].Schema; 215var booleanTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["booleanType"].Example); 218var integerTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["integerType"].Example); 221var longTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["longType"].Example); 224var doubleTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["doubleType"].Example); 227var floatTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["floatType"].Example); 230var dateTimeTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["dateTimeType"].Example); 233var dateOnlyTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["dateOnlyType"].Example); 236var stringTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["stringType"].Example); 239var guidTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["guidType"].Example); 242var byteTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["byteType"].Example); 245var timeOnlyTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["timeOnlyType"].Example); 248var timeSpanTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["timeSpanType"].Example); 251var decimalTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["decimalType"].Example); 254var uriTypeExample = Assert.IsAssignableFrom<JsonNode>(typeWithExamples.Properties["uriType"].Example); 258var user = path.RequestBody.Content["application/json"].Schema; 259Assert.Equal("The unique identifier for the user.", user.Properties["id"].Description); 260Assert.Equal("The user's display name.", user.Properties["name"].Description);
Microsoft.AspNetCore.OpenApi.Tests (184)
Services\CreateSchemaReferenceIdTests.cs (2)
54Assert.Equal("triangle", triangleSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 56Assert.Equal("square", squareSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
Services\OpenApiDocumentService\OpenApiDocumentServiceTests.RequestBody.cs (10)
44var formFileProperty = content.Value.Schema.Properties["formFile"]; 121var formFileProperty = content.Value.Schema.Properties["formFileCollection"]; 193var formFile1Property = allOfItem.Properties["formFile1"]; 201var formFile2Property = allOfItem.Properties["formFile2"]; 229var formFileProperty = content.Value.Schema.Properties["formFile"]; 256var formFileProperty = content.Value.Schema.Properties["formFile"]; 488Assert.Equal(JsonSchemaType.Integer, subSchema.Properties["id"].Type); 493Assert.Equal(JsonSchemaType.String, subSchema.Properties["date"].Type); 494Assert.Equal("date-time", subSchema.Properties["date"].Format); 499Assert.Equal(JsonSchemaType.Integer, subSchema.Properties["value"].Type);
Services\OpenApiGeneratorTests.cs (2)
817var requestFormat0 = content["application/custom0"]; 820var requestFormat1 = content["application/custom1"];
Services\OpenApiSchemaService\OpenApiSchemaService.ParameterSchemas.cs (7)
557Assert.NotNull(operation.RequestBody.Content["application/json"]); 558Assert.NotNull(operation.RequestBody.Content["application/json"].Schema); 561Assert.Null(operation.RequestBody.Content["application/json"].Schema.Type); 595Assert.NotNull(operation.RequestBody.Content["application/json"]); 596Assert.NotNull(operation.RequestBody.Content["application/json"].Schema); 599Assert.Null(operation.RequestBody.Content["application/json"].Schema.Type); 625var response = Assert.Single(operation.Responses).Value.Content["application/json"].Schema;
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (15)
40Assert.Equal("triangle", triangleSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 42Assert.Equal("square", squareSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 79Assert.Equal(0, citySchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>()); 83Assert.Equal(1, timeSeriesSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>()); 87Assert.Equal(2, newsSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>()); 122Assert.Equal("student", citySchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 126Assert.Equal("teacher", timeSeriesSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 158Assert.Equal("paint", paintSchema.Properties["$type"].Enum.First().GetValue<string>()); 162Assert.Equal("fabric", fabricSchema.Properties["$type"].Enum.First().GetValue<string>()); 210Assert.Equal("dog", dogSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 214Assert.Equal("cat", catSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 218Assert.Equal("pet", petSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 291Assert.Equal("manager", managerSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 293Assert.Equal("employee", employeeSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>()); 295Assert.Equal("Employee", ((OpenApiSchemaReference)employeeSchema.Properties["manager"]).Reference.Id);
Services\OpenApiSchemaService\OpenApiSchemaService.RequestBodySchemas.cs (11)
89var content = requestBody.Content[targetContentType]; 212var effectiveSchema = requestBody.Content["application/octet-stream"].Schema; 234var schema = requestBody.Content["application/json"].Schema; 273var enumerableTodoSchema = enumerableTodo.RequestBody.Content["application/json"].Schema; 274var arrayTodoSchema = arrayTodo.RequestBody.Content["application/json"].Schema; 590Assert.Collection(operation.RequestBody.Content["application/x-www-form-urlencoded"].Schema.AllOf, 593var property = schema.Properties["name"]; 598var property = schema.Properties["number"]; 603var property = schema.Properties["ids"]; 740var properties = operation.RequestBody.Content["application/x-www-form-urlencoded"].Schema.Properties; 741var property = properties["status"];
Transformers\CustomSchemaTransformerTests.cs (10)
130var todoSchema = document.Components.Schemas["Todo2"]; 171var shapeSchema = document.Components.Schemas["Shape"]; 226var idSchema = document.Components.Schemas["IdParameter"]; 227var limitSchema = document.Components.Schemas["LimitParameter"]; 289var containerSchema = document.Components.Schemas["NestedContainer"]; 293var itemsSchema = containerSchema.Properties["items"]; 366var schema = document.Components.Schemas["ProductSchema"]; 379var categoryProperty = schema.Properties["category"]; 435var schema = document.Components.Schemas[$"Schema{i}"]; 487var schema = document.Components.Schemas["User"];
Transformers\Implementations\OpenApiSchemaReferenceTransformerTests.cs (69)
28var parameter = operation.RequestBody.Content["multipart/form-data"]; 32var parameter2 = operation2.RequestBody.Content["multipart/form-data"]; 82var requestBody = operation.RequestBody.Content["application/json"]; 86var responseContent = response.Content["application/json"]; 112var effectiveIdSchema = effectiveSchema.Properties["id"]; 114var effectiveTitleSchema = effectiveSchema.Properties["title"]; 116var effectiveCompletedSchema = effectiveSchema.Properties["completed"]; 118var effectiveCreatedAtSchema = effectiveSchema.Properties["createdAt"]; 137var requestBody = operation.RequestBody.Content["application/json"]; 141var requestBody2 = operation2.RequestBody.Content["application/json"]; 194var requestBody = operation.RequestBody.Content["multipart/form-data"]; 198var requestBody2 = operation2.RequestBody.Content["multipart/form-data"]; 206Assert.Equal(JsonSchemaType.String, requestBodySchema.AllOf[0].Properties["resume"].Type); 207Assert.Equal("binary", requestBodySchema.AllOf[0].Properties["resume"].Format); 211Assert.IsNotType<OpenApiSchemaReference>(requestBodySchema.AllOf[1].Properties["title"]); 212Assert.IsNotType<OpenApiSchemaReference>(requestBodySchema2.AllOf[1].Properties["title"]); 230var requestBody = operation.RequestBody.Content["application/json"]; 234var requestBody2 = operation2.RequestBody.Content["application/json"]; 295var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 297var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 300Assert.Equal("todo", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 323var requestBody = operation.Responses["200"].Content["application/json"]; 327var requestBody2 = operation2.Responses["200"].Content["application/json"]; 356var todosProperty = effectiveSchema.Properties["todos"]; 380var requestSchema = operation.RequestBody.Content["application/json"].Schema; 387Assert.Equal("Level2", ((OpenApiSchemaReference)level1Schema.Properties["item2"]).Reference.Id); 390var level2Schema = level1Schema.Properties["item2"]; 391Assert.Equal("Level3", ((OpenApiSchemaReference)level2Schema.Properties["item3"]).Reference.Id); 394var level3Schema = level2Schema.Properties["item3"]; 395Assert.IsNotType<OpenApiSchemaReference>(level3Schema.Properties["terminate"]); 444var requestSchema = operation.RequestBody.Content["application/json"].Schema; 453Assert.Equal($"DeeplyNestedLevel{level}", ((OpenApiSchemaReference)levelSchema.Properties[$"item{level}"]).Reference.Id); 454levelSchema = levelSchema.Properties[$"item{level}"]; 470var requestSchema = operation.RequestBody.Content["application/json"].Schema; 485document.Components.Schemas["LocationContainer"].SerializeAsV31(openApiWriter); 500document.Components.Schemas["LocationDto"].SerializeAsV31(openApiWriter); 518document.Components.Schemas["AddressDto"].SerializeAsV31(openApiWriter); 547var requestSchema = operation.RequestBody.Content["application/json"].Schema; 561document.Components.Schemas["ParentObject"].SerializeAsV31(openApiWriter); 583document.Components.Schemas["ChildObject"].SerializeAsV31(openApiWriter); 616var requestSchema = operation.RequestBody.Content["application/json"].Schema; 622Assert.Equal("Item", ((OpenApiSchemaReference)requestSchema.Properties["item1"]).Reference.Id); 625Assert.Equal("Item", ((OpenApiSchemaReference)requestSchema.Properties["item2"]).Reference.Id); 643var listRequestSchema = listOperation.RequestBody.Content["application/json"].Schema; 646var arrayRequestSchema = arrayOperation.RequestBody.Content["application/json"].Schema; 649var dictionaryRequestSchema = dictionaryOperation.RequestBody.Content["application/json"].Schema; 652var requestSchema = operation.RequestBody.Content["application/json"].Schema; 662Assert.Equal("LocationDto", ((OpenApiSchemaReference)locationContainerSchema.Properties["location"]).Reference.Id); 665var locationSchema = locationContainerSchema.Properties["location"]; 666Assert.Equal("AddressDto", ((OpenApiSchemaReference)locationSchema.Properties["address"]).Reference.Id); 669var addressSchema = locationSchema.Properties["address"]; 670Assert.Equal("LocationDto", ((OpenApiSchemaReference)addressSchema.Properties["relatedLocation"]).Reference.Id); 693var requestSchema = operation.RequestBody.Content["application/json"].Schema; 702var seq1Schema = requestSchema.Properties["seq1"]; 703var seq2Schema = requestSchema.Properties["seq2"]; 737var requestSchema = operation.RequestBody.Content["application/json"].Schema; 747Assert.Equal("Category", ((OpenApiSchemaReference)requestSchema.Properties["parent"]).Reference.Id); 775var requestSchema = operation.RequestBody.Content["application/json"].Schema; 781Assert.Equal("ChildObject", ((OpenApiSchemaReference)requestSchema.Properties["children"].Items).Reference.Id); 784var childSchema = requestSchema.Properties["children"].Items; 785Assert.Equal("ParentObject", ((OpenApiSchemaReference)childSchema.Properties["parent"]).Reference.Id); 788requestSchema = operation.RequestBody.Content["application/json"].Schema; 793Assert.Equal("ChildObject", ((OpenApiSchemaReference)parentSchema.Properties["children"].Items).Reference.Id); 795childSchema = parentSchema.Properties["children"].Items; 796Assert.Equal("ParentObject", ((OpenApiSchemaReference)childSchema.Properties["parent"]).Reference.Id); 799requestSchema = operation.RequestBody.Content["application/json"].Schema; 804Assert.Equal("ChildObject", ((OpenApiSchemaReference)parentSchema.Properties["children"].Items).Reference.Id); 806childSchema = parentSchema.Properties["children"].Items; 807Assert.Equal("ParentObject", ((OpenApiSchemaReference)childSchema.Properties["parent"]).Reference.Id);
Transformers\SchemaTransformerTests.cs (58)
163Assert.Equal("1", ((JsonNodeExtension)schema.Extensions["x-my-extension"]).Node.GetValue<string>()); 171var schema = operation.RequestBody.Content["application/json"].Schema; 172Assert.Equal("2", ((JsonNodeExtension)schema.Extensions["x-my-extension"]).Node.GetValue<string>()); 199var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 200Assert.Equal("1", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 202var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 203Assert.Equal("1", ((JsonNodeExtension)responseSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 229var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 230Assert.Equal("todo", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 232var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 252var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 253Assert.Equal("1", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 255var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 256Assert.Equal("1", ((JsonNodeExtension)responseSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 275var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 276Assert.Equal("1", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 278var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 279Assert.Equal("1", ((JsonNodeExtension)responseSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 302var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 303value = ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>(); 306var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 307Assert.Equal(value, ((JsonNodeExtension)responseSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 313var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 314Assert.Equal(value, ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 316var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 317Assert.Equal(value, ((JsonNodeExtension)responseSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 338var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 341var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 348var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 351var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 375var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 378var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 401var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 404var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 439var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 440Assert.Equal("modified-number-format", requestSchema.Properties["id"].Format); 469var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 475responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 481responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 510var requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 517requestSchema = postOperation.RequestBody.Content["application/json"].Schema; 518Assert.Equal("this-is-a-triangle", ((JsonNodeExtension)requestSchema.Extensions["x-my-extension"]).Node.GetValue<string>()); 545var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 547Assert.Equal("modified-number-format", itemSchema.Properties["id"].Format); 552var otherResponseSchema = otherGetOperation.Responses["200"].Content["application/json"].Schema; 585var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 627var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 628var someShapeSchema = responseSchema.Properties["someShape"]; 669var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 670var someShapeSchema = responseSchema.Items.Properties["someShape"]; 709var requestSchema = postOperation.RequestBody.Content["application/x-www-form-urlencoded"].Schema; 713Assert.Equal("modified-number-format", todoSchema.Properties["id"].Format); 714Assert.Equal("modified-number-format", errorSchema.Properties["code"].Format); 751var responseSchema = getOperation.Responses["200"].Content["application/json"].Schema; 752Assert.True(((JsonNodeExtension)responseSchema.Not.Extensions["modified-by-not-schema-transformer"]).Node.GetValue<bool>()); 756var shapeRequestSchema = shapeOperation.RequestBody.Content["application/json"].Schema; 758Assert.True(((JsonNodeExtension)triangleSchema.Not.Extensions["modified-by-not-schema-transformer"]).Node.GetValue<bool>()); 932var schema = operation.Responses["200"].Content["application/json"].Schema;
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheKeyProvider.cs (1)
322var value = varyByRules.VaryByValues[key];
Microsoft.AspNetCore.OutputCaching.Tests (3)
OutputCachePolicyBuilderTests.cs (3)
231Assert.Equal("circle", context.CacheVaryByRules.VaryByValues["shape"]); 232Assert.Equal("blue", context.CacheVaryByRules.VaryByValues["color"]); 233Assert.Equal("1m", context.CacheVaryByRules.VaryByValues["size"]);
Microsoft.AspNetCore.Owin (7)
DictionaryStringValuesWrapper.cs (1)
39get { return Inner[key]; }
OwinExtensions.cs (1)
40return next1((HttpContext)env[typeof(HttpContext).FullName]);
WebSockets\OwinWebSocketAdapter.cs (3)
48_sendAsync = (WebSocketSendAsync)websocketContext[OwinConstants.WebSocket.SendAsync]; 49_receiveAsync = (WebSocketReceiveAsync)websocketContext[OwinConstants.WebSocket.ReceiveAsync]; 50_closeAsync = (WebSocketCloseAsync)websocketContext[OwinConstants.WebSocket.CloseAsync];
WebSockets\WebSocketAcceptAdapter.cs (2)
72if ((int)environment[OwinConstants.ResponseStatusCode] == 101 && adapter._callback != null) 86var webSocketAdapter = new WebSocketAdapter(webSocket, (CancellationToken)environment[OwinConstants.CallCancelled]);
Microsoft.AspNetCore.Owin.Tests (5)
OwinEnvironmentTests.cs (5)
44Assert.Equal("CustomRequestValue", requestHeaders["CustomRequestHeader"].First()); 54Assert.Equal("CustomResponseValue", responseHeaders["CustomResponseHeader"].First()); 109Assert.Throws<KeyNotFoundException>(() => env[key]); 125Assert.Equal(CancellationToken.None, env["owin.CallCancelled"]); 126Assert.Equal("1.0", env["owin.Version"]);
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (1)
55((Dictionary<string, int>)executionContext.Items["test-entry"]).Add("from-child", 1234);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
378return _storage[key];
Microsoft.AspNetCore.Routing (1)
RegexInlineRouteConstraintSetup.cs (1)
14var existingRegexConstraintType = options.TrimmerSafeConstraintMap["regex"];
Microsoft.AspNetCore.Routing.Tests (47)
Builder\GroupTest.cs (5)
50Assert.Equal(42, httpContext.Items["id"]); 83Assert.Equal("dotnet", httpContext.Items["org"]); 84Assert.Equal(42, httpContext.Items["id"]); 117Assert.Equal("dotnet", httpContext.Items["org"]); 118Assert.Equal(42, httpContext.Items["id"]);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (6)
172Assert.Equal(1, (int)httpContext.Items["First-Order"]!); 173Assert.Equal(2, (int)httpContext.Items["Second-Order"]!); 220Assert.True((bool)httpContext.Items["First"]!); 221Assert.True((bool)httpContext.Items["Second"]!); 305if (httpContext.Items["CurrentOrder"] is int) 307order = (int)httpContext.Items["CurrentOrder"]!;
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (10)
167Assert.Null(httpContext.Items["input"]); 207Assert.Equal(41, httpContext.Items["input"]); 542Assert.Equal(13, httpContext.Items["input"]); 587Assert.Null(httpContext.Items["input"]); 620Assert.Equal(42, httpContext.Items["value"]); 644Assert.Null(httpContext.Items["value"]); 963string? PrintLogger(HttpContext context) => $"loggerErrorIsEnabled: {context.Items["loggerErrorIsEnabled"]}, parentName: {context.Items["parentName"]}"; 996string? PrintLogger(HttpContext context) => $"loggerErrorIsEnabled: {context.Items["loggerErrorIsEnabled"]}, parentName: {context.Items["parentName"]}";
EndpointRoutingMiddlewareTest.cs (2)
178Assert.True((bool)httpContext.Items["ShortCircuit"]); 200Assert.True((bool)httpContext.Items["ShortCircuit"]);
Patterns\RoutePatternMatcherTest.cs (1)
1124Assert.Equal(expected[key], values[key]);
RouteOptionsTests.cs (1)
25Assert.Equal("TestRouteConstraint", accessor.Value.ConstraintMap["foo"].Name);
RouteTest.cs (20)
91Assert.Equal("USA", routeValues["country"]); 93Assert.Equal("5", routeValues["id"]); 147Assert.Equal("USA", routeValues["country"]); 149Assert.Equal("5", routeValues["id"]); 152Assert.Equal("USA", constraint.Values["country"]); 154Assert.Equal("5", constraint.Values["id"]); 193Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 201Assert.Equal("5", routeValues["id"]); 235Assert.IsType<RegexInlineRouteConstraint>(route.Constraints["ssn"]); 243Assert.Equal("123-456-7890", routeValues["ssn"]); 277Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 320Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 321var innerConstraint = ((OptionalRouteConstraint)route.Constraints["id"]).InnerConstraint; 335Assert.Equal("5", routeValues["id"]); 369Assert.IsType<OptionalRouteConstraint>(route.Constraints["id"]); 1582Assert.Equal(expectedDictionary[expectedKey], templateRoute.DataTokens[expectedKey]); 1643Assert.IsType<RegexRouteConstraint>(constraints["controller"]); 1644Assert.Equal(mockConstraint, constraints["action"]); 1662var constraint = (CompositeRouteConstraint)constraints["id"]; 1683Assert.IsType<IntRouteConstraint>(constraints["id"]);
RoutingServiceCollectionExtensionsTests.cs (1)
80var regexRouteConstraintType = options.Value.ConstraintMap["regex"];
Template\TemplateMatcherTests.cs (1)
1123Assert.Equal(expected[key], values[key]);
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
92get { return Store[key]; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
49return PropertiesTryGetValue(key, out value) ? value : Extra[key];
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (20)
Http2Tests.cs (20)
53Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 94Assert.Equal("411", decodedHeaders[InternalHeaderNames.Status]); 144Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 204Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 268Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 303Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 341Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 352Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 388Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 427Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 467Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 484Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 503Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 534Assert.Equal("500", decodedHeaders[InternalHeaderNames.Status]); 568Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 600Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 730Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 777Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 829Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]); 982Assert.Equal("200", decodedHeaders[InternalHeaderNames.Status]);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
92get { return Store[key]; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
49return PropertiesTryGetValue(key, out value) ? value : Extra[key];
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
92IISDeploymentParameters.EnvironmentVariables[DetailedErrorsEnvironmentVariable];
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (14)
CertificatePathWatcherTests.cs (8)
41Assert.Equal(dir, messageProps["Directory"]); 44Assert.Equal(filePath, messageProps["Path"]); 53Assert.Equal(filePath, messageProps["Path"]); 56Assert.Equal(dir, messageProps["Directory"]); 228Assert.Equal(dir, messageProps["Directory"]); 262Assert.Equal(filePath, messageProps["Path"]); 303Assert.Equal(filePath, messageProps["Path"]); 332Assert.Equal(filePath, messageProps["Path"]);
HttpRequestHeadersTests.cs (6)
36var header = Assert.Single(headers["custom"]); 48var host = Assert.Single(headers["host"]); 49var contentLength = Assert.Single(headers["content-length"]); 97Assert.Throws<KeyNotFoundException>(() => headers["custom"]); 98Assert.Throws<KeyNotFoundException>(() => headers["host"]); 99Assert.Throws<KeyNotFoundException>(() => headers["Content-Length"]);
Microsoft.AspNetCore.Server.Kestrel.Tests (3)
ConfigurationReaderTests.cs (3)
59var fileCert = certificates["FileCert"]; 65var storeCert = certificates["StoreCert"]; 87var fileCert = certificates["FiLeCeRt"];
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
QuicConnectionContextTests.cs (1)
715object state = serverStream2.Features.Get<IPersistentStateFeature>().State["test"];
Microsoft.AspNetCore.Shared.Tests (12)
CopyOnWriteDictionaryTest.cs (1)
37.Setup(d => d["key2"])
PropertyHelperTest.cs (8)
668Assert.Equal(4, dictValues["Length"]); 683Assert.Equal("value", dictValues["test"]); 684Assert.Equal(1, dictValues["other"]); 699Assert.Equal("value", dictValues["test"]); 700Assert.Equal(1, dictValues["other"]); 715Assert.Equal(5, dictValues["X"]); 716Assert.Equal(10, dictValues["Y"]); 717Assert.Equal(17, dictValues["Z"]);
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
92get { return Store[key]; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
49return PropertiesTryGetValue(key, out value) ? value : Extra[key];
Microsoft.AspNetCore.SignalR.Client.Tests (3)
HubConnectionTests.ConnectionLifecycle.cs (3)
194var method = MethodsThatRequireActiveConnection[name]; 208var method = MethodsThatRequireActiveConnection[name]; 459var method = MethodsThatRequireActiveConnection[methodName];
Microsoft.AspNetCore.SignalR.Common.Tests (17)
Internal\Protocol\JsonHubProtocolTests.cs (2)
62var testData = CustomProtocolTestData[protocolTestDataName]; 85var testData = CustomProtocolTestData[protocolTestDataName];
Internal\Protocol\JsonHubProtocolTestsBase.cs (5)
117var testData = ProtocolTestData[protocolTestDataName]; 140var testData = ProtocolTestData[protocolTestDataName]; 216var testData = OutOfOrderJsonTestData[outOfOrderJsonTestDataName]; 391var testData = MessageSizeData[testDataName]; 437var testData = ClientResultData[testDataName];
Internal\Protocol\MessagePackHubProtocolTestBase.cs (5)
217var testData = BaseTestData[testDataName]; 265var testData = BaseTestData[testDataName]; 354var testData = BaseInvalidPayloads[invalidPayloadName]; 392var testData = ArgumentBindingErrors[argumentBindingErrorName]; 443var testData = MessageSizeData[testDataName];
Internal\Protocol\MessagePackHubProtocolTests.cs (3)
187var testData = TestData[testDataName]; 196var testData = TestData[testDataName]; 216var testData = ClientResultData[testDataName];
Internal\Protocol\NewtonsoftJsonHubProtocolTests.cs (2)
60var testData = CustomProtocolTestData[protocolTestDataName]; 84var testData = CustomProtocolTestData[protocolTestDataName];
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
34public Task Connected => ((TaskCompletionSource)Connection.Items["ConnectedTask"]).Task;
Microsoft.AspNetCore.SignalR.Tests (7)
HubConnectionHandlerTests.cs (3)
134var firedOnConnected = (bool)client.Connection.Items[nameof(ErrorInAbortedTokenHub.OnConnectedAsync)]; 135var firedOnDisconnected = (bool)client.Connection.Items[nameof(ErrorInAbortedTokenHub.OnDisconnectedAsync)]; 4583var task = (Task<int>)client.Connection.Items[nameof(MethodHub.UploadDoesWorkOnComplete)];
HubConnectionHandlerTestUtils\Hubs.cs (4)
400var tcs = (TaskCompletionSource)Context.Items["ConnectedTask"]; 410var tcs = (TaskCompletionSource)Context.Items["ConnectedTask"]; 490var tcs = (TaskCompletionSource)Context.Items["ConnectedTask"]; 1337var tcs = (TaskCompletionSource)Context.Items["ConnectedTask"];
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
TestClient.cs (1)
34public Task Connected => ((TaskCompletionSource)Connection.Items["ConnectedTask"]).Task;
Microsoft.AspNetCore.Tests (7)
WebApplicationTests.cs (6)
1346Assert.Equal(nameof(WebApplicationTests), builder.Host.Properties["lowercase"]); 2189Assert.Equal("world", context.Properties["hello"]); 2195Assert.Equal("world", context.Properties["hello"]); 2201Assert.Equal("world", context.Properties["hello"]); 2520Assert.Equal(1, iHostApplicationBuilder.Properties["MyProp"]); 2940var val = app.Properties["didsomething"];
WebHostTests.cs (1)
124Assert.Equal(typeof(RegexInlineRouteConstraint), routeOptions.Value.ConstraintMap["regex"]);
Microsoft.AspNetCore.WebUtilities.Tests (4)
FormPipeReaderTests.cs (4)
563Assert.Equal("bar", values["fo"]); 565Assert.Equal("", values["ba"]); 584Assert.Equal("bar", values["fo"]); 586Assert.Equal("", values["b"]);
Microsoft.Build.Framework (1)
LoggerException.cs (1)
128helpKeyword = state[nameof(helpKeyword)];
Microsoft.CodeAnalysis.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
216Debug.Assert(map[analysisEntity] == kvp.Value);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
649setAbstractValue(initialAnalysisData, entity, existingValues[entity]);
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2094dict1.Keys.All(key => dict2.TryGetValue(key, out TValue value2) && EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Microsoft.CodeAnalysis.CSharp (1)
Compilation\SyntaxAndDeclarationManager.cs (1)
461var lazyRoot = declMap[tree];
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (3)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (3)
2634Assert.Equal(expectedSpans["expression"].Single(), diagnostic.AdditionalLocations[0].SourceSpan); 2635Assert.Equal(expectedSpans["fade"][0], diagnostic.AdditionalLocations[1].SourceSpan); 2636Assert.Equal(expectedSpans["fade"][1], diagnostic.AdditionalLocations[2].SourceSpan);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
ExtractMethod\ExtractMethodBase.cs (1)
169var validator = new CSharpExtractMethodService.CSharpSelectionValidator(semanticDocument, textSpanOverride ?? namedSpans["b"].Single(), localFunction: false);
Intents\IntentTestsBase.cs (1)
109var priorSelection = testDocument.AnnotatedSpans["priorSelection"].Single();
StringCopyPaste\StringCopyPasteCommandHandlerTests.cs (1)
96var copySpans = copyDocument.AnnotatedSpans["Copy"];
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
src\Analyzers\CSharp\Tests\RemoveUnnecessaryParentheses\RemoveUnnecessaryExpressionParenthesesTests.cs (3)
2634Assert.Equal(expectedSpans["expression"].Single(), diagnostic.AdditionalLocations[0].SourceSpan); 2635Assert.Equal(expectedSpans["fade"][0], diagnostic.AdditionalLocations[1].SourceSpan); 2636Assert.Equal(expectedSpans["fade"][1], diagnostic.AdditionalLocations[2].SourceSpan);
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Rename\CSharpRenameRewriterLanguageService.cs (7)
816conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 830conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 840conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 844conflicts.AddRange(DeclarationConflictHelpers.GetMembersWithConflictingSignatures((IMethodSymbol)renamedSymbol, trimOptionalParameters: false).Select(t => reverseMappedLocations[t])); 888conflicts.Add(reverseMappedLocations[usingDirective.Alias.Name.GetLocation()]); 902conflicts.Add(reverseMappedLocations[typeParameter.Identifier.GetLocation()]); 917conflicts.Add(reverseMappedLocations[typeParameterToken.GetLocation()]);
Microsoft.CodeAnalysis.EditorFeatures (1)
ContentTypeLanguageMetadata.cs (1)
13public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)];
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (1)
48var cursorSpan = testDocument.AnnotatedSpans["Cursor"].Single();
Structure\AbstractSyntaxStructureProviderTests.cs (4)
88Assert.True(spans.ContainsKey(textSpanName) && spans[textSpanName].Length == 1, $"Test did not specify '{textSpanName}' span."); 89Assert.True(spans.ContainsKey(hintSpanName) && spans[hintSpanName].Length == 1, $"Test did not specify '{hintSpanName}' span."); 91var textSpan = spans[textSpanName][0]; 92var hintSpan = spans[hintSpanName][0];
Workspaces\EditorTestWorkspace.cs (2)
392var matchingSpan = documentWithSpan.AnnotatedSpans[spanName].Single(); 442foreach (var markupSpan in markupSpans[key])
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
CodeGeneration\CodeGenerationTests.cs (1)
914var annotatedSpans = Workspace.Documents.Single().AnnotatedSpans[key];
Snippets\RoslynLSPSnippetConvertTests.cs (1)
443var stringSpan = placeholderDictionary[""].First();
Microsoft.CodeAnalysis.Features (3)
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingIncrementalAnalyzerProviderMetadata.cs (2)
15: this(name: (string)data[nameof(Name)], 16workspaceKinds: (IReadOnlyList<string>)data[nameof(WorkspaceKinds)])
InlineHints\InlineHintHelpers.cs (1)
36parts.AddRange(groups[SymbolDescriptionGroups.MainDescription]);
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
LspServices\LspServiceMetadataView.cs (7)
29var typeName = (string)metadata[nameof(AbstractExportLspServiceAttribute.TypeName)]; 30var assemblyName = (string)metadata[nameof(AbstractExportLspServiceAttribute.AssemblyName)]; 31var codeBase = (string?)metadata[nameof(AbstractExportLspServiceAttribute.CodeBase)]; 34var interfaceNames = (string[])metadata[nameof(AbstractExportLspServiceAttribute.InterfaceNames)]; 37ServerKind = (WellKnownLspServerKinds)metadata[nameof(AbstractExportLspServiceAttribute.ServerKind)]; 38IsStateless = (bool)metadata[nameof(AbstractExportLspServiceAttribute.IsStateless)]; 40var methodHandlerData = (string[]?)metadata[nameof(AbstractExportLspServiceAttribute.MethodHandlerData)];
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Microsoft.CodeAnalysis.UnitTests (10)
Collections\ImmutableDictionaryBuilderTestBase.cs (8)
28Assert.Equal(5, builder["five"]); 29Assert.Equal(6, builder["six"]); 65Assert.Equal(5, builder["five"]); 67Assert.Equal(5, builder["five"]); 71Assert.Equal(50, builder["five"]); 74Assert.Throws<KeyNotFoundException>(() => builder["foo"]); 93Assert.Equal(6, builder["six"]); 103Assert.Equal(6, builder["six"]);
Collections\ImmutableDictionaryTestBase.cs (2)
160Assert.Throws<KeyNotFoundException>(() => dictionary["a"]); 161Assert.Equal(3, dictionary["c"]);
Microsoft.CodeAnalysis.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Workspace\Host\EventListener\EventListenerMetadata.cs (2)
14public string Service { get; } = (string)data[nameof(ExportEventListenerAttribute.Service)]; 15public IReadOnlyList<string> WorkspaceKinds { get; } = (IReadOnlyList<string>)data[nameof(ExportEventListenerAttribute.WorkspaceKinds)];
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CodeCleanup\CodeCleanupTests.cs (2)
384await VerifyRange(codeWithoutMarker, [], namedSpans["b"], transformer, language); 392await VerifyRange(codeWithoutMarker, [transformer], namedSpans["b"], transformer, language);
Microsoft.Data.Analysis (1)
GroupBy.cs (1)
299ICollection<long> values = _keyToRowIndicesMap[key];
Microsoft.Data.Analysis.Interactive (1)
TabularDataResourceExtensions.cs (1)
31return dictionary[fieldName];
Microsoft.DotNet.Open.Api.Tools.Tests (1)
OpenApiTestBase.cs (1)
137var result = _results[url];
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Modeler\ServiceClientModelFactory.cs (2)
197paginated = operation.Extensions["x-ms-paginated"] as PaginatedOpenApiExtension; 244TypeReference type = ResolveType(body.Content["application/json"].Schema);
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatMessageTests.cs (1)
316Assert.Equal("argument", functionCallContent.Arguments["parameter"]?.ToString());
Functions\AIFunctionArgumentsTests.cs (9)
122Assert.Equal("value1", args["key1"]); 123Assert.Equal("value2", args["key2"]); 141Assert.Equal("value3", args["key3"]); 146Assert.Equal("value4", args["key4"]); 151Assert.Equal("value2", args["key2"]); 152Assert.Equal("value3", args["key3"]); 153Assert.Equal("value4", args["key4"]); 161Assert.Equal("value1", args["key1"]); 166Assert.Equal("value2", args["key2"]);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
270Assert.Equal(metric.Context[key], deserializedMetric.Context[key], ContextComparer.Instance); 286Assert.Equal(metric.Metadata[key], deserializedMetric.Metadata[key]);
Microsoft.Extensions.ApiDescription.Client.Tests (11)
GetCurrentOpenApiReferenceTest.cs (1)
51orderedMetadata.Add(key, metadata[key]);
GetOpenApiReferenceMetadataTest.cs (9)
65orderedMetadata.Add(key, metadata[key]); 125orderedMetadata.Add(key, metadata[key]); 185orderedMetadata.Add(key, metadata[key]); 245orderedMetadata.Add(key, metadata[key]); 398orderedMetadata.Add(key, metadata[key]); 462orderedMetadata.Add(key, metadata[key]); 561orderedMetadata.Add(key, metadata[key]); 575orderedMetadata.Add(key, metadata[key]); 588orderedMetadata.Add(key, metadata[key]);
MetadataSerializerTest.cs (1)
133orderedMetadata.Add(key, metadata[key]);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (28)
Windows\Disk\WindowsDiskIoRatePerfCounterTests.cs (20)
43Assert.Equal(0, ratePerfCounters.TotalCountDict["C:"]); 44Assert.Equal(0, ratePerfCounters.TotalCountDict["D:"]); 48Assert.Equal(60, ratePerfCounters.TotalCountDict["C:"]); // 1 * 60 = 60 49Assert.Equal(120, ratePerfCounters.TotalCountDict["D:"]); // 2 * 60 = 120 53Assert.Equal(150, ratePerfCounters.TotalCountDict["C:"]); // 60 + 1.5 * 60 = 150 54Assert.Equal(270, ratePerfCounters.TotalCountDict["D:"]); // 120 + 2.5 * 60 = 270 58Assert.Equal(270, ratePerfCounters.TotalCountDict["C:"]); // 150 + 2 * 60 = 270 59Assert.Equal(450, ratePerfCounters.TotalCountDict["D:"]); // 270 + 3 * 60 = 450 63Assert.Equal(420, ratePerfCounters.TotalCountDict["C:"]); // 270 + 2.5 * 60 = 420 64Assert.Equal(660, ratePerfCounters.TotalCountDict["D:"]); // 450 + 3.5 * 60 = 660 89Assert.Equal(0, ratePerfCounters.TotalCountDict["C:"]); 90Assert.Equal(0, ratePerfCounters.TotalCountDict["D:"]); 94Assert.Equal(3000, ratePerfCounters.TotalCountDict["C:"]); // 100 * 30 = 3000 95Assert.Equal(60000, ratePerfCounters.TotalCountDict["D:"]); // 2000 * 30 = 60000 99Assert.Equal(7515, ratePerfCounters.TotalCountDict["C:"]); // 3000 + 150.5 * 30 = 7515 100Assert.Equal(120750, ratePerfCounters.TotalCountDict["D:"]); // 60000 + 2.5 * 30 = 120750 104Assert.Equal(8115, ratePerfCounters.TotalCountDict["C:"]); // 7515 + 20 * 30 = 8115 105Assert.Equal(120750, ratePerfCounters.TotalCountDict["D:"]); // 120750 + 0 * 30 = 120750 109Assert.Equal(8209, ratePerfCounters.TotalCountDict["C:"]); // 8115 + 3.1416 * 30 = 8209 110Assert.Equal(120831, ratePerfCounters.TotalCountDict["D:"]); // 120750 + 3.5 * 30 = 120831
Windows\Disk\WindowsDiskIoTimePerfCounterTests.cs (8)
43Assert.Equal(0, perfCounters.TotalSeconds["C:"]); 44Assert.Equal(0, perfCounters.TotalSeconds["D:"]); 48Assert.Equal(0, perfCounters.TotalSeconds["C:"], precision: 2); // (100-100)% * 60 = 0 49Assert.Equal(0.06, perfCounters.TotalSeconds["D:"], precision: 2); // (100-99.9)% * 60 = 0.06 53Assert.Equal(60, perfCounters.TotalSeconds["C:"], precision: 2); // 0 + (100-0)% * 60 = 60 54Assert.Equal(6.78, perfCounters.TotalSeconds["D:"], precision: 2); // 0.06 + (100-88.8)% * 60 = 6.78 58Assert.Equal(60.3, perfCounters.TotalSeconds["C:"], precision: 2); // 60 + (100-99.5)% * 60 = 60.3 59Assert.Equal(26.82, perfCounters.TotalSeconds["D:"], precision: 2); // 6.78 + (100-66.6)% * 60 = 6.78 + 20.04 = 26.82
Microsoft.Extensions.Http.Resilience.Tests (2)
Resilience\RequestMessageSnapshotTests.cs (2)
86cloned.Properties["A"].Should().Be("A"); 87cloned.Properties["B"].Should().Be("B");
Microsoft.ML.AutoML (5)
EstimatorExtensions\EstimatorExtensionCatalog.cs (1)
51var extType = _namesToExtensionTypes[estimatorName];
TrainerExtensions\TrainerExtensionCatalog.cs (2)
54return _extensionTypesToTrainerNames[trainerExtension.GetType()]; 59var trainerExtensionType = _trainerNamesToExtensionTypes[trainerName];
TrainerExtensions\TrainerExtensionUtil.cs (2)
212columnInfo.LabelColumnName = props[LabelColumn] as string; 230var treeProps = ((CustomProperty)props[LightGbmBoosterPropName]).Properties;
Microsoft.ML.CodeGenerator (6)
CodeGenerator\CSharp\CodeGenerator.cs (1)
108currentNode = (PipelineNode)currentNode.Properties["BinaryTrainer"];
CodeGenerator\CSharp\TrainerGeneratorBase.cs (1)
114_arguments.Add(_hasAdvancedSettings ? kv.Key : NamedParameters[kv.Key], value);
CodeGenerator\CSharp\TrainerGenerators.cs (2)
566var trainerGenerator = TrainerGeneratorFactory.GetInstance((PipelineNode)_node.Properties["BinaryTrainer"]); 572sb.Append(_node.Properties["LabelColumnName"]);
Utils.cs (2)
279dataKind = columnMapping[column.Name].ColumnType; 280columnName = columnMapping[column.Name].ColumnName;
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
70var latestVersion = latestPackageVersions[packageName];
Microsoft.ML.OnnxTransformer (6)
OnnxUtils.cs (6)
317if (!CheckOnnxShapeCompatibility(shapeDictionary[name].ToList(), meta.Dimensions.ToList())) 318throw Contracts.ExceptParamValue(shapeDictionary[name], nameof(shapeDictionary), 319"The specified shape " + string.Join(",", shapeDictionary[name]) + 326if (shapeDictionary[name].All(value => value > 0)) 327dataViewType = new VectorDataViewType(vectorType.ItemType, shapeDictionary[name]); 332info = new OnnxVariableInfo(name, shapeDictionary[name].ToList(), meta.ElementType, dataViewType, caster);
Microsoft.ML.OnnxTransformerTest (7)
OnnxTransformTests.cs (7)
764Assert.Equal(dataPoints[i].Input[0], dictionary["A"]); 765Assert.Equal(dataPoints[i].Input[1], dictionary["B"]); 766Assert.Equal(dataPoints[i].Input[2], dictionary["C"]); 779Assert.Equal(dataPoints[i].Input[0], dictionary["A"]); 780Assert.Equal(dataPoints[i].Input[1], dictionary["B"]); 781Assert.Equal(dataPoints[i].Input[2], dictionary["C"]); 870Assert.Equal(pair.Value, transformedDataPoints[i].Output[pair.Key + 1]);
Microsoft.ML.Tests (1)
OnnxSequenceTypeWithAttributesTest.cs (1)
69Assert.Equal(onnxOut[keys[i]], input.Input[i]);
Microsoft.VisualStudio.LanguageServices (2)
Options\ExportVisualStudioStorageReadFallbackAttribute.cs (1)
36=> ConfigName = (string)data[nameof(ExportVisualStudioStorageReadFallbackAttribute.ConfigName)];
ProjectSystem\VisualStudioProjectFactory.cs (1)
115? (string)solutionContext.SharedProperties[SolutionSessionIdPropertyName]
Mvc.Api.Analyzers.Test (2)
ActualApiResponseMetadataFactoryTest.cs (2)
332AnalyzerAssert.DiagnosticLocation(testSource.MarkerLocations["MM1"], metadata.ReturnOperation.Syntax.GetLocation()); 337AnalyzerAssert.DiagnosticLocation(testSource.MarkerLocations["MM2"], metadata.ReturnOperation.Syntax.GetLocation());
PresentationCore (4)
System\Windows\Media\CultureSpecificStringDictionary.cs (2)
212get { return _innerDictionary[key]; } 247return _innerDictionary[language];
System\Windows\Media\GlyphsSerializer.cs (2)
175double fontAdvance = _sideways ? _glyphTypeface.AdvanceHeights[fontIndex] : _glyphTypeface.AdvanceWidths[fontIndex];
PresentationFramework (11)
MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (1)
187string id = locatorPart.NameValuePairs[ValueAttributeName];
MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (1)
176string pageNumberString = locatorPart.NameValuePairs[ValueAttributeName];
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
301string stringCount = locatorPart.NameValuePairs["Count"]; 495string segmentValue = locatorPart.NameValuePairs[TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)];
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
199string stringCount = locatorPart.NameValuePairs[CountAttribute]; 355string stringCount = locatorPart.NameValuePairs[CountAttribute]; 436ReadOnlySpan<char> segmentString = locatorPart.NameValuePairs[SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)].AsSpan();
System\Windows\Documents\DocumentSequence.cs (1)
344GetPageAsyncRequest asyncRequest = _asyncOps[userState];
System\Windows\Documents\FixedSOMPageConstructor.cs (1)
443double advFont = typeFace.AdvanceWidths[glyphRun.GlyphIndices[glyphIndex]] * glyphRun.FontRenderingEmSize;
System\Windows\Documents\Glyphs.cs (2)
441double advance = sideways ? glyphTypeface.AdvanceHeights[glyphIndex] : glyphTypeface.AdvanceWidths[glyphIndex];
PresentationUI (14)
MS\Internal\Documents\DigitalSignatureProvider.cs (1)
449signatureDefinitionMap[xpsDigitalSignature.Id.Value];
MS\Internal\Documents\DocumentSignatureManager.cs (5)
700DigitalSignature digSig = _digSigSigResources[signatureResources.Value]; 728DigitalSignature digSig = _digSigSigResources[signatureResources]; 762DigitalSignature digSig = _digSigSigResources[signatureResources]; 803DigitalSignature digSig = _digSigSigResources[signatureResources]; 1098certificatePriorityStatus = _certificateStatusTable[digitalSignature.Certificate];
MS\Internal\Documents\RightsManagementManager.cs (3)
557RightsManagementUser user = _userMap[defaultAccount]; 572RightsManagementUser user = _userMap[accountName]; 1106RightsManagementLicense existingLicense = allRights[newLicense.LicensedUser];
MS\Internal\Documents\RightsManagementProvider.cs (4)
519grantDictionary[user].Add(grant); 542grantDictionary[owner].Add(ownerGrant); 552ConvertGrantList(user, grantDictionary[user]); 834_rmUseLicense = _rightsDictionary[_user];
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
231RightsManagementLicense license = grantDictionary[user];
Roslyn.Diagnostics.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];
Roslyn.VisualStudio.Next.UnitTests (23)
Services\ServiceHubServicesTests.cs (23)
1627Assert.Equal(true, properties["vs.ide.vbcs.copilot.analyzechange.succeeded"]); 1628Assert.Equal(true, properties["vs.ide.vbcs.copilot.analyzechange.accepted"]); 1629Assert.Equal("TestProposalId", properties["vs.ide.vbcs.copilot.analyzechange.proposalid"]); 1631Assert.Equal(44, properties["vs.ide.vbcs.copilot.analyzechange.olddocumentlength"]); 1632Assert.Equal(78, properties["vs.ide.vbcs.copilot.analyzechange.newdocumentlength"]); 1633Assert.Equal(34, properties["vs.ide.vbcs.copilot.analyzechange.textchangedelta"]); 1635Assert.Equal(1, properties["vs.ide.vbcs.copilot.analyzechange.projectdocumentcount"]); 1636Assert.Equal(0, properties["vs.ide.vbcs.copilot.analyzechange.projectsourcegenerateddocumentcount"]); 1637Assert.Equal(1, properties["vs.ide.vbcs.copilot.analyzechange.projectconecount"]); 1641Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersyntax_idtocount"]); 1642Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersyntax_categorytocount"]); 1643Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersyntax_severitytocount"]); 1645Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersemantic_idtocount"]); 1646Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersemantic_categorytocount"]); 1647Assert.Equal("", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_analyzersemantic_severitytocount"]); 1650Assert.Equal("CS1002_1,CS1513_1,CS1525_3,CS8300_1", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersyntax_idtocount"]); 1651Assert.Equal("Compiler_6", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersyntax_categorytocount"]); 1652Assert.Equal("Error_6", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersyntax_severitytocount"]); 1654Assert.Equal("CS0103_1", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersemantic_idtocount"]); 1655Assert.Equal("Compiler_1", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersemantic_categorytocount"]); 1656Assert.Equal("Error_1", properties["vs.ide.vbcs.copilot.analyzechange.diagnosticanalysis_compilersemantic_severitytocount"]); 1658Assert.Equal("CS0103_1,CS8300_1", properties["vs.ide.vbcs.copilot.analyzechange.codefixanalysis_diagnosticidtocount"]); 1660properties["vs.ide.vbcs.copilot.analyzechange.codefixanalysis_diagnosticidtoprovidername"]);
ServerComparison.TestSites (1)
OneTransformPerRequest.cs (1)
24if (context.Items["Transformed"] != null)
SocialWeather (4)
PersistentConnectionLifeTimeManager.cs (3)
46var formatter = _formatterResolver.GetFormatter<T>((string)connection.Items["format"]); 71var groups = (HashSet<string>)connection.Items["groups"]; 80var groups = (HashSet<string>)connection.Items["groups"];
SocialWeatherConnectionHandler.cs (1)
33(string)connection.Items["format"]);
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\CompositionServices.cs (1)
325var list = dictionary[key] as MetadataList;
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
67return ActualMetadata[key];
System.Composition.TypedParts (2)
System\Composition\Hosting\SinglePartExportDescriptorProvider.cs (1)
30var subsetOfConstraints = contract.MetadataConstraints.Where(c => Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => Metadata[c.Key]);
System\Composition\TypedParts\TypedPartExportDescriptorProvider.cs (1)
89var subsettedConstraints = contract.MetadataConstraints.Where(c => export.Metadata.ContainsKey(c.Key)).ToDictionary(c => c.Key, c => export.Metadata[c.Key]);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (2)
53public TValue this[TKey key] => m_dictionary[key]; 67get => m_dictionary[key];
System.Private.Windows.Core (6)
System\Private\Windows\BinaryFormat\Deserializer\ArrayUpdater.cs (2)
19object value = objects[ValueId]; 20Array array = (Array)objects[ObjectId];
System\Private\Windows\BinaryFormat\Deserializer\FieldValueUpdater.cs (2)
20object newValue = objects[ValueId]; 21_field.SetValue(objects[ObjectId], newValue);
System\Private\Windows\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
31object @object = objects[ObjectId];
System\Private\Windows\BinaryFormat\Deserializer\SerializationInfoValueUpdater.cs (1)
23object newValue = objects[ValueId];
System.Resources.Extensions (6)
System\Resources\Extensions\BinaryFormat\Deserializer\ArrayUpdater.cs (2)
20object value = objects[ValueId]; 21Array array = (Array)objects[ObjectId];
System\Resources\Extensions\BinaryFormat\Deserializer\FieldValueUpdater.cs (2)
21object newValue = objects[ValueId]; 22_field.SetValue(objects[ObjectId], newValue);
System\Resources\Extensions\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
33object @object = objects[ObjectId];
System\Resources\Extensions\BinaryFormat\Deserializer\SerializationInfoValueUpdater.cs (1)
23object newValue = objects[ValueId];
System.Xaml (1)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
444dict[key] = new ReadOnlyCollection<string>(dict[key]);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
77arguments = $"run --no-build --urls \"{environmentVariables["ASPNETCORE_URLS"]}\"";
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
77arguments = $"run --no-build --urls \"{environmentVariables["ASPNETCORE_URLS"]}\"";
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
77arguments = $"run --no-build --urls \"{environmentVariables["ASPNETCORE_URLS"]}\"";
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
77arguments = $"run --no-build --urls \"{environmentVariables["ASPNETCORE_URLS"]}\"";
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
77arguments = $"run --no-build --urls \"{environmentVariables["ASPNETCORE_URLS"]}\"";
Text.Analyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageServiceMetadata.cs (2)
15public string Language { get; } = (string)data[nameof(ExportLanguageServiceAttribute.Language)]; 16public string ServiceType { get; } = (string)data[nameof(ExportLanguageServiceAttribute.ServiceType)];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\WorkspaceServiceMetadata.cs (2)
14public string ServiceType { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.ServiceType)]; 15public string Layer { get; } = (string)data[nameof(ExportWorkspaceServiceAttribute.Layer)];