Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version introduced: 9.1
WithEndpointProxySupport
is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
-or-
ProxySupportAnnotation
is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
Both WithEndpointProxySupport
and ProxySupportAnnotation
are considered experimental APIs.
Container resources use proxied endpoints by default. Adjusting this setting is experimental. For more information, see WithEndpointProxySupport.
Example
The following code generates ASPIREPROXYENDPOINTS001
:
var builder = DistributedApplication.CreateBuilder(args);
var redis = builder.AddRedis($"example-redis", 1234)
.WithEndpointProxySupport(false);
To correct this Error
Suppress the Error with either of the following methods:
Set the severity of the rule in the .editorconfig file.
[*.{cs,vb}] dotnet_diagnostic.ASPIREPROXYENDPOINTS001.severity = none
For more information about editor config files, see Configuration files for code analysis rules.
Add the following
PropertyGroup
to your project file:<PropertyGroup> <NoWarn>$(NoWarn);ASPIREPROXYENDPOINTS001</NoWarn> </PropertyGroup>
Suppress in code with the
#pragma warning disable ASPIREPROXYENDPOINTS001
directive.
.NET Aspire