2 instantiations of PublishingPromptInput
aspire (1)
BackchannelJsonSerializerContext.PublishingPromptInput.g.cs (1)
32ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.PublishingPromptInput(){ Name = (string)args[0], Label = (string)args[1], InputType = (string)args[2], Required = (bool)args[3], Options = (global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, string>>)args[4], Value = (string)args[5], ValidationErrors = (global::System.Collections.Generic.IReadOnlyList<string>)args[6], AllowCustomChoice = (bool)args[7], UpdateStateOnChange = (bool)args[8], Loading = (bool)args[9], Disabled = (bool)args[10] },
Aspire.Cli.Tests (1)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
798var inputs = prompt.Inputs.Select(input => new PublishingPromptInput
80 references to PublishingPromptInput
aspire (80)
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
58if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput)) 142if (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; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> IReadOnlyListPublishingPromptInput 22get => _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>)); 25private 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) 27if (!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)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> 35jsonTypeInfo = 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); 45private void IReadOnlyListPublishingPromptInputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>? value) 55foreach (global::Aspire.Cli.Backchannel.PublishingPromptInput element in value)
BackchannelJsonSerializerContext.PublishingActivityData.g.cs (5)
32ObjectWithParameterizedConstructorCreator = 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], LogLevel = (string)args[6], Timestamp = (global::System.DateTimeOffset?)args[7], EnableMarkdown = (bool)args[8] }, 219var info8 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>> 234AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingActivityData).GetProperty("Inputs", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>), global::System.Array.Empty<global::System.Type>(), null), 237properties[8] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>>(options, info8); 382ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.PublishingPromptInput>),
BackchannelJsonSerializerContext.PublishingPromptInput.g.cs (55)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>? _PublishingPromptInput; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> PublishingPromptInput 22get => _PublishingPromptInput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> Create_PublishingPromptInput(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.PublishingPromptInput>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.PublishingPromptInput> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.PublishingPromptInput>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 58Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Name, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 78Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Label, 86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Label", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 99DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 101Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).InputType, 109AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("InputType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 122DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 124Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Required, 132AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Required", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 144Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Options, 152AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Options", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::System.Collections.Generic.KeyValuePair<string, string>>), global::System.Array.Empty<global::System.Type>(), null), 162DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 164Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Value, 172AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 182DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 184Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).ValidationErrors, 192AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("ValidationErrors", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<string>), global::System.Array.Empty<global::System.Type>(), null), 202DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 204Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).AllowCustomChoice, 212AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("AllowCustomChoice", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 222DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 224Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).UpdateStateOnChange, 232AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("UpdateStateOnChange", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 242DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 244Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Loading, 252AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Loading", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 262DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput), 264Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInput)obj).Disabled, 272AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInput).GetProperty("Disabled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null), 282private void PublishingPromptInputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.PublishingPromptInput? value) 292writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Name); 293writer.WriteString(PropName_Label, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Label); 294writer.WriteString(PropName_InputType, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).InputType); 295writer.WriteBoolean(PropName_Required, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Required); 297IReadOnlyListKeyValuePairStringStringSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Options); 298writer.WriteString(PropName_Value, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Value); 300IReadOnlyListStringSerializeHandler(writer, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).ValidationErrors); 301writer.WriteBoolean(PropName_AllowCustomChoice, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).AllowCustomChoice); 302writer.WriteBoolean(PropName_UpdateStateOnChange, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).UpdateStateOnChange); 303writer.WriteBoolean(PropName_Loading, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Loading); 304writer.WriteBoolean(PropName_Disabled, ((global::Aspire.Cli.Backchannel.PublishingPromptInput)value).Disabled);
Commands\PipelineCommandBase.cs (5)
646private static string BuildPromptText(PublishingPromptInput input, int inputCount, string statusText, PublishingActivityData activityData) 700var input = inputs[i]; 728private async Task<string?> HandleSingleInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken) 770private async Task<string?> HandleSelectInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken) 804private async Task<string?> HandleNumberInputAsync(PublishingPromptInput input, string promptText, CancellationToken cancellationToken)
src\Aspire.Hosting\Backchannel\BackchannelDataTypes.cs (1)
127public IReadOnlyList<PublishingPromptInput>? Inputs { get; init; }