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