5 instantiations of ExecuteCommandResult
Aspire.Hosting (1)
ApplicationModel\ResourceCommandAnnotation.cs (1)
125
public static ExecuteCommandResult Success() => new
ExecuteCommandResult
{ Success = true };
Stress.AppHost (4)
ResourceBuilderExtensions.cs (4)
53
return new
ExecuteCommandResult
{ Success = false, ErrorMessage = "Endpoints are not yet allocated." };
58
return new
ExecuteCommandResult
{ Success = false, ErrorMessage = $"The endpoint named '{endpointName}' on resource '{builder.Resource.Name}' does not have the expected scheme of '{expectedScheme}'." };
71
return new
ExecuteCommandResult
{ Success = false, ErrorMessage = ex.Message };
73
return new
ExecuteCommandResult
{ Success = true };
6 references to ExecuteCommandResult
Aspire.Hosting (6)
ApplicationModel\ResourceCommandAnnotation.cs (4)
21
Func<ExecuteCommandContext, Task<
ExecuteCommandResult
>> executeCommand,
66
public Func<ExecuteCommandContext, Task<
ExecuteCommandResult
>> ExecuteCommand { get; }
118
/// A factory for <see cref="
ExecuteCommandResult
"/>.
125
public static
ExecuteCommandResult
Success() => new ExecuteCommandResult { Success = true };
Dashboard\DashboardCommandExecutor.cs (1)
22
public async Task<
ExecuteCommandResult
> ExecuteCommandAsync(string resourceId, ResourceCommandAnnotation annotation, CancellationToken cancellationToken)
ResourceBuilderExtensions.cs (1)
987
Func<ExecuteCommandContext, Task<
ExecuteCommandResult
>> executeCommand,