2 instantiations of CommandOutput
aspire (1)
BackchannelJsonSerializerContext.CommandOutput.g.cs (1)
30ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.CommandOutput(){ Text = (string)args[0], IsErrorMessage = (bool)args[1], LineNumber = (int?)args[2], Type = (string)args[3], ExitCode = (int?)args[4] },
Aspire.Cli.Tests (1)
TestServices\TestAppHostBackchannel.cs (1)
247yield return new CommandOutput { Text = "test", IsErrorMessage = false, LineNumber = 0 };
81 references to CommandOutput
aspire (79)
Backchannel\AppHostBackchannel.cs (4)
25IAsyncEnumerable<CommandOutput> ExecAsync(CancellationToken cancellationToken); 199public async IAsyncEnumerable<CommandOutput> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken) 205var commandOutputs = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<CommandOutput>>( 211await foreach (var commandOutput in commandOutputs.WithCancellation(cancellationToken))
Backchannel\BackchannelJsonSerializerContext.cs (2)
28[JsonSerializable(typeof(IAsyncEnumerable<CommandOutput>))] 29[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<CommandOutput>))]
BackchannelJsonSerializerContext.CommandOutput.g.cs (25)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.CommandOutput>? _CommandOutput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.CommandOutput> CommandOutput 20get => _CommandOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.CommandOutput>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.CommandOutput)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.CommandOutput> Create_CommandOutput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.CommandOutput>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.CommandOutput> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.CommandOutput> 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.CommandOutput>(options, objectInfo); 53DeclaringType = typeof(global::Aspire.Cli.Backchannel.CommandOutput), 55Getter = static obj => ((global::Aspire.Cli.Backchannel.CommandOutput)obj).Text, 73DeclaringType = typeof(global::Aspire.Cli.Backchannel.CommandOutput), 75Getter = static obj => ((global::Aspire.Cli.Backchannel.CommandOutput)obj).IsErrorMessage, 92DeclaringType = typeof(global::Aspire.Cli.Backchannel.CommandOutput), 94Getter = static obj => ((global::Aspire.Cli.Backchannel.CommandOutput)obj).LineNumber, 111DeclaringType = typeof(global::Aspire.Cli.Backchannel.CommandOutput), 113Getter = static obj => ((global::Aspire.Cli.Backchannel.CommandOutput)obj).Type, 130DeclaringType = typeof(global::Aspire.Cli.Backchannel.CommandOutput), 132Getter = static obj => ((global::Aspire.Cli.Backchannel.CommandOutput)obj).ExitCode, 149private void CommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.CommandOutput? value) 159writer.WriteString(PropName_Text, ((global::Aspire.Cli.Backchannel.CommandOutput)value).Text); 160writer.WriteBoolean(PropName_IsErrorMessage, ((global::Aspire.Cli.Backchannel.CommandOutput)value).IsErrorMessage); 162global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.CommandOutput)value).LineNumber, NullableInt32); 163writer.WriteString(PropName_Type, ((global::Aspire.Cli.Backchannel.CommandOutput)value).Type); 165global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.CommandOutput)value).ExitCode, NullableInt32);
BackchannelJsonSerializerContext.EnumeratorResultsCommandOutput.g.cs (21)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>>? _EnumeratorResultsCommandOutput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>> EnumeratorResultsCommandOutput 20get => _EnumeratorResultsCommandOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>>)Options.GetTypeInfo(typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>> Create_EnumeratorResultsCommandOutput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>> jsonTypeInfo)) 27var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>> 30ObjectWithParameterizedConstructorCreator = static args => new global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>(){ Values = (global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>)args[0], Finished = (bool)args[1] }, 36jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>>(options, objectInfo); 48var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>> 53DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>), 55Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)obj).Values, 65properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>>(options, info0); 72DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>), 74Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)obj).Finished, 92private void EnumeratorResultsCommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>? value) 103IReadOnlyListCommandOutputSerializeHandler(writer, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)value).Values); 104writer.WriteBoolean(PropName_finished, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)value).Finished); 116ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>),
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (4)
34if (type == typeof(global::Aspire.Cli.Backchannel.CommandOutput)) 90if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.CommandOutput>)) 110if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>)) 130if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>))
BackchannelJsonSerializerContext.IAsyncEnumerableCommandOutput.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>>? _IAsyncEnumerableCommandOutput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>> IAsyncEnumerableCommandOutput 20get => _IAsyncEnumerableCommandOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>> Create_IAsyncEnumerableCommandOutput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIAsyncEnumerableInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.CommandOutput>, global::Aspire.Cli.Backchannel.CommandOutput>(options, info);
BackchannelJsonSerializerContext.IReadOnlyListCommandOutput.g.cs (12)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>>? _IReadOnlyListCommandOutput; 18public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>> IReadOnlyListCommandOutput 20get => _IReadOnlyListCommandOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>)); 23private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>> Create_IReadOnlyListCommandOutput(global::System.Text.Json.JsonSerializerOptions options) 25if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>> jsonTypeInfo)) 27var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>> 33jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>, global::Aspire.Cli.Backchannel.CommandOutput>(options, info); 43private void IReadOnlyListCommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.CommandOutput>? value) 53foreach (global::Aspire.Cli.Backchannel.CommandOutput element in value)
Commands\ExecCommand.cs (1)
217await foreach (var output in outputStream)
Aspire.Cli.Tests (2)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
864public async IAsyncEnumerable<CommandOutput> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken)
TestServices\TestAppHostBackchannel.cs (1)
244public async IAsyncEnumerable<CommandOutput> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken)