1 instantiation of RuntimeSpec
aspire (1)
BackchannelJsonSerializerContext.RuntimeSpec.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Hosting.Ats.
RuntimeSpec
(){ Language = (string)args[0], DisplayName = (string)args[1], CodeGenLanguage = (string)args[2], DetectionPatterns = (string[])args[3], InstallDependencies = (global::Aspire.Hosting.Ats.CommandSpec)args[4], Execute = (global::Aspire.Hosting.Ats.CommandSpec)args[5], WatchExecute = (global::Aspire.Hosting.Ats.CommandSpec)args[6], PublishExecute = (global::Aspire.Hosting.Ats.CommandSpec)args[7] },
53 references to RuntimeSpec
aspire (53)
Backchannel\BackchannelJsonSerializerContext.cs (1)
16
[JsonSerializable(typeof(
RuntimeSpec
))]
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
102
if (type == typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
))
BackchannelJsonSerializerContext.RuntimeSpec.g.cs (43)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
>? _RuntimeSpec;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
> RuntimeSpec
22
get => _RuntimeSpec ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
> Create_RuntimeSpec(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.Ats.
RuntimeSpec
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.Ats.
RuntimeSpec
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Hosting.Ats.
RuntimeSpec
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
58
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).Language,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("Language", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
81
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).DisplayName,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("DisplayName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
102
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
104
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).CodeGenLanguage,
112
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("CodeGenLanguage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
125
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
127
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).DetectionPatterns,
135
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("DetectionPatterns", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null),
148
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
150
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).InstallDependencies,
158
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("InstallDependencies", InstanceMemberBindingFlags, null, typeof(global::Aspire.Hosting.Ats.CommandSpec), global::System.Array.Empty<global::System.Type>(), null),
168
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
170
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).Execute,
178
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("Execute", InstanceMemberBindingFlags, null, typeof(global::Aspire.Hosting.Ats.CommandSpec), global::System.Array.Empty<global::System.Type>(), null),
191
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
193
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).WatchExecute,
201
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("WatchExecute", InstanceMemberBindingFlags, null, typeof(global::Aspire.Hosting.Ats.CommandSpec), global::System.Array.Empty<global::System.Type>(), null),
211
DeclaringType = typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
),
213
Getter = static obj => ((global::Aspire.Hosting.Ats.
RuntimeSpec
)obj).PublishExecute,
221
AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.
RuntimeSpec
).GetProperty("PublishExecute", InstanceMemberBindingFlags, null, typeof(global::Aspire.Hosting.Ats.CommandSpec), global::System.Array.Empty<global::System.Type>(), null),
231
private void RuntimeSpecSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.Ats.
RuntimeSpec
? value)
241
writer.WriteString(PropName_Language, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).Language);
242
writer.WriteString(PropName_DisplayName, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).DisplayName);
243
writer.WriteString(PropName_CodeGenLanguage, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).CodeGenLanguage);
245
StringArraySerializeHandler(writer, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).DetectionPatterns);
247
CommandSpecSerializeHandler(writer, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).InstallDependencies);
249
CommandSpecSerializeHandler(writer, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).Execute);
251
CommandSpecSerializeHandler(writer, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).WatchExecute);
253
CommandSpecSerializeHandler(writer, ((global::Aspire.Hosting.Ats.
RuntimeSpec
)value).PublishExecute);
Projects\AppHostRpcClient.cs (2)
46
public Task<
RuntimeSpec
> GetRuntimeSpecAsync(string languageId, CancellationToken cancellationToken)
47
=> _jsonRpc.InvokeWithCancellationAsync<
RuntimeSpec
>("getRuntimeSpec", [languageId], cancellationToken);
Projects\GuestAppHostProject.cs (1)
1041
var
runtimeSpec = await rpcClient.GetRuntimeSpecAsync(_resolvedLanguage.LanguageId, cancellationToken);
Projects\GuestRuntime.cs (3)
13
/// Interprets <see cref="
RuntimeSpec
"/> to install dependencies and execute AppHost processes.
17
private readonly
RuntimeSpec
_spec;
25
public GuestRuntime(
RuntimeSpec
spec, ILogger logger)
Projects\IAppHostRpcClient.cs (1)
22
Task<
RuntimeSpec
> GetRuntimeSpecAsync(string languageId, CancellationToken cancellationToken);
Scaffolding\ScaffoldingService.cs (1)
179
var
runtimeSpec = await rpcClient.GetRuntimeSpecAsync(language.LanguageId.Value, cancellationToken);