Skip to content
DocsTry Aspire
DocsTry

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

propertyconnectionStringExpressionReferenceExpressionget
ConnectionString for MailPit smtp endpoint in the form of smtp://host:port.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for the SMTP endpoint.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for the SMTP endpoint.
propertyprimaryEndpointEndpointReferenceget
Gets the primary SMTP endpoint for the MailPit server.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the MailPit SMTP endpoint.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for the data directory of the MailPit container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): MailPitContainerResource
sourcestring
isReadOnlybooleanoptional= False
MailPitContainerResource
methodwithDataVolumebuilder
Configures a data volume for the MailPit container resource.
withDataVolume(
name: string,
isReadOnly?: boolean): MailPitContainerResource
namestring
isReadOnlybooleanoptional= False
MailPitContainerResource