Freigeben über


EndpointReference Constructors

Definition

Overloads

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.

EndpointReference(IResourceWithEndpoints, EndpointAnnotation)

Source:
EndpointReference.cs
Source:
EndpointReference.cs

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

public EndpointReference (Aspire.Hosting.ApplicationModel.IResourceWithEndpoints owner, Aspire.Hosting.ApplicationModel.EndpointAnnotation endpoint);
new Aspire.Hosting.ApplicationModel.EndpointReference : Aspire.Hosting.ApplicationModel.IResourceWithEndpoints * Aspire.Hosting.ApplicationModel.EndpointAnnotation -> Aspire.Hosting.ApplicationModel.EndpointReference
Public Sub New (owner As IResourceWithEndpoints, endpoint As EndpointAnnotation)

Parameters

owner
IResourceWithEndpoints

The resource with endpoints that owns the endpoint reference.

endpoint
EndpointAnnotation

The endpoint annotation.

Applies to

EndpointReference(IResourceWithEndpoints, String)

Source:
EndpointReference.cs
Source:
EndpointReference.cs

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

public EndpointReference (Aspire.Hosting.ApplicationModel.IResourceWithEndpoints owner, string endpointName);
new Aspire.Hosting.ApplicationModel.EndpointReference : Aspire.Hosting.ApplicationModel.IResourceWithEndpoints * string -> Aspire.Hosting.ApplicationModel.EndpointReference
Public Sub New (owner As IResourceWithEndpoints, endpointName As String)

Parameters

owner
IResourceWithEndpoints

The resource with endpoints that owns the endpoint reference.

endpointName
String

The name of the endpoint.

Applies to