71 references to ResourceBuilderExtensions
Aspire.Hosting (34)
ApplicationModel\CommandOptions.cs (1)
7/// Optional configuration for resource commands added with <see cref="ResourceBuilderExtensions.WithCommand{T}(Aspire.Hosting.ApplicationModel.IResourceBuilder{T}, string, string, Func{Aspire.Hosting.ApplicationModel.ExecuteCommandContext, Task{Aspire.Hosting.ApplicationModel.ExecuteCommandResult}}, Aspire.Hosting.ApplicationModel.CommandOptions?)"/>.
ApplicationModel\ContainerImagePushOptionsCallbackAnnotation.cs (2)
14/// Use <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/> 15/// or <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Func{ContainerImagePushOptionsCallbackContext, Task})"/>
ApplicationModel\ContainerImagePushOptionsCallbackContext.cs (1)
12/// This context is passed to callbacks registered via <see cref="ResourceBuilderExtensions.WithImagePushOptions{T}(IResourceBuilder{T}, Action{ContainerImagePushOptionsCallbackContext})"/>.
ApplicationModel\DebugSupportExtensions.cs (3)
110/// <c>WithDebugSupport</c> overload on <see cref="ResourceBuilderExtensions"/>, which owns the complete 153/// <see cref="ResourceBuilderExtensions.WithDebugSupport{T, TLaunchConfiguration}(IResourceBuilder{T}, Func{LaunchConfigurationCallbackContext, Task{TLaunchConfiguration}}, string)"/>, 184$"Call {nameof(ResourceBuilderExtensions.WithDebugSupport)} on the resource first. " +
ApplicationModel\Docker\ContainerFilesExtensions.cs (1)
10/// Provides Dockerfile builder extension methods for supporting <see cref="ResourceBuilderExtensions.PublishWithContainerFiles" />.
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
62/// one of the <c>WithDebugSupport</c> overloads on <see cref="ResourceBuilderExtensions"/>.
ApplicationModel\HttpCommandContext.cs (4)
8/// <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/> 9/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>. 95/// <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, string?, string?, HttpCommandOptions?)"/> 96/// or <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{EndpointReference}?, string?, HttpCommandOptions?)"/>.
ApplicationModel\HttpCommandOptions.cs (1)
33/// Optional configuration for resource HTTP commands added with <see cref="ResourceBuilderExtensions.WithHttpCommand{TResource}(Aspire.Hosting.ApplicationModel.IResourceBuilder{TResource}, string, string, string?, string?, Aspire.Hosting.ApplicationModel.HttpCommandOptions?)"/>.
ApplicationModel\HttpsEndpointUpdateCallbackContext.cs (1)
9/// Context provided to the callback of <see cref="ResourceBuilderExtensions.SubscribeHttpsEndpointsUpdate{TResource}"/>
ApplicationModel\ProcessCommandOptions.cs (1)
9/// Optional configuration for resource process commands added with <see cref="ResourceBuilderExtensions.WithProcessCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{ExecuteCommandContext, ValueTask{ProcessCommandSpec}}, ProcessCommandOptions?)"/>.
ApplicationModel\ProcessCommandResultContext.cs (1)
12/// <see cref="ResourceBuilderExtensions.WithProcessCommand{TResource}(IResourceBuilder{TResource}, string, string, Func{ExecuteCommandContext, ValueTask{ProcessCommandSpec}}, ProcessCommandOptions?)"/>.
ContainerResourceBuilderExtensions.cs (6)
44return ResourceBuilderExtensions.SetEndpointProxySupport(builder, proxyEnabled); 499/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, string[])"/> method. 519/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, Action{CommandLineArgsCallbackContext})"/> method. 543/// This is intended to pass additional arguments to the underlying container runtime run command to enable advanced features such as exposing GPUs to the container. To pass runtime arguments to the actual container, use the <see cref="ResourceBuilderExtensions.WithArgs{T}(IResourceBuilder{T}, Func{CommandLineArgsCallbackContext, Task})"/> method. 570/// Prefer <see cref="ResourceBuilderExtensions.WithPersistentLifetime{T}(IResourceBuilder{T})"/> or 571/// <see cref="ResourceBuilderExtensions.WithSessionLifetime{T}(IResourceBuilder{T})"/> for new code.
ParameterResourceBuilderExtensions.cs (1)
314/// Adds a parameter to the distributed application but wrapped in a resource with a connection string for use with <see cref="ResourceBuilderExtensions.WithReference{TDestination}(IResourceBuilder{TDestination}, IResourceBuilder{IResourceWithConnectionString}, string?, bool)"/>
ResourceBuilderExtensions.cs (9)
35private static readonly MethodInfo s_dispatchCustomWithReferenceMethod = typeof(ResourceBuilderExtensions).GetMethod(nameof(DispatchCustomWithReference), BindingFlags.NonPublic | BindingFlags.Static)!; 1199/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 1231/// with <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string)"/>. 1543/// Exposes an endpoint on a resource. A reference to this endpoint can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>. 1620/// Exposes an endpoint on a resource. A reference to this endpoint can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>. 1705/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>. 1730/// Exposes an endpoint on a resource. This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>. 1756/// This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>. 1804/// This endpoint reference can be retrieved using <see cref="ResourceBuilderExtensions.GetEndpoint{T}(IResourceBuilder{T}, string, NetworkIdentifier)"/>.
SupportsDebuggingAnnotation.cs (1)
14/// Added by a <c>WithDebugSupport</c> overload on <see cref="ResourceBuilderExtensions"/>.
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
35/// the extension method <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/>
Aspire.Hosting.Azure.Tests (2)
AzureFunctionsTests.cs (2)
20private static readonly MethodInfo s_polyglotWithReferenceMethod = typeof(ResourceBuilderExtensions) 22.Single(m => m.Name == nameof(ResourceBuilderExtensions.WithReference)
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
211$"If {runOnlySubject} is intentionally run-only, call {nameof(ResourceBuilderExtensions.ExcludeFromManifest)}() in C# or excludeFromManifest() in TypeScript.";
Aspire.Hosting.Foundry (2)
HostedAgent\HostedAgentBuilderExtension.cs (1)
454ResourceBuilderExtensions.WithComputeEnvironment(builder, project);
Project\ProjectBuilderExtension.cs (1)
73ResourceBuilderExtensions.WithReference(builder, project);
Aspire.Hosting.JavaScript.Tests (2)
AddNodeAppTests.cs (2)
17private static readonly MethodInfo s_polyglotWithReferenceMethod = typeof(ResourceBuilderExtensions) 19.Single(m => m.Name == nameof(ResourceBuilderExtensions.WithReference)
Aspire.Hosting.Kubernetes (1)
Extensions\EndpointRoutingValidation.cs (1)
20/// <see cref="ResourceBuilderExtensions.WithExternalHttpEndpoints{T}"/> or
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
105/// the extension method <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/>
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
40/// using the <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/> 137/// using the <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/>
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (2)
734private static readonly MethodInfo s_polyglotWithReferenceMethod = typeof(ResourceBuilderExtensions) 736.Single(m => m.Name == nameof(ResourceBuilderExtensions.WithReference)
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
168ResourceBuilderExtensions.WithReference(builder, qdrantResource, connectionName);
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (2)
17private static readonly MethodInfo s_polyglotWithReferenceMethod = typeof(ResourceBuilderExtensions) 19.Single(m => m.Name == nameof(ResourceBuilderExtensions.WithReference)
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
32/// using the <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/> 56/// using the <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/>
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
108/// the extension method <see cref="ResourceBuilderExtensions.WaitFor{T}(IResourceBuilder{T}, IResourceBuilder{IResource})"/>
Aspire.Hosting.Tests (17)
ExecutableResourceBuilderExtensionTests.cs (1)
332var guidance = $"The launch configuration producer returns '{producerReturnType}'. An asynchronous producer must bind to an asynchronous {nameof(ResourceBuilderExtensions.WithDebugSupport)} overload either by accepting the launch mode and a {nameof(CancellationToken)} or by accepting a {nameof(LaunchConfigurationCallbackContext)}; otherwise the task itself is used as the launch configuration.";
WithEndpointTests.cs (9)
23typeof(ResourceBuilderExtensions), 24nameof(ResourceBuilderExtensions.WithEndpoint), 36typeof(ResourceBuilderExtensions), 37nameof(ResourceBuilderExtensions.WithEndpoint), 48typeof(ResourceBuilderExtensions), 49nameof(ResourceBuilderExtensions.WithHttpEndpoint), 58typeof(ResourceBuilderExtensions), 59nameof(ResourceBuilderExtensions.WithHttpsEndpoint), 153ResourceBuilderExtensions.WithHttpEndpoint(container, port: null, targetPort: null, name: "http", env: null, isProxied: true);
WithEnvironmentTests.cs (1)
428ResourceBuilderExtensions.WithEnvironment<ProjectResource, TestValueAndManifestProvider>(null!, "TEST_VAR", testValue));
WithHttpCommandTests.cs (4)
41var success = ResourceBuilderExtensions.TryInferHttpCommandResultFormat(contentType, out var resultFormat); 55var result = await ResourceBuilderExtensions.GetDefaultHttpCommandResultAsync(response, new HttpCommandOptions(), CancellationToken.None); 70var result = await ResourceBuilderExtensions.GetDefaultHttpCommandResultAsync(response, new HttpCommandOptions 89var result = await ResourceBuilderExtensions.GetDefaultHttpCommandResultAsync(response, new HttpCommandOptions
WithReferenceTests.cs (2)
262ResourceBuilderExtensions.WithReference(projectB, (IResourceBuilder<IResource>)resource, connectionName: "db", name: "api"); 284ResourceBuilderExtensions.WithReference(projectB, (IResourceBuilder<IResource>)resource, connectionName: "db");