addMailPit
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addMailPit( name: string, httpPort?: number, smtpPort?: number): MailPitContainerResource;}Signature
method
addMailPit builderAdds a MailPit container resource
addMailPit( name: string, httpPort?: number, smtpPort?: number): MailPitContainerResourceParameters
namestringThe name of the MailPit container resource.httpPort numberoptionalOptional. The HTTP port on which MailPit will listen.smtpPort numberoptionalOptional. The SMTP port on which MailPit will listen.Returns
MailPitContainerResource Applies to
This method applies to the following types: