6 instantiations of ExecuteResourceCommandResponse
aspire (1)
BackchannelJsonSerializerContext.ExecuteResourceCommandResponse.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
(){ Success = (bool)args[0], Canceled = (bool)args[1], ErrorMessage = (string)args[2] },
Aspire.Cli.Tests (5)
Mcp\ExecuteResourceCommandToolTests.cs (4)
46
ExecuteResourceCommandResult = new
ExecuteResourceCommandResponse
{ Success = true }
69
ExecuteResourceCommandResult = new
ExecuteResourceCommandResponse
91
ExecuteResourceCommandResult = new
ExecuteResourceCommandResponse
113
ExecuteResourceCommandResult = new
ExecuteResourceCommandResponse
{ Success = true }
TestServices\TestAppHostAuxiliaryBackchannel.cs (1)
92
public ExecuteResourceCommandResponse ExecuteResourceCommandResult { get; set; } = new
ExecuteResourceCommandResponse
{ Success = true };
35 references to ExecuteResourceCommandResponse
aspire (33)
Backchannel\AppHostAuxiliaryBackchannel.cs (3)
711
public async Task<
ExecuteResourceCommandResponse
> ExecuteResourceCommandAsync(
726
var
response = await rpc.InvokeWithCancellationAsync<
ExecuteResourceCommandResponse
>(
Backchannel\BackchannelJsonSerializerContext.cs (1)
77
[JsonSerializable(typeof(
ExecuteResourceCommandResponse
))]
Backchannel\IAppHostAuxiliaryBackchannel.cs (1)
118
Task<
ExecuteResourceCommandResponse
> ExecuteResourceCommandAsync(
BackchannelJsonSerializerContext.ExecuteResourceCommandResponse.g.cs (23)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
>? _ExecuteResourceCommandResponse;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
> ExecuteResourceCommandResponse
22
get => _ExecuteResourceCommandResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
>)Options.GetTypeInfo(typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
> Create_ExecuteResourceCommandResponse(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
).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.
ExecuteResourceCommandResponse
>(options, objectInfo);
56
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
),
58
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)obj).Success,
66
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
).GetProperty("Success", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
77
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
),
79
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)obj).Canceled,
87
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
).GetProperty("Canceled", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
97
DeclaringType = typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
),
99
Getter = static obj => ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)obj).ErrorMessage,
107
AttributeProviderFactory = static () => typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
).GetProperty("ErrorMessage", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
117
private void ExecuteResourceCommandResponseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
? value)
127
writer.WriteBoolean(PropName_Success, ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)value).Success);
128
writer.WriteBoolean(PropName_Canceled, ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)value).Canceled);
129
writer.WriteString(PropName_ErrorMessage, ((global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
)value).ErrorMessage);
BackchannelJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
70
if (type == typeof(global::Aspire.Cli.Backchannel.
ExecuteResourceCommandResponse
))
Commands\ResourceCommandHelper.cs (3)
42
var
response = await interactionService.ShowStatusAsync(
62
var
response = await interactionService.ShowStatusAsync(
85
ExecuteResourceCommandResponse
response,
Mcp\Tools\ExecuteResourceCommandTool.cs (1)
73
var
response = await connection.ExecuteResourceCommandAsync(resourceName, commandName, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (2)
TestServices\TestAppHostAuxiliaryBackchannel.cs (2)
92
public
ExecuteResourceCommandResponse
ExecuteResourceCommandResult { get; set; } = new ExecuteResourceCommandResponse { Success = true };
94
public Task<
ExecuteResourceCommandResponse
> ExecuteResourceCommandAsync(