2 instantiations of CommandOutput
aspire (1)
BackchannelJsonSerializerContext.CommandOutput.g.cs (1)
32
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)
252
yield return new
CommandOutput
{ Text = "test", IsErrorMessage = false, LineNumber = 0 };
91 references to CommandOutput
aspire (89)
Backchannel\AppHostBackchannel.cs (4)
26
IAsyncEnumerable<
CommandOutput
> ExecAsync(CancellationToken cancellationToken);
213
public async IAsyncEnumerable<
CommandOutput
> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken)
219
var commandOutputs = await rpc.InvokeWithCancellationAsync<IAsyncEnumerable<
CommandOutput
>>(
225
await foreach (
var
commandOutput in commandOutputs.WithCancellation(cancellationToken))
Backchannel\BackchannelJsonSerializerContext.cs (2)
29
[JsonSerializable(typeof(IAsyncEnumerable<
CommandOutput
>))]
30
[JsonSerializable(typeof(MessageFormatterEnumerableTracker.EnumeratorResults<
CommandOutput
>))]
BackchannelJsonSerializerContext.CommandOutput.g.cs (31)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
CommandOutput
>? _CommandOutput;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
CommandOutput
> CommandOutput
22
get => _CommandOutput ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
CommandOutput
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
CommandOutput
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
CommandOutput
> Create_CommandOutput(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
CommandOutput
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
CommandOutput
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
CommandOutput
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Aspire.Cli.Backchannel.
CommandOutput
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
CommandOutput
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
CommandOutput
)obj).Text,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetProperty("Text", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
79
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
CommandOutput
),
81
Getter = static obj => ((global::Aspire.Cli.Backchannel.
CommandOutput
)obj).IsErrorMessage,
89
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetProperty("IsErrorMessage", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
99
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
CommandOutput
),
101
Getter = static obj => ((global::Aspire.Cli.Backchannel.
CommandOutput
)obj).LineNumber,
109
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetProperty("LineNumber", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
119
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
CommandOutput
),
121
Getter = static obj => ((global::Aspire.Cli.Backchannel.
CommandOutput
)obj).Type,
129
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
139
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
CommandOutput
),
141
Getter = static obj => ((global::Aspire.Cli.Backchannel.
CommandOutput
)obj).ExitCode,
149
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
CommandOutput
).GetProperty("ExitCode", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
159
private void CommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
CommandOutput
? value)
169
writer.WriteString(PropName_Text, ((global::Aspire.Cli.Backchannel.
CommandOutput
)value).Text);
170
writer.WriteBoolean(PropName_IsErrorMessage, ((global::Aspire.Cli.Backchannel.
CommandOutput
)value).IsErrorMessage);
172
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.
CommandOutput
)value).LineNumber, NullableInt32);
173
writer.WriteString(PropName_Type, ((global::Aspire.Cli.Backchannel.
CommandOutput
)value).Type);
175
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Aspire.Cli.Backchannel.
CommandOutput
)value).ExitCode, NullableInt32);
BackchannelJsonSerializerContext.EnumeratorResultsCommandOutput.g.cs (25)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>>? _EnumeratorResultsCommandOutput;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>> EnumeratorResultsCommandOutput
22
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
>));
25
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)
27
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))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>>
32
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] },
35
ConstructorAttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>>(options, objectInfo);
51
var info0 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>>
56
DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>),
58
Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>)obj).Values,
66
AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>).GetProperty("Values", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>), global::System.Array.Empty<global::System.Type>(), null),
69
properties[0] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>>(options, info0);
76
DeclaringType = typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>),
78
Getter = static obj => ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>)obj).Finished,
86
AttributeProviderFactory = static () => typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>).GetProperty("Finished", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
97
private void EnumeratorResultsCommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>? value)
108
IReadOnlyListCommandOutputSerializeHandler(writer, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>)value).Values);
109
writer.WriteBoolean(PropName_finished, ((global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>)value).Finished);
119
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
))
94
if (type == typeof(global::StreamJsonRpc.Reflection.MessageFormatterEnumerableTracker.EnumeratorResults<global::Aspire.Cli.Backchannel.
CommandOutput
>))
114
if (type == typeof(global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.
CommandOutput
>))
134
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;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.
CommandOutput
>> IAsyncEnumerableCommandOutput
22
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
>));
25
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)
27
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))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IAsyncEnumerable<global::Aspire.Cli.Backchannel.
CommandOutput
>>
35
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;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>> IReadOnlyListCommandOutput
22
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
>));
25
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)
27
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))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>>
35
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);
45
private void IReadOnlyListCommandOutputSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Aspire.Cli.Backchannel.
CommandOutput
>? value)
55
foreach (global::Aspire.Cli.Backchannel.
CommandOutput
element in value)
Commands\ExecCommand.cs (1)
223
await foreach (
var
output in outputStream)
Aspire.Cli.Tests (2)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
875
public async IAsyncEnumerable<
CommandOutput
> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken)
TestServices\TestAppHostBackchannel.cs (1)
249
public async IAsyncEnumerable<
CommandOutput
> ExecAsync([EnumeratorCancellation] CancellationToken cancellationToken)