次の方法で共有


EndpointReference Class

Definition

Represents an endpoint reference for a resource with endpoints.

public sealed class EndpointReference : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences
type EndpointReference = class
    interface IManifestExpressionProvider
    interface IValueProvider
    interface IValueWithReferences
Public NotInheritable Class EndpointReference
Implements IManifestExpressionProvider, IValueProvider, IValueWithReferences
Inheritance
EndpointReference
Implements

Constructors

EndpointReference(IResourceWithEndpoints, EndpointAnnotation)

Creates a new instance of EndpointReference with the specified endpoint name.

EndpointReference(IResourceWithEndpoints, String)

Creates a new instance of EndpointReference with the specified endpoint name.

Properties

ContainerHost

Gets the container host for this endpoint.

EndpointName

Gets the name of the endpoint associated with the endpoint reference.

Exists

Gets a value indicating whether the endpoint exists.

Host

Gets the host for this endpoint.

IsAllocated

Gets a value indicating whether the endpoint is allocated.

Port

Gets the port for this endpoint.

Resource

Gets the resource owner of the endpoint reference.

Scheme

Gets the scheme for this endpoint.

TargetPort

Gets the target port for this endpoint. If the port is dynamically allocated, this will return null.

Url

Gets the URL for this endpoint.

Methods

Property(EndpointProperty)

Gets the specified property expression of the endpoint. Defaults to the URL if no property is specified.

Explicit Interface Implementations

IManifestExpressionProvider.ValueExpression
IValueProvider.GetValueAsync(CancellationToken)
IValueWithReferences.References

Applies to