Skip to content
Docs Try Aspire
Docs Try

MailPitContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.MailPit v13.4.0
interface MailPitContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): MailPitContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource;
}

Properties

property connectionStringExpression ReferenceExpression get
ConnectionString for MailPit smtp endpoint in the form of smtp://host:port.
property host EndpointReferenceExpression get
Gets the host endpoint reference for the SMTP endpoint.
property port EndpointReferenceExpression get
Gets the port endpoint reference for the SMTP endpoint.
property primaryEndpoint EndpointReference get
Gets the primary SMTP endpoint for the MailPit server.
property uriExpression ReferenceExpression get
Gets the connection URI expression for the MailPit SMTP endpoint.

Methods

method withDataBindMount builder
Configures a bind mount for the data directory of the MailPit container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): MailPitContainerResource
source string
isReadOnly boolean optional = False
MailPitContainerResource
method withDataVolume builder
Configures a data volume for the MailPit container resource.
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource
name string
isReadOnly boolean optional = False
MailPitContainerResource