Share via


ContainerPortReference Class

Definition

Represents a TCP/UDP port that a container can expose.

public class ContainerPortReference : Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences
type ContainerPortReference = class
    interface IManifestExpressionProvider
    interface IValueWithReferences
Public Class ContainerPortReference
Implements IManifestExpressionProvider, IValueWithReferences
Inheritance
ContainerPortReference
Implements

Constructors

ContainerPortReference(IResource)

Represents a TCP/UDP port that a container can expose.

Properties

References

The referenced objects of the value.

Resource

Gets the resource that this container port is associated with.

ValueExpression

Gets the expression that represents a value in manifest.

Extension Methods

AsProvisioningParameter(IManifestExpressionProvider, AzureResourceInfrastructure, String, Nullable<Boolean>)

Creates a new ProvisioningParameter in infrastructure, or reuses an existing bicep parameter if one with

AsEnvironmentPlaceholder(IManifestExpressionProvider, DockerComposeServiceResource)

Creates a placeholder for an environment variable in the Docker Compose file.

Applies to