IComputeEnvironmentResource Methods

InterfaceMethods2 members
Represents a compute environment resource.
GetEndpointPropertyExpression(EndpointReferenceExpression)Section titled GetEndpointPropertyExpression(EndpointReferenceExpression)virtualReferenceExpression
Gets a ReferenceExpression representing a deployed endpoint property for the specified EndpointReferenceExpression.
public interface IComputeEnvironmentResource
{
public virtual ReferenceExpression GetEndpointPropertyExpression(
EndpointReferenceExpression endpointReferenceExpression)
{
// ...
}
}
endpointReferenceExpressionEndpointReferenceExpressionThe endpoint reference expression for which to retrieve a deployed endpoint property.
ReferenceExpressionA ReferenceExpression representing the deployed endpoint property.
ArgumentNullExceptionThrown when endpointReferenceExpression is null.
InvalidOperationExceptionThrown when the requested endpoint property is unsupported, or when a non-HTTP/HTTPS endpoint does not specify a port.
NotSupportedExceptionThrown when the environment does not implement browser-origin resolution.
NotImplementedExceptionThrown when a host-dependent property is requested and the environment does not implement host-address resolution.
Use this method when an endpoint property should be represented as a compute-environment-specific ReferenceExpression instead of being resolved from a local endpoint allocation. The default implementation composes values from IComputeEnvironmentResource.GetHostAddressExpression, the endpoint scheme, and endpoint ports. HTTP and HTTPS endpoints use ports 80 and 443 respectively when no explicit port is configured. Environments can override this method to provide their own endpoint-property mappings. Host-dependent properties require an implementation of IComputeEnvironmentResource.GetHostAddressExpression.
Gets a ReferenceExpression representing the host address or host name for the specified EndpointReference.
public interface IComputeEnvironmentResource
{
public virtual ReferenceExpression GetHostAddressExpression(
EndpointReference endpointReference)
{
// ...
}
}
endpointReferenceEndpointReferenceThe endpoint reference for which to retrieve the host address or host name.
ReferenceExpressionA ReferenceExpression representing the host address or host name (not a full URL).
NotImplementedExceptionThrown when the environment does not implement host-address resolution.
The returned value typically contains only the host name or address, without scheme, port, or path information. Implementations that support host-address resolution must override this method. The default implementation throws NotImplementedException so environments that do not support this capability can still implement IComputeEnvironmentResource.