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