57 references to DeepClone
aspire (12)
Backchannel\ResourceSnapshotMapper.cs (1)
89
p => p.Value?.
DeepClone
());
Migrations\TypeScriptAppHostMigration.cs (1)
264
rewritten.Add(entry?.
DeepClone
());
Scaffolding\PackageJsonMerger.cs (4)
128
existing[key] = sourceValue.
DeepClone
();
308
existingEngines[key] = value.
DeepClone
();
312
existingEngines[key] = value.
DeepClone
();
335
target[key] = sourceValue.
DeepClone
();
Scaffolding\ScaffoldingService.cs (2)
661
existing[key] = scaffoldValue?.
DeepClone
();
675
existingArray.Add(entry?.
DeepClone
());
src\Shared\Json\JsonFlattener.cs (3)
50
current[keys[^1]] = kvp.Value?.
DeepClone
();
81
result[arrayKey] = array[i]?.
DeepClone
();
87
result[key] = kvp.Value?.
DeepClone
();
Utils\ConfigurationHelper.cs (1)
315
colonKeys.Add((kvp.Key, kvp.Value?.
DeepClone
()));
Aspire.Hosting (31)
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1391
JsonNode jsonNode => jsonNode.
DeepClone
(),
Dcp\JsonPatch.cs (8)
27
var result = current?.
DeepClone
();
115
result["value"] = value?.
DeepClone
();
196
_ => value?.
DeepClone
(),
242
target[propertyName] = value?.
DeepClone
();
255
target[propertyName] = value?.
DeepClone
();
264
target.Add(value?.
DeepClone
());
272
target.Insert(index, value?.
DeepClone
());
278
target[index] = value?.
DeepClone
();
Pipelines\DeploymentStateSection.cs (1)
40
internal JsonObject OriginalData { get; set; } = data?.
DeepClone
().AsObject() ?? [];
Pipelines\Internal\DeploymentStateManagerBase.cs (4)
195
data = o.
DeepClone
().AsObject();
207
section.OriginalData = section.Data.
DeepClone
().AsObject();
257
SetNestedPropertyValue(_state, section.SectionName, section.Data.
DeepClone
().AsObject());
259
section.OriginalData = section.Data.
DeepClone
().AsObject();
Pipelines\Internal\FileDeploymentStateManager.cs (14)
286
var mergedSection = base.GetSectionState(state, sectionName, includeLegacyState)?.
DeepClone
();
299
currentValueExists ? TryGetNestedPropertyValue(_currentState, claimedSectionName)?.
DeepClone
() : null,
359
SetNestedNodeValue(_legacyStateSnapshot, sectionName, legacySectionData.
DeepClone
(), valueExists: true);
386
new JsonObject { [""] = sectionValue.
DeepClone
() },
433
var mergedState = legacyState.
DeepClone
().AsObject();
448
target[name] = sourceValue?.
DeepClone
();
543
SetNestedNodeValue(currentState, path, value?.
DeepClone
(), savedExists);
556
var result = latestValue?.
DeepClone
() as JsonObject ?? [];
584
? latestValue?.
DeepClone
()
585
: savedValue?.
DeepClone
();
597
return (latestExists, latestValue?.
DeepClone
());
610
? (true, savedValue?.
DeepClone
())
632
TryGetNestedPropertyValue(currentState, sectionName)?.
DeepClone
(),
808
[LegacyStateProperty] = legacyStateSnapshot.
DeepClone
(),
Pipelines\Internal\JsonFlattener.cs (3)
56
current[keys[^1]] = kvp.Value?.
DeepClone
();
87
result[arrayKey] = array[i]?.
DeepClone
();
93
result[key] = kvp.Value?.
DeepClone
();
Aspire.Hosting.Azure.Sandboxes (4)
AzureSandboxContainerDeployment.cs (4)
1555
stateSection.Data.
DeepClone
().AsObject(),
1895
pendingDeploymentCleanup = stateSection.Data.
DeepClone
().AsObject();
1903
stateSection.Data["PendingLegacyDeploymentCleanup"]?.
DeepClone
() as JsonObject;
1915
stateSection.Data["PendingLegacyDeploymentCleanup"] = pendingDeploymentCleanup.
DeepClone
();
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceExtensionsTests.cs (2)
5380
data = existingData?.
DeepClone
().AsObject() ?? [];
5410
_sections[section.SectionName] = section.Data.
DeepClone
().AsObject();
Aspire.Hosting.RemoteHost (1)
CodeGeneration\CodeGenerationService.cs (1)
195
Value = value.Value?.
DeepClone
(),
Aspire.Hosting.RemoteHost.Tests (1)
ReferenceExpressionRefTests.cs (1)
249
providersArray.Add(p?.
DeepClone
());
Aspire.Hosting.Tests (2)
Orchestrator\ParameterProcessorTests.cs (2)
1665
? obj.
DeepClone
().AsObject()
1680
_unflattenedState[section.SectionName] = section.Data.
DeepClone
().AsObject();
Microsoft.AspNetCore.OpenApi (3)
Services\Schemas\OpenApiSchemaService.cs (3)
603
return resolvedNode.
DeepClone
();
623
newObject[property.Key] = processedValue?.
DeepClone
();
640
newArray.Add(processedValue?.
DeepClone
());
Microsoft.NET.Build.Tasks (1)
GenerateRuntimeConfigurationFiles.cs (1)
483
json[rawOption.Key] = rawOption.Value?.
DeepClone
();