12 references to AsObject
Aspire.Hosting.Azure (5)
Provisioning\JsonExtensions.cs (1)
19
obj.
AsObject
().Add(key, node);
Provisioning\Provisioners\AzureProvisioner.cs (1)
195
? JsonNode.Parse(await File.ReadAllTextAsync(userSecretsPath, cancellationToken).ConfigureAwait(false))!.
AsObject
()
Provisioning\Provisioners\BicepProvisioner.cs (3)
64
foreach (var item in outputObj.
AsObject
())
289
resourceConfig.
AsObject
().Clear();
447
var parameters = JsonNode.Parse(jsonString)?.
AsObject
();
Aspire.Hosting.Tests (1)
Utils\ManifestUtils.cs (1)
73
if (!manifestNode.
AsObject
().TryGetPropertyValue("path", out var pathNode))
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (2)
184
var resources = depsJson!["targets"]?.
AsObject
().First().Value?[$"{referencedProjectName}/1.0.0"]?["resources"]?.
AsObject
();
Microsoft.ML.AutoML.SourceGenerator (2)
SearchSpaceGenerator.cs (2)
65
var defaultToken = t.
AsObject
().ContainsKey("default") ? t["default"] : null;
86
var searchSpaceNode = t.
AsObject
().ContainsKey("search_space") ? t["search_space"] : null;
System.Text.Json (2)
System\Text\Json\Nodes\JsonNode.cs (2)
240
return
AsObject
().GetItem(propertyName);
244
AsObject
().SetItem(propertyName, value);