EndpointAnnotation Constructors
ClassConstructors4 members
Represents an endpoint annotation that describes how a service should be bound to a network.
Constructor(ProtocolType, string?, string?, string?, int?, int?, bool?, bool?) Section titled Constructor(ProtocolType, string?, string?, string?, int?, int?, bool?, bool?) Initializes a new instance of
EndpointAnnotation . public sealed class EndpointAnnotation{ public EndpointAnnotation( ProtocolType protocol, string? uriScheme = null, string? transport = null, string? name = null, int? port = null, int? targetPort = null, bool? isExternal = null, bool? isProxied = null) { // ... }}Parameters
protocolProtocolType Network protocol: TCP or UDP are supported today, others possibly in future.uriScheme string?optionalIf a service is URI-addressable, this is the URI scheme to use for constructing service URI.transportstring?optionalTransport that is being used (e.g. http, http2, http3 etc).namestring?optionalName of the service.portint?optionalDesired port for the service.targetPort int?optionalThis is the port the resource is listening on. If the endpoint is used for the container, it is the container port.isExternal bool?optionalIndicates that this endpoint should be exposed externally at publish time.isProxied bool?optionalSpecifies if the endpoint will be proxied by DCP. Defaults to null.Constructor(ProtocolType, string?, string?, string?, int?, int?, bool?, bool) Section titled Constructor(ProtocolType, string?, string?, string?, int?, int?, bool?, bool) Initializes a new instance of
EndpointAnnotation . public sealed class EndpointAnnotation{ public EndpointAnnotation( ProtocolType protocol, string? uriScheme, string? transport, string? name, int? port, int? targetPort, bool? isExternal, bool isProxied) { // ... }}Parameters
protocolProtocolType 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.transportstring?Transport that is being used (e.g. http, http2, http3 etc).namestring?Name of the service.portint?Desired port for the service.targetPort int?This is the port the resource is listening on. If the endpoint is used for the container, it is the container port.isExternal bool?Indicates that this endpoint should be exposed externally at publish time.isProxied boolSpecifies if the endpoint will be proxied by DCP.Constructor(ProtocolType, NetworkIdentifier?, string?, string?, string?, int?, int?, bool?, bool?) Section titled Constructor(ProtocolType, NetworkIdentifier?, string?, string?, string?, int?, int?, bool?, bool?) Initializes a new instance of
EndpointAnnotation . public sealed class EndpointAnnotation{ public EndpointAnnotation( ProtocolType protocol, NetworkIdentifier? networkId, string? uriScheme = null, string? transport = null, string? name = null, int? port = null, int? targetPort = null, bool? isExternal = null, bool? isProxied = null) { // ... }}Parameters
protocolProtocolType Network protocol: TCP or UDP are supported today, others possibly in future.networkId NetworkuriScheme string?optionalIf a service is URI-addressable, this is the URI scheme to use for constructing service URI.transportstring?optionalTransport that is being used (e.g. http, http2, http3 etc).namestring?optionalName of the service.portint?optionalDesired port for the service.targetPort int?optionalThis is the port the resource is listening on. If the endpoint is used for the container, it is the container port.isExternal bool?optionalIndicates that this endpoint should be exposed externally at publish time.isProxied bool?optionalSpecifies if the endpoint will be proxied by DCP. Defaults to null.Constructor(ProtocolType, NetworkIdentifier?, string?, string?, string?, int?, int?, bool?, bool) Section titled Constructor(ProtocolType, NetworkIdentifier?, string?, string?, string?, int?, int?, bool?, bool) Initializes a new instance of
EndpointAnnotation . public sealed class EndpointAnnotation{ public EndpointAnnotation( ProtocolType protocol, NetworkIdentifier? networkId, string? uriScheme, string? transport, string? name, int? port, int? targetPort, bool? isExternal, bool isProxied) { // ... }}Parameters
protocolProtocolType Network protocol: TCP or UDP are supported today, others possibly in future.networkId NetworkuriScheme string?If a service is URI-addressable, this is the URI scheme to use for constructing service URI.transportstring?Transport that is being used (e.g. http, http2, http3 etc).namestring?Name of the service.portint?Desired port for the service.targetPort int?This is the port the resource is listening on. If the endpoint is used for the container, it is the container port.isExternal bool?Indicates that this endpoint should be exposed externally at publish time.isProxied boolSpecifies if the endpoint will be proxied by DCP.