2 instantiations of GoApiModel
Aspire.Hosting.CodeGeneration.Go (1)
AtsGoCodeGenerator.ApiProjection.cs (1)
63
return new
GoApiModel
Aspire.Hosting.CodeGeneration.Go.Tests (1)
GoApiExportTests.cs (1)
1028
return new
GoApiModel
22 references to GoApiModel
Aspire.Hosting.CodeGeneration.Go (5)
AtsGoApiReferenceExporter.cs (1)
54
var
model = new AtsGoCodeGenerator().BuildApiModel(
AtsGoCodeGenerator.ApiProjection.cs (1)
36
internal
GoApiModel
BuildApiModel(
GoApiExportWriter.cs (3)
10
/// Serializes a <see cref="
GoApiModel
"/> into the canonical schema version 1 export document.
22
public static JsonObject Write(
GoApiModel
model)
71
public static string WriteToJson(
GoApiModel
model, bool indented = false)
Aspire.Hosting.CodeGeneration.Go.Tests (17)
AtsGoCodeGeneratorTests.cs (1)
2786
var
api = new AtsGoCodeGenerator().BuildApiModel(
AtsGoDerivedBuilderTests.cs (1)
162
var
model = new AtsGoCodeGenerator().BuildApiModel(
GoApiExportTests.cs (15)
25
private static readonly Lazy<
GoApiModel
> s_everything = new(ExportEverything);
48
var
model = s_everything.Value;
73
var
model = BuildModel(TestTypesAssemblyName);
107
var
model = BuildModel(TestTypesAssemblyName);
139
var
model = BuildModel(HostingAssemblyName);
238
var
model = new AtsGoCodeGenerator().BuildApiModel(
278
var
model = s_everything.Value;
340
var
model = new AtsGoCodeGenerator().BuildApiModel(context, "Test", PackageVersion, ["Test"], CancellationToken.None);
358
var
model = s_everything.Value;
857
private static
GoApiModel
BuildModel(params string[] exportingAssemblyNames)
862
private static
GoApiModel
ExportEverything()
864
var
first = BuildModel(HostingAssemblyName, TestTypesAssemblyName);
905
private static void AssertDeclarationsAreSelfContained(
GoApiModel
model)
996
private static string RenderFocused(
GoApiModel
model, params (string ItemId, string[]? MemberNames)[] selection)
1023
private static
GoApiModel
CreateFocusedModel()