1 instantiation of CommandSpec
aspire (1)
BackchannelJsonSerializerContext.CommandSpec.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Hosting.Ats.CommandSpec(){ Command = (string)args[0], Args = (string[])args[1], EnvironmentVariables = (global::System.Collections.Generic.Dictionary<string, string>)args[2] },
52 references to CommandSpec
aspire (52)
Backchannel\BackchannelJsonSerializerContext.cs (1)
17[JsonSerializable(typeof(CommandSpec))]
BackchannelJsonSerializerContext.CommandSpec.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.CommandSpec>? _CommandSpec; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.CommandSpec> CommandSpec 22get => _CommandSpec ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.CommandSpec>)Options.GetTypeInfo(typeof(global::Aspire.Hosting.Ats.CommandSpec)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.CommandSpec> Create_CommandSpec(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Hosting.Ats.CommandSpec>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Hosting.Ats.CommandSpec> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Hosting.Ats.CommandSpec> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.CommandSpec).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.CommandSpec>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 58Getter = static obj => ((global::Aspire.Hosting.Ats.CommandSpec)obj).Command, 66AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.CommandSpec).GetProperty("Command", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 81Getter = static obj => ((global::Aspire.Hosting.Ats.CommandSpec)obj).Args, 89AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.CommandSpec).GetProperty("Args", InstanceMemberBindingFlags, null, typeof(string[]), global::System.Array.Empty<global::System.Type>(), null), 102DeclaringType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 104Getter = static obj => ((global::Aspire.Hosting.Ats.CommandSpec)obj).EnvironmentVariables, 112AttributeProviderFactory = static () => typeof(global::Aspire.Hosting.Ats.CommandSpec).GetProperty("EnvironmentVariables", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.Dictionary<string, string>), global::System.Array.Empty<global::System.Type>(), null), 122private void CommandSpecSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Hosting.Ats.CommandSpec? value) 132writer.WriteString(PropName_Command, ((global::Aspire.Hosting.Ats.CommandSpec)value).Command); 134StringArraySerializeHandler(writer, ((global::Aspire.Hosting.Ats.CommandSpec)value).Args); 136DictionaryStringStringSerializeHandler(writer, ((global::Aspire.Hosting.Ats.CommandSpec)value).EnvironmentVariables);
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
98if (type == typeof(global::Aspire.Hosting.Ats.CommandSpec))
BackchannelJsonSerializerContext.RuntimeSpec.g.cs (20)
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] }, 143var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Hosting.Ats.CommandSpec> 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), 161properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Hosting.Ats.CommandSpec>(options, info4); 163var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Hosting.Ats.CommandSpec> 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), 181properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Hosting.Ats.CommandSpec>(options, info5); 186var info6 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Hosting.Ats.CommandSpec> 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), 204properties[6] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Hosting.Ats.CommandSpec>(options, info6); 206var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Aspire.Hosting.Ats.CommandSpec> 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), 224properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Aspire.Hosting.Ats.CommandSpec>(options, info7); 299ParameterType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 308ParameterType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 317ParameterType = typeof(global::Aspire.Hosting.Ats.CommandSpec), 326ParameterType = typeof(global::Aspire.Hosting.Ats.CommandSpec),
Projects\GuestRuntime.cs (3)
115var commandSpec = watchMode && _spec.WatchExecute is not null 139var commandSpec = _spec.PublishExecute ?? _spec.Execute; 145CommandSpec commandSpec,
src\Aspire.Hosting\Ats\RuntimeSpec.cs (4)
37public CommandSpec? InstallDependencies { get; init; } 42public required CommandSpec Execute { get; init; } 47public CommandSpec? WatchExecute { get; init; } 52public CommandSpec? PublishExecute { get; init; }