ExternalServiceResource Constructors
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.
Overloads
| ExternalServiceResource(String, ParameterResource) |
Creates a new instance of ExternalServiceResource with a specified name and URL parameter. |
| ExternalServiceResource(String, Uri) |
Creates a new instance of ExternalServiceResource with a specified name and URI. |
ExternalServiceResource(String, ParameterResource)
- Source:
- ExternalServiceResource.cs
- Source:
- ExternalServiceResource.cs
Creates a new instance of ExternalServiceResource with a specified name and URL parameter.
public ExternalServiceResource(string name, Aspire.Hosting.ApplicationModel.ParameterResource urlParameter);
new Aspire.Hosting.ExternalServiceResource : string * Aspire.Hosting.ApplicationModel.ParameterResource -> Aspire.Hosting.ExternalServiceResource
Public Sub New (name As String, urlParameter As ParameterResource)
Parameters
- name
- String
The name of the resource.
- urlParameter
- ParameterResource
The parameter to use for the URL of the external service.
Applies to
ExternalServiceResource(String, Uri)
- Source:
- ExternalServiceResource.cs
- Source:
- ExternalServiceResource.cs
Creates a new instance of ExternalServiceResource with a specified name and URI.
public ExternalServiceResource(string name, Uri uri);
new Aspire.Hosting.ExternalServiceResource : string * Uri -> Aspire.Hosting.ExternalServiceResource
Public Sub New (name As String, uri As Uri)
Parameters
- name
- String
The name of the resource.
- uri
- Uri
The URI for the external service.
Remarks
The URI must be an absolute URI with the absolute path set to "/".