2 instantiations of PublishingPromptInputAnswer
aspire (2)
BackchannelJsonSerializerContext.PublishingPromptInputAnswer.g.cs (1)
31ObjectCreator = () => new global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer(),
Commands\PipelineCommandBase.cs (1)
718answers[i] = new PublishingPromptInputAnswer
45 references to PublishingPromptInputAnswer
aspire (39)
Backchannel\AppHostBackchannel.cs (4)
24Task CompletePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken); 25Task UpdatePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken); 187public async Task CompletePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken) 200public async Task UpdatePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken)
Backchannel\BackchannelJsonSerializerContext.cs (1)
27[JsonSerializable(typeof(PublishingPromptInputAnswer[]))]
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
62if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)) 66if (type == typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]))
BackchannelJsonSerializerContext.PublishingPromptInputAnswer.g.cs (21)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer>? _PublishingPromptInputAnswer; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer> PublishingPromptInputAnswer 22get => _PublishingPromptInputAnswer ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer> Create_PublishingPromptInputAnswer(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer> 35ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).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.PublishingPromptInputAnswer>(options, objectInfo); 56DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer), 58Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)obj).Name, 59Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)obj).Name = value!, 66AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer), 78Getter = static obj => ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)obj).Value, 79Setter = static (obj, value) => ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)obj).Value = value!, 86AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 96private void PublishingPromptInputAnswerSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer? value) 106writer.WriteString(PropName_Name, ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)value).Name); 107writer.WriteString(PropName_Value, ((global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer)value).Value);
BackchannelJsonSerializerContext.PublishingPromptInputAnswerArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]>? _PublishingPromptInputAnswerArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]> PublishingPromptInputAnswerArray 22get => _PublishingPromptInputAnswerArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]> Create_PublishingPromptInputAnswerArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer>(options, info); 45private void PublishingPromptInputAnswerArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.PublishingPromptInputAnswer[]? value)
Commands\PipelineCommandBase.cs (1)
697var answers = new PublishingPromptInputAnswer[inputs.Count];
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (4)
830public Task CompletePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken) 835public Task UpdatePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken) 840private Task CompletePromptResponseCoreAsync(string promptId, PublishingPromptInputAnswer[] answers, bool updateResponse) 890internal sealed record PromptCompletion(string PromptId, PublishingPromptInputAnswer[] Answers, bool UpdateResponse);
TestServices\TestAppHostBackchannel.cs (2)
239public Task CompletePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken) 244public Task UpdatePromptResponseAsync(string promptId, PublishingPromptInputAnswer[] answers, CancellationToken cancellationToken)