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