2 instantiations of PublishingPromptInput
aspire (1)
BackchannelJsonSerializerContext.PublishingPromptInput.g.cs (1)
30ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.PublishingPromptInput(){ Label = (string)args[0], InputType = (string)args[1], Required = (bool)args[2], Options = (global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, string>>)args[3], Value = (string)args[4], ValidationErrors = (global::System.Collections.Generic.IReadOnlyList<string>)args[5], AllowCustomChoice = (bool)args[6] },
Aspire.Cli.Tests (1)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
798var inputs = prompt.Inputs.Select(input => new PublishingPromptInput
55 references to PublishingPromptInput
aspire (55)
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
58if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput)) 138if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>))
BackchannelJsonSerializerContext.IReadOnlyListPublishingPromptInput.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>>? _IReadOnlyListPublishingPromptInput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> IReadOnlyListPublishingPromptInput 20get => _IReadOnlyListPublishingPromptInput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> Create_IReadOnlyListPublishingPromptInput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>, global::Aspire.Cli.Backchannel.PublishingPromptInput>(options, info); 43private void IReadOnlyListPublishingPromptInputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>? value) 53foreach (global::Aspire.Cli.Backchannel.PublishingPromptInput element in value)
BackchannelJsonSerializerContext.PublishingActivityData.g.cs (4)
30ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.PublishingActivityData(){ Id = (string)args[0], StatusText = (string)args[1], CompletionState = (string)args[2], StepId = (string)args[3], CompletionMessage = (string)args[4], Inputs = (global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>)args[5] }, 202var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> 219properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>>(options, info8); 292ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>),
BackchannelJsonSerializerContext.PublishingPromptInput.g.cs (31)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>? _PublishingPromptInput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> PublishingPromptInput 20get => _PublishingPromptInput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> Create_PublishingPromptInput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.PublishingPromptInput>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.PublishingPromptInput> 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>(options, objectInfo); 53DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 55Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Label, 73DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 75Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).InputType, 93DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 95Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Required, 112DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 114Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Options, 131DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 133Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Value, 150DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 152Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).ValidationErrors, 169DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 171Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).AllowCustomChoice, 188private void PublishingPromptInputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.PublishingPromptInput? value) 198writer.WriteString(PropName_Label, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Label); 199writer.WriteString(PropName_InputType, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).InputType); 200writer.WriteBoolean(PropName_Required, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Required); 202IReadOnlyListKeyValuePairStringStringSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Options); 203writer.WriteString(PropName_Value, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Value); 205IReadOnlyListStringSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).ValidationErrors); 206writer.WriteBoolean(PropName_AllowCustomChoice, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).AllowCustomChoice);
Commands\PublishCommandBase.cs (5)
480private static string BuildPromptText(PublishingPromptInput input, int inputCount, string statusText) 534var input = inputs[i]; 562private async Task<string?> HandleSingleInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken) 604private async Task<string?> HandleSelectInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken) 638private async Task<string?> HandleNumberInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
127public IReadOnlyList<PublishingPromptInput>? Inputs { get; init; }