6 writes to
aspire (1)
Configuration\ConfigurationService.cs (1)
615array[index] = value;
Aspire.Hosting (2)
Dcp\JsonPatch.cs (1)
278target[index] = value?.DeepClone();
Publishing\ContainerImageArchiveRewriter.cs (1)
258repoTags[index] = rewrittenReference;
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
Helpers\GenericListOrJsonArrayUtilities.cs (1)
35array[index] = (JsonNode)value;
Internal\JsonObjectAdapter.cs (1)
83obj[index] = value != null ? JsonSerializer.SerializeToNode(value, serializerOptions) : GetJsonNull();
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Transform.cs (1)
117combinatorArray[i] = element;
34 references to
aspire (7)
Agents\ClaudeCode\ClaudeCodeAgentClient.cs (2)
212if (postToolUse[groupIndex] is not JsonObject group 219if (IsAspireHook(hooks[hookIndex]))
Configuration\ConfigurationService.cs (3)
366if (array[i] is null) 372FlattenJsonValue(array[i], result, elementKey); 586return array[index];
src\Shared\Json\JsonFlattener.cs (2)
75if (array[i] is JsonObject arrayObject) 81result[arrayKey] = array[i]?.DeepClone();
Aspire.Hosting (10)
Dcp\JsonPatch.cs (4)
86AddOperations(currentArray[index], changedArray[index], AppendPath(path, index), operations); 96operations.Add(CreateOperation("add", AppendPath(path, index), changedArray[index])); 228JsonArray jsonArray => jsonArray[ParseArrayIndex(segment, jsonArray.Count, allowEnd: false)]
Pipelines\Internal\JsonFlattener.cs (2)
81if (array[i] is JsonObject arrayObject) 87result[arrayKey] = array[i]?.DeepClone();
Publishing\ContainerImageArchiveRewriter.cs (2)
248var reference = GetRequiredString(repoTags[index], entryName, $"'RepoTags[{index}]'"); 349if (manifests[descriptorIndex] is not JsonObject descriptor)
src\Shared\Json\JsonFlattener.cs (2)
75if (array[i] is JsonObject arrayObject) 81result[arrayKey] = array[i]?.DeepClone();
Aspire.Hosting.Native.Server (2)
Rpc\NativeProviderMetadata.cs (2)
44if (capabilities[index] is not JsonObject metadata || metadata["id"] is not JsonValue || 80if (callbackParameters[index] is not JsonObject projectedParameter || projectedParameter["type"] is not JsonObject projectedType)
Aspire.Hosting.RemoteHost (3)
Ats\AtsMarshaller.cs (2)
618converted.SetValue(UnmarshalFromJson(array[i], elementType, elementContext), i); 639list.Add(UnmarshalFromJson(array[i], elementType, elementContext));
Ats\ReferenceExpressionRef.cs (1)
120valueProviders[i] = providersArray[i];
Aspire.Hosting.RemoteHost.Tests (1)
CapabilityDispatcherTests.cs (1)
88var invoker = new TestCallbackInvoker { ResultToReturn = results[index] };
Microsoft.AspNetCore.JsonPatch.SystemTextJson (1)
Helpers\GenericListOrJsonArrayUtilities.cs (1)
21return array[index];
Microsoft.AspNetCore.OpenApi (5)
Extensions\JsonNodeSchemaExtensions.cs (1)
597if (typeArray[i]?.GetValue<string>() == "null")
Services\Schemas\OpenApiSchemaService.cs (4)
282if (rawEnum[i]?.GetValue<string>() != memberNames[i]) 637if (jsonArray[i] != null) 639var processedValue = ResolveReferencesRecursive(jsonArray[i]!, rootSchema); 784return currentArray[arrayIndex]
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonUtilities.Schema.Transform.cs (2)
114JsonNode element = TransformSchemaCore(combinatorArray[i], transformOptions, path); 115if (!ReferenceEquals(element, combinatorArray[i]))
Microsoft.TemplateEngine.Cli (1)
PostActionProcessors\ChmodPostActionProcessor.cs (1)
30values[i] = valueArray[i]?.GetValue<string>() ?? "";
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (2)
ConfigModel\PostActionModel.cs (2)
90JsonNode? action = jArray[postActionIndex]; 191JsonNode? jToken = jArray[i];