137 implementations of
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
56public object this[string name]
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
263public object? this[string key]
Microsoft.AspNetCore.Components.Endpoints (1)
TempData\TempData.cs (1)
37public 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.Http (4)
HeaderDictionary.cs (1)
100StringValues IDictionary<string, StringValues>.this[string key]
Internal\ItemsDictionary.cs (1)
28object? IDictionary<object, object?>.this[object key]
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
src\aspnetcore\src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
97public 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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public 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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
87public TValue this[TKey key]
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
90StringValues IDictionary<string, StringValues>.this[string key]
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
44StringValues IDictionary<string, StringValues>.this[string key]
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
90StringValues IDictionary<string, StringValues>.this[string key]
src\aspnetcore\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.Build (12)
Collections\ArrayDictionary.cs (1)
38public TValue this[TKey key]
Collections\CopyOnWritePropertyDictionary.cs (1)
93public T this[string name]
Collections\PropertyDictionary.cs (1)
169T IDictionary<string, T>.this[string name]
Collections\ReadOnlyConvertingDictionary.cs (1)
70public N this[K key]
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (1)
293T IDictionary<string, T>.this[string name]
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (1)
33public T this[string key]
Instance\ImmutableProjectCollections\ImmutableGlobalPropertiesCollectionConverter.cs (1)
44public ProjectPropertyInstance this[string key]
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\5057ed6cf5d6323b\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\8b3a4ac2431f87ea\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.Build.Framework (2)
Collections\CopyOnWriteDictionary.cs (1)
178public V this[string key]
Collections\ReadOnlyEmptyDictionary.cs (1)
155public V this[K key]
Microsoft.CodeAnalysis (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
39public TValue this[TKey key]
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.NetAnalyzers (1)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DictionaryAnalysisData.cs (1)
38public TValue this[TKey key]
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Dictionary.cs (1)
71public TValue this[TKey key]
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\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)
61public TValue this[string key]
Functions\AIFunctionArguments.cs (1)
98public object? this[string key]
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.BuildMetadata.Unit.Tests (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]
Microsoft.TemplateEngine.Core (1)
VariableCollection.cs (1)
68public object this[string 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\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2.cs (1)
122TValue IDictionary<TKey, TValue>.this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder.cs (1)
63public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueBuilder.cs (1)
84public TValue this[TKey key]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (1)
244public TValue this[TKey key]
src\roslyn\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)
359public 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.Immutable (5)
System\Collections\Frozen\FrozenDictionary.cs (1)
578TValue IDictionary<TKey, TValue>.this[TKey key]
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
393public 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)
172public 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.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
17public string? this[string key]
System.Linq.Expressions (1)
System\Dynamic\ExpandoObject.cs (1)
621object? IDictionary<string, object?>.this[string key]
System.Net.Http (1)
System\Net\Http\HttpRequestOptions.cs (1)
22object? IDictionary<string, object?>.this[string key]
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1065public TValue this[TKey key]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (1)
228public TValue this[TKey key]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (1)
65TValue IDictionary<TKey, TValue>.this[TKey key]
src\runtime\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)
System\ServiceModel\Channels\MessageProperties.cs (1)
60public object this[string name]
System.Speech (1)
Result\SemanticValue.cs (1)
91public SemanticValue this[string key]
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]
799 writes to
aspire (15)
Layout\LayoutProcessRunner.cs (1)
98process.StartInfo.Environment[key] = value;
Projects\DotNetBasedAppHostServerProject.cs (6)
495startInfo.Environment["REMOTE_APP_HOST_SOCKET_PATH"] = _socketPath; 496startInfo.Environment["REMOTE_APP_HOST_PID"] = hostPid.ToString(System.Globalization.CultureInfo.InvariantCulture); 497startInfo.Environment[KnownConfigNames.CliProcessId] = hostPid.ToString(System.Globalization.CultureInfo.InvariantCulture); 501startInfo.Environment["ASPNETCORE_ENVIRONMENT"] = "Development"; 507startInfo.Environment[key] = value; 513startInfo.Environment["Logging__LogLevel__Default"] = "Debug";
Projects\PrebuiltAppHostServer.cs (8)
436startInfo.Environment["REMOTE_APP_HOST_SOCKET_PATH"] = _socketPath; 437startInfo.Environment["REMOTE_APP_HOST_PID"] = hostPid.ToString(System.Globalization.CultureInfo.InvariantCulture); 438startInfo.Environment[KnownConfigNames.CliProcessId] = hostPid.ToString(System.Globalization.CultureInfo.InvariantCulture); 444startInfo.Environment["ASPIRE_INTEGRATION_LIBS_PATH"] = _integrationLibsPath; 455startInfo.Environment[BundleDiscovery.DcpPathEnvVar] = dcpPath; 462startInfo.Environment[BundleDiscovery.DashboardPathEnvVar] = managedPath; 470startInfo.Environment[key] = value; 476startInfo.Environment["Logging__LogLevel__Default"] = "Debug";
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.Files.DataLake (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.Dashboard (1)
Model\GenAI\GenAISchemaHelpers.cs (1)
38schema.Properties[prop.Key] = parsedSchema;
Aspire.EndToEnd.Tests (20)
IntegrationServicesFixture.cs (3)
44BuildEnvironment.EnvVars["TestsRunningOutsideOfRepo"] = "true"; 45BuildEnvironment.EnvVars["RestoreAdditionalProjectSources"] = BuildEnvironment.BuiltNuGetsPath; 46BuildEnvironment.EnvVars["SkipAspireWorkloadManifest"] = "true";
tests\Shared\TemplatesTesting\AspireProject.cs (1)
194AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\BuildEnvironment.cs (13)
166EnvVars["DOTNET_ROOT"] = sdkForTemplatePath; 167EnvVars["DOTNET_INSTALL_DIR"] = sdkForTemplatePath; 168EnvVars["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 169EnvVars["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 170EnvVars["PATH"] = $"{sdkForTemplatePath}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}"; 172EnvVars["NUGET_PACKAGES"] = NuGetPackagesPath!; 173EnvVars["BUILT_NUGETS_PATH"] = BuiltNuGetsPath; 174EnvVars["TreatWarningsAsErrors"] = "true"; 177EnvVars["DEBUG_SESSION_PORT"] = ""; 180EnvVars["_MSBUILDTLENABLED"] = "0"; 181EnvVars["SkipAspireWorkloadManifest"] = "true"; 186EnvVars["ASPIRE_DEVELOPER_CERTIFICATE_DEFAULT_TRUST"] = "false"; 187EnvVars["ASPIRE_DEVELOPER_CERTIFICATE_DEFAULT_HTTPS_TERMINATION"] = "false";
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 (12)
Ats\CollectionExports.cs (1)
45=> dict[key] = value;
Dcp\DcpHost.cs (4)
283dcpProcessSpec.EnvironmentVariables[key] = val; 290dcpProcessSpec.EnvironmentVariables["DCP_DIAGNOSTICS_LOG_FOLDER"] = _dcpOptions.DiagnosticsLogFolder; 296dcpProcessSpec.EnvironmentVariables["DCP_DIAGNOSTICS_LOG_LEVEL"] = _dcpOptions.DiagnosticsLogLevel; 302dcpProcessSpec.EnvironmentVariables["DCP_PRESERVE_EXECUTABLE_LOGS"] = "1";
Dcp\Model\ExecutableReplicaSet.cs (1)
31Annotations[annotationName] = value;
Dcp\Model\ModelCommon.cs (3)
55Metadata.Annotations[annotationName] = value; 75Metadata.Annotations[annotationName] = JsonSerializer.Serialize<List<TValue>>(list.ToList()); 136annotations[annotationName] = newAnnotationVal;
Dcp\Process\ProcessUtil.cs (1)
46process.StartInfo.Environment[key] = value;
Publishing\ContainerRuntimeBase.cs (1)
196spec.EnvironmentVariables[key] = value;
Publishing\DockerContainerRuntime.cs (1)
116spec.EnvironmentVariables[buildSecret.Key.ToUpperInvariant()] = buildSecret.Value.Value;
Aspire.Hosting.Azure (3)
AzureProvisioningResource.cs (2)
187provisionableResource.ProvisionableProperties["name"] = existingResourceName; 222provisionableResource.ProvisionableProperties["scope"] = value;
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
46process.StartInfo.Environment[key] = value;
Aspire.Hosting.Azure.AppContainers (2)
ContainerAppContext.cs (2)
122configuration.ProvisionableProperties["AutoConfigureDataProtection"] = value; 132containerApp.ProvisionableProperties["Kind"] = value;
Aspire.Hosting.Azure.CosmosDB (12)
AzureCosmosDBContainerResource.cs (4)
126target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__DatabaseName"] = Parent.DatabaseName; 127target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__DatabaseName"] = Parent.DatabaseName; 128target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__ContainerName"] = ContainerName; 129target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__ContainerName"] = ContainerName;
AzureCosmosDBDatabaseResource.cs (2)
52target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__DatabaseName"] = DatabaseName; 53target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__DatabaseName"] = DatabaseName;
AzureCosmosDBResource.cs (6)
148target[connectionName] = ConnectionStringExpression; 151target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__ConnectionString"] = connectionStringExpression; 152target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__ConnectionString"] = connectionStringExpression; 159target[$"{connectionName}__accountEndpoint"] = ConnectionStringExpression; 161target[$"Aspire__Microsoft__EntityFrameworkCore__Cosmos__{connectionName}__AccountEndpoint"] = ConnectionStringExpression; 162target[$"Aspire__Microsoft__Azure__Cosmos__{connectionName}__AccountEndpoint"] = ConnectionStringExpression;
Aspire.Hosting.Azure.EventHubs (6)
AzureEventHubsResource.cs (6)
138target[connectionName] = ConnectionStringExpression; 142target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__ConnectionString"] = ConnectionStringExpression; 148target[$"{connectionName}__fullyQualifiedNamespace"] = EventHubsEndpoint; 152target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__FullyQualifiedNamespace"] = EventHubsEndpoint; 161target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__EventHubName"] = eventHub; 165target[$"{ConnectionKeyPrefix}__{clientName}__{connectionName}__ConsumerGroup"] = consumerGroup;
Aspire.Hosting.Azure.ServiceBus (6)
AzureServiceBusResource.cs (6)
158target[$"{connectionName}"] = ConnectionStringExpression; 160target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__ConnectionString"] = GetConnectionString(queueOrTopicName, subscriptionName); 165target[$"{connectionName}__fullyQualifiedNamespace"] = ServiceBusEndpoint; 167target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__FullyQualifiedNamespace"] = ServiceBusEndpoint; 170target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__QueueOrTopicName"] = queueOrTopicName; 174target[$"Aspire__Azure__Messaging__ServiceBus__{connectionName}__SubscriptionName"] = subscriptionName;
Aspire.Hosting.Azure.Storage (28)
AzureBlobStorageResource.cs (5)
68target[connectionName] = connectionString; 70target[$"{AzureStorageResource.BlobsConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 77target[$"{connectionName}__blobServiceUri"] = Parent.BlobEndpoint; 78target[$"{connectionName}__queueServiceUri"] = Parent.QueueEndpoint; 83target[$"{AzureStorageResource.BlobsConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.BlobEndpoint;
AzureDataLakeStorageResource.cs (3)
67target[$"{connectionName}__dataLakeServiceUri"] = Parent.DataLakeEndpoint; 68target[$"{connectionName}__queueServiceUri"] = Parent.QueueEndpoint; 69target[$"{AzureStorageResource.DataLakeConnectionKeyPrefix}__{connectionName}__ServiceUri"] =
AzureQueueStorageResource.cs (4)
68target[connectionName] = connectionString; 69target[$"{AzureStorageResource.QueuesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 74target[$"{connectionName}__queueServiceUri"] = Parent.QueueEndpoint; 76target[$"{AzureStorageResource.QueuesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.QueueEndpoint;
AzureStorageResource.cs (12)
145target[connectionName] = connectionString; 147target[$"{BlobsConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 148target[$"{QueuesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 149target[$"{TablesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 154target[$"{connectionName}__blobServiceUri"] = BlobEndpoint; 155target[$"{connectionName}__queueServiceUri"] = QueueEndpoint; 156target[$"{connectionName}__tableServiceUri"] = TableEndpoint; 157target[$"{connectionName}__dataLakeServiceUri"] = DataLakeEndpoint; 159target[$"{BlobsConnectionKeyPrefix}__{connectionName}__ServiceUri"] = BlobEndpoint; 160target[$"{QueuesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = QueueEndpoint; 161target[$"{TablesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = TableEndpoint; 162target[$"{DataLakeConnectionKeyPrefix}__{connectionName}__ServiceUri"] = DataLakeEndpoint;
AzureTableStorageResource.cs (4)
47target[connectionName] = connectionString; 48target[$"{AzureStorageResource.TablesConnectionKeyPrefix}__{connectionName}__ConnectionString"] = connectionString; 53target[$"{connectionName}__tableServiceUri"] = Parent.TableEndpoint; 55target[$"{AzureStorageResource.TablesConnectionKeyPrefix}__{connectionName}__ServiceUri"] = Parent.TableEndpoint; // Updated for consistency
Aspire.Hosting.Docker (1)
src\Aspire.Hosting\Dcp\Process\ProcessUtil.cs (1)
46process.StartInfo.Environment[key] = value;
Aspire.Hosting.Foundry (4)
HostedAgent\AzurePromptAgentResource.cs (1)
128options.Metadata[kvp.Key] = kvp.Value;
HostedAgent\HostedAgentConfiguration.cs (2)
134def.EnvironmentVariables[envVar.Key] = envVar.Value; 142options.Metadata[kvp.Key] = kvp.Value;
HostedAgent\PromptAgentConfiguration.cs (1)
56options.Metadata[kvp.Key] = kvp.Value;
Aspire.Hosting.Foundry.Tests (1)
HostedAgentConfigurationTests.cs (1)
80config.EnvironmentVariables["KEY"] = "VALUE";
Aspire.Hosting.Tests (2)
AppHostSmokeTests.cs (2)
32remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__CliPath"] = dcpOptions.CliPath; 33remoteInvokeOptions.StartInfo.Environment[$"DcpPublisher__DashboardPath"] = dcpOptions.DashboardPath;
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.Microsoft.Extensions.Configuration.AzureAppConfiguration (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.MongoDB.EntityFrameworkCore (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 (18)
BuildAndRunTemplateTests.cs (1)
208testSpecificBuildEnvironment.EnvVars[KnownConfigNames.AllowUnsecuredTransport] = "true";
tests\Shared\TemplatesTesting\AspireProject.cs (1)
194AppHostProcess.StartInfo.Environment[item.Key] = item.Value;
tests\Shared\TemplatesTesting\BuildEnvironment.cs (13)
166EnvVars["DOTNET_ROOT"] = sdkForTemplatePath; 167EnvVars["DOTNET_INSTALL_DIR"] = sdkForTemplatePath; 168EnvVars["DOTNET_MULTILEVEL_LOOKUP"] = "0"; 169EnvVars["DOTNET_SKIP_FIRST_TIME_EXPERIENCE"] = "1"; 170EnvVars["PATH"] = $"{sdkForTemplatePath}{Path.PathSeparator}{Environment.GetEnvironmentVariable("PATH")}"; 172EnvVars["NUGET_PACKAGES"] = NuGetPackagesPath!; 173EnvVars["BUILT_NUGETS_PATH"] = BuiltNuGetsPath; 174EnvVars["TreatWarningsAsErrors"] = "true"; 177EnvVars["DEBUG_SESSION_PORT"] = ""; 180EnvVars["_MSBUILDTLENABLED"] = "0"; 181EnvVars["SkipAspireWorkloadManifest"] = "true"; 186EnvVars["ASPIRE_DEVELOPER_CERTIFICATE_DEFAULT_TRUST"] = "false"; 187EnvVars["ASPIRE_DEVELOPER_CERTIFICATE_DEFAULT_HTTPS_TERMINATION"] = "false";
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;
dotnet (11)
Commands\New\BuiltInTemplatePackageProvider.cs (1)
105bestVersionsByBucket[coreAppVersion] = (dirInfo.Key, dirInfo.Value);
Commands\Run\VirtualProjectBuildingCommand.cs (4)
411globalProperties["MSBuildRestoreSessionId"] = sessionId; 412globalProperties["MSBuildIsRestoring"] = bool.TrueString; 415globalProperties[key] = value; 425globalProperties[key] = value;
Commands\Test\MTP\TestApplication.cs (4)
212processStartInfo.Environment[entry.Key] = entry.Value; 227processStartInfo.Environment[name] = value; 232processStartInfo.Environment[Module.DotnetRootArchVariableName] = Path.GetDirectoryName(new Muxer().MuxerPath); 235processStartInfo.Environment["DOTNET_CLI_TEST_COMMAND_WORKING_DIRECTORY"] = Directory.GetCurrentDirectory();
ToolPackage\ToolPackageDownloader.cs (2)
253newItem.Properties["locale"] = (string)locale; 258newItem.Properties["related"] = (string)related;
dotnet-svcutil-lib (38)
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 (2)
39compilerInfo._providerOptions[RedistVersionInfo.NameTag] = RedistVersionInfo.DefaultVersion; 50compilerInfo._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-jwts (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
231psi.Environment["MSBUILDDISABLENODEREUSE"] = "1";
dotnet-user-secrets (2)
Internal\SecretsStore.cs (1)
60public void Set(string key, string value) => _secrets[key] = value;
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
231psi.Environment["MSBUILDDISABLENODEREUSE"] = "1";
FoundryAgentEnterprise.AppHost (1)
Program.cs (1)
32opts.Metadata["managed-by"] = "aspire-foundry";
GenerateDocumentationAndConfigFiles (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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);
Infrastructure.Tests (2)
PowerShellScripts\PowerShellCommand.cs (1)
235psi.Environment[item.Key] = item.Value;
WorkflowScripts\NodeCommand.cs (1)
211psi.Environment[key] = value;
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonObject.cs (1)
47set => _properties[key] = value;
Microsoft.Arcade.Common (1)
Command.cs (1)
121_process.StartInfo.Environment[name] = value;
Microsoft.AspNetCore (12)
Internal\CsrfProtectionMiddleware.cs (1)
49context.Items[MiddlewareInvokedKeys.CsrfProtection] = MiddlewareInvokedKeys.Sentinel;
WebApplication.cs (1)
38Properties[GlobalEndpointRouteBuilderKey] = this;
WebApplicationBuilder.cs (10)
448_builtApplication.Properties[UseRoutingKey] = app.Properties[UseRoutingKey]; 453app.Properties[EndpointRouteBuilderKey] = localRouteBuilder; 467_builtApplication.Properties[AuthenticationMiddlewareSetKey] = true; 473_builtApplication.Properties[AuthorizationMiddlewareSetKey] = true; 482_builtApplication.Properties[CsrfProtectionMiddlewareSetKey] = true; 523_builtApplication.Properties[MiddlewareInvokedKeys.PostRoutingPipeline] = (Func<RequestDelegate, RequestDelegate>)postRoutingPipeline.CreateMiddleware; 533_builtApplication.Properties[MiddlewareInvokedKeys.PostRoutingPipeline] = (Func<RequestDelegate, RequestDelegate>)csrfPostRoutingPipeline.CreateMiddleware; 552app.Properties[item.Key] = item.Value; 561app.Properties[EndpointRouteBuilderKey] = priorRouteBuilder; 612_builtApplication.Properties[MiddlewareDescriptionsKey] = destinationDescriptions;
Microsoft.AspNetCore.Antiforgery (3)
AntiforgeryApplicationBuilderExtensions.cs (1)
44builder.Properties[AntiforgeryMiddlewareSetKey] = true;
AntiforgeryMiddleware.cs (1)
19context.Items[MiddlewareInvokedKeys.Antiforgery] = MiddlewareInvokedKeys.Sentinel;
src\aspnetcore\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.Certificate (1)
CertificateAuthenticationHandler.cs (1)
72Context.Items[CertificateSchemeCacheKeyItem] = Scheme.Name;
Microsoft.AspNetCore.Authentication.Cookies (1)
CookieAuthenticationHandler.cs (1)
145newProperties.Items[item.Key] = item.Value;
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationSchemeProvider.cs (1)
154_schemes[scheme.Name] = scheme;
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)
270properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 479properties.Items[OpenIdConnectDefaults.UserstatePropertiesKey] = message.State; 975properties.Items[OpenIdConnectSessionProperties.SessionState] = message.SessionState; 980properties.Items[OpenIdConnectSessionProperties.CheckSessionIFrame] = _configuration.CheckSessionIframe;
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)
103context.Items[AuthorizationMiddlewareInvokedWithEndpointKey] = AuthorizationMiddlewareWithEndpointInvokedValue;
Microsoft.AspNetCore.Components (2)
src\aspnetcore\src\Http\Routing\src\RouteOptions.cs (2)
154_constraintTypeMap[token] = typeof(T); 170_constraintTypeMap[token] = type;
Microsoft.AspNetCore.Components.Endpoints (13)
BrowserConfiguration\BrowserOptionsHttpContextExtensions.cs (1)
30context.Items[Key] = config;
BrowserConfiguration\ConfigureBrowser.cs (2)
57target.WebAssembly.EnvironmentVariables[kvp.Key] = kvp.Value; 66target.Server.Extensions[kvp.Key] = kvp.Value;
Builder\RazorComponentEndpointDataSource.cs (1)
149builder.Properties[ResourceCollectionKey] = resourceCollection;
CacheView\CacheViewService.cs (1)
365httpContext.Items[_inFlightResolutionsItemKey] = resolutions;
Rendering\EndpointHtmlRenderer.Prerendering.cs (1)
280httpContext.Items[ComponentSequenceKey] = result;
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
173httpContext.Items[InvokedRenderModesKey] = new InvokedRenderModes(currentInvocation);
SessionEstablishmentHelper.cs (3)
27context.Items[LoggedSessionDoesNotExistKey] = true; 37context.Items[LoggedResponseHasStartedKey] = true; 47context.Items[SessionEstablishmentKey] = true;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
TempData\TempDataCascadingValueSupplier.cs (1)
86tempData[key] = value;
TempData\TempDataProviderServiceCollectionExtensions.cs (1)
59httpContext.Items[HttpContextItemKey] = tempDataInstance;
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitHandleRegistry.cs (1)
30circuitHandles[circuitKey] = circuitHost?.Handle;
Microsoft.AspNetCore.Components.Server.AutoPause (2)
AutoPauseBrowserOptionsExtensions.cs (2)
36options.Server.Extensions["autoPauseEnabled"] = JsonSerializer.SerializeToElement(settings.Enabled, AutoPauseJsonContext.Default.Boolean); 37options.Server.Extensions["autoPauseHiddenDelayMilliseconds"] = JsonSerializer.SerializeToElement((long)delayMilliseconds, AutoPauseJsonContext.Default.Int64);
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\ServerInstance.cs (1)
127startInfo.Environment[key] = value;
Microsoft.AspNetCore.Components.WebAssembly (1)
Http\WebAssemblyHttpRequestMessageExtensions.cs (1)
130fetchOptions[name] = 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)
260problemDetails.Extensions["exception"] = JsonSerializer.SerializeToElement(new ExceptionExtensionData
ExceptionHandler\ExceptionHandlerExtensions.cs (1)
111app.Properties["analysis.NextMiddlewareName"] = "Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware";
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
src\aspnetcore\src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
StatusCodePage\StatusCodePagesMiddleware.cs (1)
52context.Items[nameof(StatusCodePagesOptions)] = _options.PathFormat;
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
57HttpContext.Items["__HttpContext"] = HttpContext;
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
44.AddHeaderParsing(options => options.MaxCachedValuesPerHeader["Date"] = -1)
Microsoft.AspNetCore.Hosting (9)
GenericHost\GenericWebHostBuilder.cs (6)
173_builder.Properties[_startupConfigName] = startupType; 198_builder.Properties[_startupConfigName] = startupFactory; 240context.Properties[_startupKey] = instance; 254_builder.Properties[typeof(ConfigureContainerBuilder)] = configureContainerBuilder; 323_builder.Properties[_startupConfigName] = configure; 348_builder.Properties[_startupConfigName] = configure;
GenericHost\WebHostBuilderBase.cs (2)
88context.Properties[typeof(WebHostBuilderContext)] = webHostBuilderContext; 89context.Properties[typeof(WebHostOptions)] = options;
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
Microsoft.AspNetCore.Http (6)
Builder\ApplicationBuilder.cs (2)
112Properties[key] = value; 190context.Items[RequestUnhandledKey] = true;
Internal\ItemsDictionary.cs (1)
41_items[key] = value;
src\aspnetcore\src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
Timeouts\RequestTimeoutOptions.cs (1)
45Policies[policyName] = policy;
Microsoft.AspNetCore.Http.Abstractions (2)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
src\aspnetcore\src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Http.Extensions (1)
DefaultProblemDetailsWriter.cs (1)
66context.ProblemDetails.Extensions["traceId"] = traceId;
Microsoft.AspNetCore.Http.Results (2)
Results.cs (1)
826problemDetails.Extensions[extension.Key] = extension.Value;
TypedResults.cs (1)
880problemDetails.Extensions[extension.Key] = extension.Value;
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersExtensions.cs (1)
33builder.Properties[ForwardedHeadersAdded] = true;
Microsoft.AspNetCore.Identity (4)
SignInManager.cs (4)
702props.Items[PasskeyOperationKey] = operation; 703props.Items[PasskeyStateKey] = state; 1163properties.Items[LoginProviderKey] = provider; 1166properties.Items[XsrfKey] = userId;
Microsoft.AspNetCore.Identity.UI (16)
_generated\10\Logout_cshtml.g.cs (1)
116__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\3\ExternalLogin_cshtml.g.cs (1)
222__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\30\Register_cshtml.g.cs (2)
355__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 476__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\45\ExternalLogin_cshtml.g.cs (1)
228__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\49\Login_cshtml.g.cs (2)
384__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 537__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\50\LoginWith2fa_cshtml.g.cs (2)
293__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 326__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\52\Logout_cshtml.g.cs (1)
116__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\7\Login_cshtml.g.cs (2)
371__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 524__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\72\Register_cshtml.g.cs (2)
365__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 486__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
_generated\8\LoginWith2fa_cshtml.g.cs (2)
288__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer; 321__Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"] = __tagHelperStringValueBuffer;
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.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.Core (14)
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;
ControllerBase.cs (2)
1896problemDetails.Extensions[extension.Key] = extension.Value; 2021validationProblem.Extensions[extension.Key] = extension.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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(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\aspnetcore\src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
51routeModel.RouteValues["area"] = areaResult.areaName;
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.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.Testing (1)
DeferredHostBuilder.cs (1)
32b.Properties[pair.Key] = pair.Value;
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
DefaultEditorTemplates.cs (2)
203htmlAttributes["class"] = htmlClassName; 410htmlAttributes["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.OpenApi (14)
Schemas\OpenApiJsonSchema.Helpers.cs (4)
335schema.Discriminator.Mapping[kvp.Key] = new OpenApiSchemaReference(kvp.Value); 377schema.Metadata[OpenApiConstants.RefDescriptionAnnotation] = reader.GetString() ?? string.Empty; 382schema.Metadata[OpenApiConstants.RefDefaultAnnotation] = ReadJsonNode(ref reader)!; 387schema.Metadata[OpenApiConstants.RefDeprecatedAnnotation] = reader.GetBoolean();
Services\OpenApiDocumentService.cs (7)
483response.Content[contentType] = contentTypeSchemas.UseItemSchema 747schema.Properties[description.Name] = parameterSchema; 799schema.Properties[description.Name] = parameterSchema; 811propertySchema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 821schema.Properties[description.Name] = await _componentService.GetOrCreateSchemaAsync(document, description.Type, scopedServiceProvider, schemaTransformers, description, cancellationToken: cancellationToken); 830requestBody.Content[contentType] = new OpenApiMediaType 883requestBody.Content[contentType] = new OpenApiMediaType { Schema = schema };
Services\Schemas\OpenApiSchemaService.cs (3)
386schema.Properties[key] = resolvedProperty.CreateOneOfNullableWrapper(); 390schema.Properties[key] = resolvedProperty; 450discriminator.Mapping[mapping.Key] = ResolveSchemaReference(document, mapping.Value);
Microsoft.AspNetCore.OutputCaching (1)
Policies\VaryByValuePolicy.cs (1)
23rules.VaryByValues[result.Key] = result.Value;
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.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
95WriteDictionary[key] = value;
Microsoft.AspNetCore.Rewrite (3)
ApacheModRewrite\Flags.cs (2)
31FlagDictionary[flag] = value; 57FlagDictionary[flag] = value ?? string.Empty;
src\aspnetcore\src\Shared\Reroute.cs (1)
21builder.Properties[GlobalRouteBuilderKey] = routeBuilder;
Microsoft.AspNetCore.Routing (6)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
49builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder; 54builder.Properties[EndpointRouteBuilder] = endpointRouteBuilder;
RouteOptions.cs (2)
154_constraintTypeMap[token] = typeof(T); 170_constraintTypeMap[token] = type;
src\aspnetcore\src\Shared\HttpExtensions.cs (1)
54context.Items[OriginalEndpointKey] = endpoint;
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Routing.Abstractions (1)
src\aspnetcore\src\Shared\PropertyHelper\PropertyHelper.cs (1)
335dictionary[helper.Name] = helper.GetValue(value);
Microsoft.AspNetCore.Server.HttpSys (7)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (3)
85Store[key] = value; 99Store[key] = value; 191Store[key] = StringValues.Concat(values, value);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
627unknownHeaders[headerName] = headerValue;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
56Extra[key] = value; 234Extra[key] = value;
UrlPrefixCollection.cs (1)
228_prefixes[key] = newPrefix;
Microsoft.AspNetCore.Server.IIS (6)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (3)
85Store[key] = value; 99Store[key] = value; 191Store[key] = StringValues.Concat(values, value);
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (1)
627unknownHeaders[headerName] = headerValue;
src\aspnetcore\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.Kestrel.Core (2)
Internal\Http3\Http3Connection.cs (1)
623persistentStateFeature.State[StreamPersistentStateKey] = stream;
KestrelConfigurationLoader.cs (1)
89EndpointConfigurations[name] = configureOptions ?? throw new ArgumentNullException(nameof(configureOptions));
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1376invocationMessage.Headers[key] = value;
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
60Connection.Items["ConnectedTask"] = new TaskCompletionSource();
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
56processStartInfo.Environment[keyValuePair.Key] = keyValuePair.Value;
Microsoft.Build (15)
BackEnd\BuildManager\LegacyThreadingData.cs (1)
93_legacyThreadingEventsById[submissionId] = new Tuple<AutoResetEvent, ManualResetEvent>(
BackEnd\Client\MSBuildClient.cs (1)
568environmentOverrides["DOTNET_gcServer"] = "1";
BackEnd\Components\Logging\LoggingService.cs (1)
802warningsByProject[key] = new HashSet<string>(codes, StringComparer.OrdinalIgnoreCase);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1041results[i] = abortResult;
Collections\PropertyDictionary.cs (1)
527_properties[projectProperty.Key] = projectProperty;
Evaluation\LazyItemEvaluator.cs (1)
496referencedItemLists[itemType] = itemList;
Graph\GraphBuilder.cs (2)
476nodeState[node] = NodeVisitationState.InProcess; 530nodeState[node] = NodeVisitationState.Processed;
Instance\TaskFactories\TaskHostTask.cs (2)
253_setParameters[property.Name] = value; 647_setParameters[outputParam.Key] = outputParam.Value?.WrappedParameter;
Logging\ProfilerLogger.cs (5)
187aggregatedLocations[originalKey] = profiledLocation; 189mergeMap[pairToMerge.Key.Id] = originalKey.Id; 199aggregatedLocations[pairToMerge.Key.WithParentId(mergedParent)] = pairToMerge.Value; 204aggregatedLocations[pairToMerge.Key] = pairToMerge.Value; 210originalLocations[pairToMerge.Key] = pairToMerge.Key;
Microsoft.Build.Framework (12)
BinaryTranslator.cs (6)
648dictionary[key] = value; 669dictionary[key] = value; 693dictionary[key] = value; 719dictionary[key] = value; 764dictionary[key] = value; 787dictionary[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)
139customKeyedSerializedData[reader.ReadString()] = reader.ReadOptionalString();
DotnetHostEnvironmentHelper.cs (1)
132environment[kvp.Key] = kvp.Value;
Microsoft.Build.Tasks.CodeAnalysis (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
Microsoft.Build.Tasks.Core (1)
Telemetry.cs (1)
51properties[item[0]] = item[1];
Microsoft.Build.Utilities.Core (3)
ToolTask.cs (3)
699startInfo.Environment[entry.Key] = entry.Value; 709startInfo.Environment[variable.Key] = variable.Value; 721startInfo.Environment[nameValuePair[0]] = nameValuePair[1];
Microsoft.CodeAnalysis (3)
DiagnosticAnalyzer\SuppressMessageAttributeState.cs (1)
336builder[info.Id] = info;
InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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)
2866forwardedTypesFromSource[fullEmittedName] = originalDefinition;
Microsoft.CodeAnalysis.Features (5)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (4)
6690runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.SwitchBetweenLambdaAndLocalFunction, cancellationToken); 6704runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingLambdaParameters, cancellationToken); 6710runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingLambdaReturnType, cancellationToken); 6717runtimeRudeEditsBuilder[newLambda] = diagnosticContext.CreateRudeEdit(RudeEditKind.ChangingTypeParameters, cancellationToken);
ExtractMethod\MethodExtractor.Analyzer.cs (1)
744sortedMap[typeParameter.Ordinal] = typeParameter;
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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 (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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)
250processStartInfo.Environment["DOTNET_ROLL_FORWARD_TO_PRERELEASE"] = "1";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[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.Cli.Utils (2)
Command.cs (1)
102_process.StartInfo.Environment[name] = value;
ForwardingAppImplementation.cs (1)
83processInfo.Environment[entry.Key] = entry.Value;
Microsoft.DotNet.HotReload.Watch (11)
src\sdk\src\Dotnet.Watch\HotReloadClient\DefaultHotReloadClient.cs (1)
150environmentBuilder[AgentEnvironmentVariables.DotNetModifiableAssemblies] = "debug";
src\sdk\src\Dotnet.Watch\HotReloadClient\NamedPipeClientTransport.cs (1)
47env[AgentEnvironmentVariables.DotNetWatchHotReloadNamedPipeName] = _namedPipeName;
src\sdk\src\Dotnet.Watch\HotReloadClient\Utilities\EnvironmentUtilities.cs (2)
17environment[key] = value; 21environment[key] = value + separator + existingValue;
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\AbstractBrowserRefreshServer.cs (5)
85builder[MiddlewareEnvironmentVariables.AspNetCoreAutoReloadWSEndPoint] = string.Join(",", _lazyHost.EndPoints); 86builder[MiddlewareEnvironmentVariables.AspNetCoreAutoReloadWSKey] = _sharedSecretProvider.GetPublicKey(); 87builder[MiddlewareEnvironmentVariables.AspNetCoreAutoReloadVirtualDirectory] = _lazyHost.VirtualDirectory; 99builder[MiddlewareEnvironmentVariables.DotNetModifiableAssemblies] = "debug"; 105builder[MiddlewareEnvironmentVariables.LoggingLevel] = "Debug";
src\sdk\src\Dotnet.Watch\HotReloadClient\WebSocketClientTransport.cs (2)
68env[AgentEnvironmentVariables.DotNetWatchHotReloadWebSocketEndpoint] = _server.ServerUrls.First(); 72env[AgentEnvironmentVariables.DotNetWatchHotReloadWebSocketKey] = _handler.SharedSecretProvider.GetPublicKey();
Microsoft.Extensions.AI.Abstractions (1)
Tools\HostedMcpServerTool.cs (1)
134Headers[AuthorizationHeaderName] = $"Bearer {value}";
Microsoft.Extensions.AI.Abstractions.Tests (7)
Functions\AIFunctionArgumentsTests.cs (1)
143args["key4"] = "value4";
Tools\HostedMcpServerToolTests.cs (6)
103tool.Headers["X-Custom-Header"] = "value1"; 119tool.Headers[keyValuePair.Key] = keyValuePair.Value; 150tool1.Headers["X-Custom"] = "value1"; 159tool2.Headers["X-Custom"] = "value1"; 179tool.Headers["Authorization"] = null!; 180tool.Headers["X-Custom"] = "value1";
Microsoft.Extensions.AI.Evaluation (2)
EvaluationMetricExtensions.cs (2)
35metric.Context[c.Name] = c; 119metric.Metadata[name] = value;
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
155arguments[kvp.Key] = jsonElement.ValueKind switch
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAIConversionTests.cs (1)
454mcpTool.Headers["X-Custom-Header"] = "custom-value";
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.DataIngestion (1)
Utils\Batching.cs (1)
48batch[i].Metadata[metadataKey] = response.Result[i];
Microsoft.Extensions.DataIngestion.MarkItDown (3)
MarkItDownReader.cs (3)
60startInfo.Environment["PYTHONIOENCODING"] = "utf-8"; 61startInfo.Environment["LC_ALL"] = "C.UTF-8"; 62startInfo.Environment["LANG"] = "C.UTF-8";
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 (1)
Resilience\HttpResilienceHttpRequestMessageExtensions.cs (1)
55requestMessage.Properties[ResilienceContextKey] = resilienceContext;
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\RequestMessageSnapshotTests.cs (1)
48request.Properties["some-new-prop"] = "ABC";
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
88socketsHttpHandler.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.Build.Tasks (3)
AllowEmptyTelemetry.cs (2)
54properties[key] = "null"; 58properties[key] = value;
GenerateRuntimeConfigurationFiles.cs (1)
326runtimeOptions.RawOptions["configProperties"] = configProperties;
Microsoft.Net.Http.Headers (1)
src\aspnetcore\src\Http\Shared\CookieHeaderParserShared.cs (1)
45store[parsedName.Value.Value!] = Uri.UnescapeDataString(parsedValue.Value.Value!);
Microsoft.NET.Sdk.Publish.Tasks (1)
AppSettingsTransform.cs (1)
53appSettingsModel.ConnectionStrings[key] = Value;
Microsoft.TemplateEngine.Core (6)
Operations\Conditional.cs (1)
448processor.Config.Flags[otherOptionDisableFlag] = enabled;
Operations\SetFlag.cs (3)
53processorState.Config.Flags[Name!] = Default.Value; 104processor.Config.Flags[_owner.Name!] = turnOn; 108processor.Config.Flags[SetFlag.OperationName] = true;
Util\ProcessorState.cs (1)
111config.Flags[state] = true;
VariableCollection.cs (1)
90_values[key] = value ?? throw new ArgumentNullException(nameof(value));
Microsoft.TemplateEngine.Edge (1)
Template\TemplateCreator.cs (1)
531public void SetParameterValue(ITemplateParameter parameter, object value, DataSource dataSource) => _parameterSet.ResolvedValues[parameter] = value;
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (22)
BindSymbolEvaluator.cs (2)
51variableCollection[bindSymbol.Name] = value; 119variableCollection[currentSymbol.Name] = convertedValue;
Macros\CaseChangeMacro.cs (1)
31variableCollection[config.VariableName] = value;
Macros\CoalesceMacro.cs (2)
45variableCollection[config.VariableName] = currentSourceValue; 52variableCollection[config.VariableName] = currentFallbackValue;
Macros\ConstantMacro.cs (1)
18vars[config.VariableName] = config.Value;
Macros\EvaluateMacro.cs (1)
21variableCollection[config.VariableName] = result;
Macros\GeneratePortNumberMacro.cs (2)
18vars[config.VariableName] = config.Port; 27variables[config.VariableName] = config.Low;
Macros\GuidMacro.cs (3)
49vars[legacyName] = value; 50vars[newName] = value; 60vars[config.VariableName] = defaultValue;
Macros\JoinMacro.cs (1)
47vars[config.VariableName] = result;
Macros\NowMacro.cs (2)
20variableCollection[config.VariableName] = value; 31variables[config.VariableName] = value;
Macros\ProcessValueFormMacro.cs (1)
36vars[config.VariableName] = result;
Macros\RandomMacro.cs (2)
19vars[config.VariableName] = value; 28variables[config.VariableName] = config.Low;
Macros\RegexMacro.cs (1)
35variableCollection[config.VariableName] = value;
Macros\RegexMatchMacro.cs (1)
31variableCollection[config.VariableName] = result;
Macros\SwitchMacro.cs (1)
35variableCollection[config.VariableName] = result;
RunnableProjectGenerator.cs (1)
397variables[choiceKey] = choiceKey;
Microsoft.TemplateEngine.Utils (2)
DictionaryExtensions.cs (2)
65dict[pair.Key] = pair.Value; 88dict[key] = value!;
Microsoft.TestPlatform.CommunicationUtilities (2)
JsonDataSerializer.Stj.cs (1)
171dict[key] = (int)d;
Serialization\TestRunStatisticsConverter.cs (1)
39stats[outcome] = kvp.Value.GetInt64();
Microsoft.TestPlatform.CrossPlatEngine (11)
Client\MTP\MtpProxyExecutionManager.cs (2)
175EnvironmentVariables[variable.Key] = variable.Value; 437EnvironmentVariables[variable.Key] = variable.Value;
Client\MTP\MtpServerConnection.cs (1)
94startInfo.Environment[kvp.Key] = kvp.Value;
Client\ProxyExecutionManagerWithDataCollection.cs (2)
169testProcessStartInfo.EnvironmentVariables[envVariable.Key] = envVariable.Value; 192testProcessStartInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
Client\ProxyOperationManagerWithDataCollection.cs (1)
96testProcessStartInfo.EnvironmentVariables[kvp.Key] = kvp.Value;
DataCollection\InProcDataCollectionExtensionManager.cs (1)
219InProcDataCollectors[inProcDataCollector.AssemblyQualifiedName!] = inProcDataCollector;
DataCollection\InProcDataCollectionSink.cs (2)
59_testCaseDataCollectionDataMap[testCaseId] = testCaseCollectionData; 79CollectionData[key] = value;
Execution\MSTestV1TelemetryHelper.cs (2)
72adapterTelemetry[key]++; 76adapterTelemetry[key] = 1;
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessStartInfoExtensions.cs (1)
20startInfo.Environment[name] = value;
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DotnetTestHostManager.cs (2)
277startInfo.EnvironmentVariables["DOTNET_ROOT"] = string.Empty; 628startInfo.EnvironmentVariables["DOTNET_ROOT"] = dotnetRootPath;
Microsoft.VisualStudio.TestPlatform.Client (4)
Discovery\DiscoveryRequest.cs (2)
424discoveryCompletePayload.Metrics[kvp.Key] = kvp.Value; 431discoveryCompletePayload.Metrics[TelemetryDataConstants.TimeTakenInSecForDiscovery] = discoveryFinalTimeTakenForDesignMode.TotalSeconds;
Execution\TestRunRequest.cs (2)
600testRunCompletePayload.TestRunCompleteArgs.Metrics[kvp.Key] = kvp.Value; 606testRunCompletePayload.TestRunCompleteArgs.Metrics[TelemetryDataConstants.TimeTakenInSecForRun] = executionTotalTimeTakenForDesignMode.TotalSeconds;
MSBuild (9)
OutOfProcTaskAppDomainWrapperBase.cs (2)
439finalParameterValues[value.Name] = outputValue; 446finalParameterValues[value.Name] = e;
OutOfProcTaskHostNode.cs (6)
1691updatedEnvironment[variable.Key] = newValue; 1745updatedEnvironment[variable.Key] = newValue; 1788s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(null, oldValue); 1794s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue); 1805s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, null); 1811s_mismatchedEnvironmentValues[variable.Key] = new KeyValuePair<string, string>(newValue, oldValue);
XMake.cs (1)
1913entryPoint.GlobalProperties[PropertyNames.IsGraphBuild] = "true";
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
942dependenciesByFramework[framework.FrameworkName] = dependencies;
NuGet.Commands (6)
RestoreCommand\Logging\PackageSpecificWarningProperties.cs (1)
92frameworksByLibraryId[libraryId] = frameworks;
RestoreCommand\RestoreCommand.cs (1)
1012telemetry.TelemetryEvent.ComplexData[eventName] = result;
RestoreCommand\Utility\LockFileUtils.cs (4)
731newItem.Properties[ManagedCodeConventions.PropertyNames.Locale] = (string)locale; 736newItem.Properties["related"] = (string)related; 775lockFileItem.Properties[LockFileContentFile.CodeLanguageProperty] = codeLanguage; 778lockFileItem.Properties[LockFileItem.CompilerApiVersionProperty] = compilerApiVersion;
NuGet.Common (2)
Telemetry\TelemetryEvent.cs (2)
53_properties[key] = value; 72_piiProperties[key] = value;
NuGet.LibraryModel (1)
Library.cs (1)
41Items[key] = value;
NuGet.PackageManagement (2)
Audit\AuditCheckResult.cs (1)
94telemetryEvent.ComplexData[AuditVulnerabilitiesPackages] = result;
Resolution\UninstallResolver.cs (1)
43dependenciesDict[packageIdentity] = dependencies = new HashSet<PackageIdentity>(PackageIdentity.Comparer);
NuGet.Packaging (4)
ContentModel\SelectionCriteriaBuilder.cs (3)
54Entry.Properties[key] = null!; 61Entry.Properties[key] = valueLookup!; 81Entry.Properties[key] = value;
Signing\Verification\AllowListVerificationProvider.cs (1)
165CertificateFingerprintLookUp[fingerprintAlgorithm] = fingerprintString;
NuGet.ProjectModel (4)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
513centralPackageVersions[propertyName] = new CentralPackageVersion(propertyName, VersionRange.Parse(version)); 541packagesToPrune[propertyName] = new PrunePackageReference(propertyName, VersionRange.Parse(version));
LockFile\LockFileItem.cs (1)
101Properties[name] = value;
LockFile\Utf8JsonStreamLockFileItemConverter.cs (1)
51lockFileItem.Properties[propertyName] = reader.ReadNextTokenAsString();
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;
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\CompilerOptionParseUtilities.cs (2)
63builder[name] = value; 67builder[feature] = "true";
src\roslyn\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\roslyn\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);
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.Drawing.Common (4)
System\Drawing\Brushes.cs (1)
319Gdip.ThreadData[key] = newBrush;
System\Drawing\Pens.cs (1)
319Gdip.ThreadData[key] = newPen;
System\Drawing\SystemBrushes.cs (1)
63Gdip.ThreadData[s_systemBrushesKey] = systemBrushes;
System\Drawing\SystemPens.cs (1)
64Gdip.ThreadData[s_systemPensKey] = systemPens;
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.ServiceModel.Primitives (36)
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
125Properties[KeySizeProperty] = value;
System\ServiceModel\Channels\TransportSecurityHelpers.cs (7)
82sspiRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 85sspiRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 106digestTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 109digestTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 130certificateTokenRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters; 178usernameRequirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty] = authenticationScheme; 181usernameRequirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = channelParameters;
System\ServiceModel\Security\SecurityProtocol.cs (3)
128requirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = _channelParameters; 138requirement.Properties[ServiceModelSecurityTokenRequirement.MessageDirectionProperty] = MessageDirection.Output; 139requirement.Properties[ServiceModelSecurityTokenRequirement.SupportingTokenAttachmentModeProperty] = attachmentMode;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (1)
430requirement.Properties[ServiceModelSecurityTokenRequirement.ChannelParametersCollectionProperty] = _channelParameters;
System\ServiceModel\Security\Tokens\InitiatorServiceModelSecurityTokenRequirement.cs (4)
26Properties[TargetAddressProperty] = value; 38Properties[ViaProperty] = value; 50Properties[IsOutOfBandTokenProperty] = value; 62Properties[PreferSslCertificateAuthenticatorProperty] = value;
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (4)
205requirement.Properties[ServiceModelSecurityTokenRequirement.DefaultMessageSecurityVersionProperty] = DefaultMessageSecurityVersion; 212requirement.Properties[ServiceModelSecurityTokenRequirement.IssuerAddressProperty] = IssuerAddress; 215requirement.Properties[ServiceModelSecurityTokenRequirement.IssuerBindingProperty] = IssuerBinding; 217requirement.Properties[ServiceModelSecurityTokenRequirement.IssuedSecurityTokenParametersProperty] = Clone();
System\ServiceModel\Security\Tokens\RecipientServiceModelSecurityTokenRequirement.cs (1)
24Properties[ListenUriProperty] = value;
System\ServiceModel\Security\Tokens\SecureConversationSecurityTokenParameters.cs (4)
150requirement.Properties[ServiceModelSecurityTokenRequirement.SupportSecurityContextCancellationProperty] = RequireCancellation; 151requirement.Properties[ServiceModelSecurityTokenRequirement.SecureConversationSecurityBindingElementProperty] = BootstrapSecurityBindingElement; 152requirement.Properties[ServiceModelSecurityTokenRequirement.IssuerBindingContextProperty] = IssuerBindingContext.Clone(); 153requirement.Properties[ServiceModelSecurityTokenRequirement.IssuedSecurityTokenParametersProperty] = Clone();
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (11)
53Properties[SupportSecurityContextCancellationProperty] = defaultSupportSecurityContextCancellation; 103Properties[SecurityAlgorithmSuiteProperty] = value; 115Properties[SecurityBindingElementProperty] = value; 127Properties[IssuerAddressProperty] = value; 139Properties[IssuerBindingProperty] = value; 151Properties[SecureConversationSecurityBindingElementProperty] = value; 163Properties[MessageSecurityVersionProperty] = value; 176Properties[DefaultMessageSecurityVersionProperty] = (object)value; 188Properties[TransportSchemeProperty] = value; 200Properties[SupportSecurityContextCancellationProperty] = value; 212Properties[duplexClientLocalAddressProperty] = value;
System.Text.Json (5)
System\ReflectionExtensions.cs (1)
290substitution[pattern] = target;
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)
892d[property] = value;
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
273substitution[patternParam] = target;
System.Xaml (2)
System\Xaml\MS\Impl\XmlNsInfo.cs (2)
444dict[key] = new ReadOnlyCollection<string>(dict[key]); 583_subsumeCount[ns] = currentCount;
vstest.console (5)
CommandLine\InferHelper.cs (3)
67sourceToPlatformMap[source] = detectedArchitecture; 79sourceToPlatformMap[source] = defaultArchitecture; 109sourceToPlatformMap[source] = defaultArchitecture;
TestPlatformHelpers\TestRequestManager.cs (2)
697sourceToArchitectureMap[key] = chosenPlatform; 708sourceToFrameworkMap[key] = chosenFramework!;
vstest.console.arm64 (5)
src\vstest\src\vstest.console\CommandLine\InferHelper.cs (3)
67sourceToPlatformMap[source] = detectedArchitecture; 79sourceToPlatformMap[source] = defaultArchitecture; 109sourceToPlatformMap[source] = defaultArchitecture;
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (2)
697sourceToArchitectureMap[key] = chosenPlatform; 708sourceToFrameworkMap[key] = chosenFramework!;
393 references to
Aspire.Cli.Tests (12)
Certificates\CertificateServiceTests.cs (1)
135Assert.Contains(".aspnet/dev-certs/trust", result.EnvironmentVariables["SSL_CERT_DIR"]);
Commands\RunCommandTests.cs (1)
1196Assert.Equal("true", env["DOTNET_WATCH_SUPPRESS_LAUNCH_BROWSER"]);
DotNet\DotNetCliRunnerTests.cs (7)
88Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 155Assert.Equal("false", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 242Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 321Assert.Equal("true", env["DOTNET_CLI_USE_MSBUILD_SERVER"]); 324Assert.Equal("existing_value", env["EXISTING_VAR"]); 401Assert.Equal("true", env["ASPIRE_VERSION_CHECK_DISABLED"]); 484Assert.Equal("false", env["ASPIRE_VERSION_CHECK_DISABLED"]);
Projects\GuestRuntimeTests.cs (3)
165Assert.Equal("caller_value", launcher.LastEnvironmentVariables["CALLER_VAR"]); 166Assert.Equal("spec_value", launcher.LastEnvironmentVariables["SPEC_VAR"]); 186Assert.Equal("from_spec", launcher.LastEnvironmentVariables["SHARED_VAR"]);
Aspire.Dashboard.Tests (12)
Model\GenAISchemaHelpersTests.cs (2)
195var param1 = schema.Properties["param1"] as OpenApiSchema; 201var param2 = schema.Properties["param2"] as OpenApiSchema;
Model\GenAIVisualizerDialogViewModelTests.cs (10)
1169var locationProp = tool.ToolDefinition.Parameters.Properties["location"]; 1174var unitProp = tool.ToolDefinition.Parameters.Properties["unit"]; 1532var valueProp = tool.ToolDefinition.Parameters.Properties["value"]; 1538var countProp = tool.ToolDefinition.Parameters.Properties["count"]; 1543var flagProp = tool.ToolDefinition.Parameters.Properties["flag"]; 1637var itemsProp = tool.ToolDefinition.Parameters.Properties["items"]; 1644var numbersProp = tool.ToolDefinition.Parameters.Properties["numbers"]; 1651var mixedProp = tool.ToolDefinition.Parameters.Properties["mixed"]; 2122var validParam = tool.ToolDefinition.Parameters.Properties["validParam"]; 2128var invalidParam = tool.ToolDefinition.Parameters.Properties["invalidParam"];
Aspire.Hosting.Foundry.Tests (1)
HostedAgentConfigurationTests.cs (1)
83Assert.Equal("VALUE", config.EnvironmentVariables["KEY"]);
Aspire.Hosting.Tests (3)
Dcp\DcpExecutorTests.cs (3)
49Assert.Equal("CustomName", container.Metadata.Annotations["otel-service-name"]); 594Assert.Equal(expectedName, exe.Metadata.Annotations[CustomResource.OtelServiceNameAnnotation]); 1384var serviceProducers = JsonSerializer.Deserialize<List<ServiceProducerAnnotation>>(annotations[CustomResource.ServiceProducerAnnotation]);
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"]),
dotnet (4)
CommandFactory\CommandResolution\LockFileTargetExtensions.cs (1)
90LockFileTargetLibrary library = libraryLookup[dependency.Id];
Commands\Run\VirtualProjectBuildingCommand.cs (1)
666var targetResult = buildOrRestoreResult.ResultsByTarget[targetName];
Commands\Workload\Restore\WorkloadRestoreCommand.cs (1)
105var targetResult = targetOutputs[GetRequiredWorkloadsTargetName];
ToolPackage\ToolPackageDownloaderBase.cs (1)
357var resolvedPackage = toolConfiguration.RidSpecificPackages[bestRuntimeIdentifier];
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)
45return _secrets[key];
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\roslyn\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\roslyn\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)];
ILCompiler.Compiler (1)
Compiler\ObjectWriter\MachObjectWriter.Aot.cs (1)
99SymbolDefinition symbol = definedSymbols[symbolName];
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (2)
235var webHostContext = (WebHostBuilderContext)bootstrapHostBuilder.Properties[typeof(WebHostBuilderContext)]; 448_builtApplication.Properties[UseRoutingKey] = app.Properties[UseRoutingKey];
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
94persistence = (AuthPersistence)connectionItems[AuthPersistenceKey]!;
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1272RedirectUri = properties.Items[OpenIdConnectDefaults.RedirectUriForCodePropertiesKey]
Microsoft.AspNetCore.Components.Endpoints (2)
CacheView\CacheViewService.cs (1)
362if (httpContext.Items[_inFlightResolutionsItemKey] is not Dictionary<string, (CacheView Owner, Task<SerializedRenderFragment?> Task)> resolutions)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (1)
116var pathFormat = _httpContext.Items[nameof(StatusCodePagesOptions)] as string;
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyEndpointProvider.cs (1)
25if (applicationBuilder.Properties[ResourceCollectionKey] is ResourceAssetCollection assetMap)
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.Hosting (5)
GenericHost\GenericWebHostBuilder.cs (4)
55var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 222var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)]; 311var instance = context.Properties[_startupKey]; 312var builder = (ConfigureContainerBuilder)context.Properties[typeof(ConfigureContainerBuilder)];
GenericHost\SlimWebHostBuilder.cs (1)
31var webHostOptions = (WebHostOptions)context.Properties[typeof(WebHostOptions)];
Microsoft.AspNetCore.Http (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Identity.UI (16)
_generated\10\Logout_cshtml.g.cs (1)
117__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\3\ExternalLogin_cshtml.g.cs (1)
223__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\30\Register_cshtml.g.cs (2)
356__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 477__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\45\ExternalLogin_cshtml.g.cs (1)
229__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\49\Login_cshtml.g.cs (2)
385__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 538__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\50\LoginWith2fa_cshtml.g.cs (2)
294__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 327__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\52\Logout_cshtml.g.cs (1)
117__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\7\Login_cshtml.g.cs (2)
372__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 525__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\72\Register_cshtml.g.cs (2)
366__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 487__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
_generated\8\LoginWith2fa_cshtml.g.cs (2)
289__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes); 322__tagHelperExecutionContext.AddTagHelperAttribute("asp-route-returnUrl", __Microsoft_AspNetCore_Mvc_TagHelpers_AnchorTagHelper.RouteValues["returnUrl"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
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\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Filters\SaveTempDataPropertyFilterBase.cs (1)
75var value = tempData[property.Key];
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
373var controllerName = description.ActionDescriptor.RouteValues["controller"];
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheKeyProvider.cs (1)
327var value = varyByRules.VaryByValues[key];
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.Razor.Runtime (1)
src\aspnetcore\src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
91return ReadDictionary[key];
Microsoft.AspNetCore.Routing (1)
RegexInlineRouteConstraintSetup.cs (1)
14var existingRegexConstraintType = options.TrimmerSafeConstraintMap["regex"];
Microsoft.AspNetCore.Server.HttpSys (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
92get { return Store[key]; }
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
49return PropertiesTryGetValue(key, out value) ? value : Extra[key];
Microsoft.AspNetCore.Server.IIS (2)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
92get { return Store[key]; }
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
49return PropertiesTryGetValue(key, out value) ? value : Extra[key];
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\aspnetcore\src\SignalR\common\testassets\Tests.Utils\TestClient.cs (1)
34public Task Connected => ((TaskCompletionSource)Connection.Items["ConnectedTask"]).Task;
Microsoft.Build (28)
BackEnd\BuildManager\GlobalPropertiesLookup.cs (1)
54public string? this[string key] => ExtractEscapedValue(_backingProperties[key]);
BackEnd\BuildManager\LegacyThreadingData.cs (2)
110_legacyThreadingEventsById[submissionId].Item1?.Dispose(); 111_legacyThreadingEventsById[submissionId].Item2?.Dispose();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1300var proxyTargetResult = resultFromTargetBuilder.ResultsByTarget[proxyTarget];
BackEnd\Components\SdkResolution\SdkResult.cs (2)
134if (result._propertiesToAdd[propertyToAdd.Key] != propertyToAdd.Value) 145if (!result._itemsToAdd[itemToAdd.Key].Equals(itemToAdd.Value))
BackEnd\Shared\BuildAbortedException.cs (1)
87ErrorCode = state[nameof(ErrorCode)];
Collections\ReadOnlyConvertingDictionary.cs (1)
72get => _converter(_backing[key]);
Construction\Solution\SolutionProjectGenerator.cs (1)
1061if (traversalInstance.Targets[targetName].Location.File == traversalProject.FullPath)
Definition\Toolset.cs (2)
562property = subToolset.Properties[propertyName]; 565return property ?? (Properties[propertyName]);
Errors\InternalLoggerException.cs (3)
158errorCode = state[nameof(errorCode)]; 159helpKeyword = state[nameof(helpKeyword)]; 160initializationException = bool.Parse(state[nameof(initializationException)]);
Errors\InvalidProjectFileException.cs (9)
150file = state[nameof(file)]; 151lineNumber = int.Parse(state[nameof(lineNumber)]); 152columnNumber = int.Parse(state[nameof(columnNumber)]); 153endLineNumber = int.Parse(state[nameof(endLineNumber)]); 154endColumnNumber = int.Parse(state[nameof(endColumnNumber)]); 155errorSubcategory = state[nameof(errorSubcategory)]; 156errorCode = state[nameof(errorCode)]; 157helpKeyword = state[nameof(helpKeyword)]; 158hasBeenLogged = bool.Parse(state[nameof(hasBeenLogged)]);
Errors\InvalidToolsetDefinitionException.cs (1)
123errorCode = state[nameof(errorCode)];
Instance\ProjectInstance.cs (1)
3513inheritedItemDefinitions.Add(_itemDefinitions[inheritedItemDefinition.ItemType]);
Logging\ProfilerLogger.cs (3)
186var originalKey = originalLocations[pairToMerge.Key]; 249var pair = idTable[parentId.Value]; 256pair = idTable[pair.Key.ParentId.Value];
Microsoft.Build.Framework (1)
LoggerException.cs (1)
128helpKeyword = state[nameof(helpKeyword)];
Microsoft.Build.Tasks.Core (1)
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
597IEnumerable<string> references = taskInfo.References.Union(DefaultReferences[String.Empty]);
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\roslyn\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\roslyn\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\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
216Debug.Assert(map[analysisEntity] == kvp.Value);
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityDataFlowOperationVisitor.cs (1)
649setAbstractValue(initialAnalysisData, entity, existingValues[entity]);
src\roslyn\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.CodeStyle.Fixes (5)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\roslyn\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\roslyn\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.Workspaces (7)
Rename\CSharpRenameRewriterLanguageService.cs (7)
814conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 828conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 838conflicts.AddRange(visitor.ConflictingTokens.Select(t => reverseMappedLocations[t.GetLocation()])); 842conflicts.AddRange(DeclarationConflictHelpers.GetMembersWithConflictingSignatures((IMethodSymbol)renamedSymbol, trimOptionalParameters: false, distinguishRefKind: true).Select(t => reverseMappedLocations[t])); 886conflicts.Add(reverseMappedLocations[usingDirective.Alias.Name.GetLocation()]); 900conflicts.Add(reverseMappedLocations[typeParameter.Identifier.GetLocation()]); 915conflicts.Add(reverseMappedLocations[typeParameterToken.GetLocation()]);
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)
39parts.AddRange(groups[SymbolDescriptionGroups.MainDescription]);
Microsoft.CodeAnalysis.NetAnalyzers (3)
src\9382845807600969\AnalysisEntityDataFlowOperationVisitor.cs (1)
648setAbstractValue(initialAnalysisData, entity, existingValues[entity]);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Analysis\CopyAnalysis\CopyAnalysisData.cs (1)
215Debug.Assert(map[analysisEntity] == kvp.Value);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
2091dict1.Keys.All(key => dict2.TryGetValue(key, out TValue value2) && EqualityComparer<TValue>.Default.Equals(dict1[key], value2));
Microsoft.CodeAnalysis.Workspaces (7)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\roslyn\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\roslyn\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.Data.Analysis (1)
GroupBy.cs (1)
299ICollection<long> values = _keyToRowIndicesMap[key];
Microsoft.Data.Analysis.Interactive (1)
TabularDataResourceExtensions.cs (1)
31return dictionary[fieldName];
Microsoft.Extensions.AI.Abstractions.Tests (20)
ChatCompletion\ChatMessageTests.cs (1)
332Assert.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"]);
Tools\HostedMcpServerToolTests.cs (10)
105Assert.Equal("value1", tool.Headers["X-Custom-Header"]); 125Assert.Equal("Bearer token456", tool.Headers["Authorization"]); 127Assert.Equal("value2", tool.Headers["X-Custom"]); 153Assert.Equal("Bearer token123", tool1.Headers["Authorization"]); 155Assert.Equal("value1", tool1.Headers["X-Custom"]); 163Assert.Equal("Bearer token123", tool2.Headers["Authorization"]); 165Assert.Equal("value1", tool2.Headers["X-Custom"]); 172Assert.Equal("value1", tool2.Headers["X-Custom"]); 182Assert.Null(tool.Headers["Authorization"]); 184Assert.Equal("value1", tool.Headers["X-Custom"]);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
272Assert.Equal(metric.Context[key], deserializedMetric.Context[key], ContextComparer.Instance); 288Assert.Equal(metric.Metadata[key], deserializedMetric.Metadata[key]);
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIConversionTests.cs (3)
444Assert.Equal("Bearer test-token", tool.Headers["Authorization"]); 463Assert.Equal("Bearer test-token", tool.Headers["Authorization"]); 464Assert.Equal("custom-value", tool.Headers["X-Custom-Header"]);
Microsoft.Extensions.DataIngestion.Tests (11)
Processors\ClassificationEnricherTests.cs (3)
93Assert.Equal("AI", got[0].Metadata[ClassificationEnricher.MetadataKey]); 94Assert.Equal("Animals", got[1].Metadata[ClassificationEnricher.MetadataKey]); 95Assert.Equal("UFO", got[2].Metadata[ClassificationEnricher.MetadataKey]);
Processors\KeywordEnricherTests.cs (2)
94Assert.Equal(["AI", "MEAI"], (string[])got[0].Metadata[KeywordEnricher.MetadataKey]); 95Assert.Equal(["Animals", "Rabbits"], (string[])got[1].Metadata[KeywordEnricher.MetadataKey]);
Processors\SentimentEnricherTests.cs (4)
79Assert.Equal("Positive", chunks[0].Metadata[SentimentEnricher.MetadataKey]); 80Assert.Equal("Negative", chunks[1].Metadata[SentimentEnricher.MetadataKey]); 81Assert.Equal("Neutral", chunks[2].Metadata[SentimentEnricher.MetadataKey]); 82Assert.Equal("Unknown", chunks[3].Metadata[SentimentEnricher.MetadataKey]);
Processors\SummaryEnricherTests.cs (2)
78Assert.Equal(summaries[0], (string)chunks[0].Metadata[SummaryEnricher.MetadataKey]!); 79Assert.Equal(summaries[1], (string)chunks[1].Metadata[SummaryEnricher.MetadataKey]!);
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.CodeGenerator.Tests (27)
UtilTest.cs (27)
140Assert.Equal("@\"feature1\"", sampleData["STR"]); 141Assert.Equal("@\"/path/to/file\"", sampleData["PATH"]); 142Assert.Equal("2", sampleData["INT"]); 143Assert.Equal("1.2", sampleData["DOUBLE"]); 144Assert.Equal("1.223E+10F", sampleData["FLOAT"]); 145Assert.Equal("@\"ab\\\"\';@#$%^&-++==\"", sampleData["TrickySTR"]); 146Assert.Equal($"Single.NaN", sampleData["SingleNan"]); 147Assert.Equal($"Single.PositiveInfinity", sampleData["SinglePositiveInfinity"]); 148Assert.Equal($"Single.NegativeInfinity", sampleData["SingleNegativeInfinity"]); 149Assert.Equal("@\"\"", sampleData["EmptyString"]); 150Assert.Equal($"true", sampleData["One"]); 151Assert.Equal($"true", sampleData["T"]); 175Assert.Equal("@\"feature1\"", sampleData["STR_col_1"]); 176Assert.Equal("@\"feature2\"", sampleData["STR_col_2"]); 177Assert.Equal("@\"/path/to/file\"", sampleData["PATH_col_3"]); 178Assert.Equal("2", sampleData["INT_col_4"]); 179Assert.Equal("1.2", sampleData["DOUBLE_col_5"]); 180Assert.Equal("1.223E+10F", sampleData["FLOAT_col_6"]); 181Assert.Equal("1.223E+11F", sampleData["FLOAT_col_7"]); 182Assert.Equal("@\"ab\\\"\';@#$%^&-++==\"", sampleData["TrickySTR_col_8"]); 183Assert.Equal($"Single.NaN", sampleData["SingleNan_col_9"]); 184Assert.Equal($"Single.PositiveInfinity", sampleData["SinglePositiveInfinity_col_10"]); 185Assert.Equal($"Single.NegativeInfinity", sampleData["SingleNegativeInfinity_col_11"]); 186Assert.Equal($"Single.NegativeInfinity", sampleData["SingleNegativeInfinity_col_12"]); 187Assert.Equal("@\"\"", sampleData["EmptyString_col_13"]); 188Assert.Equal($"true", sampleData["One_col_14"]); 189Assert.Equal($"true", sampleData["T_col_15"]);
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.NET.Build.Tasks (4)
LockFileExtensions.cs (1)
210LockFileTargetLibrary library = libraryLookup[dependency.Id];
ResolvePackageAssets.cs (3)
1201string relatedExtensions = asset.Properties[MetadataKeys.RelatedProperty]; 1638string.Equals(asset.Properties["locale"], lang.ItemSpec, StringComparison.OrdinalIgnoreCase))), 1642string locale = asset.Properties["locale"];
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\VsMsdeploy.cs (1)
493messageImportance = customTypeLoging[argsT.Name];
Microsoft.TemplateEngine.Cli (2)
NuGet\NugetApiManager.cs (1)
113return _sourceRepositories[source];
TabularOutput\TabularOutput.cs (1)
461private StringBuilder AlignText(TextAlign textAlign, string text, int maxColumnWidth, StringBuilder b) => _alignRules[textAlign](text, maxColumnWidth, b);
Microsoft.TestPlatform.CommunicationUtilities (1)
JsonDataSerializer.Stj.cs (1)
169if (dict[key] is double d && d == Math.Truncate(d) && d is >= int.MinValue and <= int.MaxValue)
Microsoft.TestPlatform.CrossPlatEngine (3)
Discovery\DiscovererEnumerator.cs (2)
385applicableFileBasedSources = assemblyTypeToSoucesMap[AssemblyType.None].Concat(assemblyTypeToSoucesMap[discoverer.Metadata.AssemblyType]);
Execution\BaseRunTests.cs (1)
503var value = TestRunCache.AdapterTelemetry[adapterMetrics];
Microsoft.TestPlatform.Utilities (2)
InferRunSettingsHelper.cs (2)
682Architecture actualPlatform = sourcePlatforms[source]; 683Framework actualFramework = sourceFrameworks[source];
NuGet.Commands (7)
RestoreCommand\ContentFiles\ContentFileUtils.cs (3)
45var codeLanguage = (string)group.Properties[ManagedCodeConventions.PropertyNames.CodeLanguage]; 64(NuGetFramework)group.Properties[ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker]); 95var codeLanguage = group.Properties[ManagedCodeConventions.PropertyNames.CodeLanguage] as string;
RestoreCommand\Logging\TransitiveNoWarnUtils.cs (1)
311return (PackageSpec)localMatch.LocalLibrary.Items[KnownLibraryProperties.PackageSpec];
RestoreCommand\Utility\LockFileUtils.cs (1)
1118var rid = (string)group.Properties[ManagedCodeConventions.PropertyNames.RuntimeIdentifier];
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.Configuration (2)
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.LibraryModel (3)
Library.cs (1)
36get { return Items[key]; }
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.PackageManagement (2)
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.Packaging (5)
ContentModel\ContentItemCollection.cs (2)
213var bestGroupValue = bestGroup.Properties[criteriaProperty.Key]; 214var itemGroupValue = itemGroup.Properties[criteriaProperty.Key];
Core\ContentExtractor.cs (1)
20return groups.Select(e => ((NuGetFramework)e.Properties["tfm"]));
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.ProjectModel (2)
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.Protocol (2)
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
NuGet.Versioning (2)
src\nuget-client\build\Shared\EqualityUtility.cs (2)
291if (!compareValues(self[key], other[key]))
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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LanguageMetadata.cs (1)
14public string Language { get; } = (string)data[nameof(Language)];
src\roslyn\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\roslyn\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)];
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\runtime\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.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.ServiceModel.Primitives (7)
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
627sb.AppendLine(" " + OperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n ")); 640sb.AppendLine(" " + OptionalOperationSupportingTokenParameters[requestAction].ToString().Trim().Replace("\n", "\n "));
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
53AuthenticationSchemes authScheme = (AuthenticationSchemes)requirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty];
System\ServiceModel\Security\SecurityProtocol.cs (3)
308AddSupportingTokenProviders(SecurityProtocolFactory.SecurityBindingElement.OperationSupportingTokenParameters[action], false, providerSpecList); 326AddSupportingTokenProviders(SecurityProtocolFactory.SecurityBindingElement.OptionalOperationSupportingTokenParameters[action], true, providerSpecList); 429security.IncomingSupportingTokens.Add(new SupportingTokenSpecification(tokens[i], tokenPoliciesMapping[tokens[i]], attachmentMode));
System\ServiceModel\Security\Tokens\ServiceModelSecurityTokenRequirement.cs (1)
233object propertyValue = Properties[propertyName];
System.Xaml (1)
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
444dict[key] = new ReadOnlyCollection<string>(dict[key]);
vstest.console (4)
TestPlatformHelpers\TestRequestManager.cs (4)
233Architecture = sourceToArchitectureMap[source], 234Framework = sourceToFrameworkMap[source], 351Architecture = sourceToArchitectureMap[source!], 352Framework = sourceToFrameworkMap[source!],
vstest.console.arm64 (4)
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (4)
233Architecture = sourceToArchitectureMap[source], 234Framework = sourceToFrameworkMap[source], 351Architecture = sourceToArchitectureMap[source!], 352Framework = sourceToFrameworkMap[source!],