EndpointAnnotation Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of EndpointAnnotation.
public EndpointAnnotation (System.Net.Sockets.ProtocolType protocol, string? uriScheme = default, string? transport = default, string? name = default, int? port = default, int? targetPort = default, bool? isExternal = default, bool isProxied = true);
new Aspire.Hosting.ApplicationModel.EndpointAnnotation : System.Net.Sockets.ProtocolType * string * string * string * Nullable<int> * Nullable<int> * Nullable<bool> * bool -> Aspire.Hosting.ApplicationModel.EndpointAnnotation
Public Sub New (protocol As ProtocolType, Optional uriScheme As String = Nothing, Optional transport As String = Nothing, Optional name As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional targetPort As Nullable(Of Integer) = Nothing, Optional isExternal As Nullable(Of Boolean) = Nothing, Optional isProxied As Boolean = true)
Parameters
- protocol
- ProtocolType
Network protocol: TCP or UDP are supported today, others possibly in future.
- uriScheme
- String
If a service is URI-addressable, this is the URI scheme to use for constructing service URI.
- transport
- String
Transport that is being used (e.g. http, http2, http3 etc).
- name
- String
Name of the service.
This is the port the resource is listening on. If the endpoint is used for the container, it is the container port.
Indicates that this endpoint should be exposed externally at publish time.
- isProxied
- Boolean
Specifies if the endpoint will be proxied by DCP. Defaults to true.