Skip to content
Docs Try Aspire

PapercutSmtpHostingExtension Methods

Class Methods 1 member
Provides extension methods for adding DataApiBuilder api to an Hosting.IDistributedApplicationBuilder.
AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?) Section titled AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?) extension IResourceBuilder<PapercutSmtpContainerResource>
Adds Papercut SMTP to the application model.
public static class PapercutSmtpHostingExtension
{
public static IResourceBuilder<PapercutSmtpContainerResource> AddPapercutSmtp(
this IDistributedApplicationBuilder builder,
string name,
int? httpPort = null,
int? smtpPort = null)
{
// ...
}
}
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder to add the resource to.
name string The name of the resource.
httpPort int? optional The HTTP portnumber for the web-console to the Papercut SMTP container.
smtpPort int? optional The SMTP portnumber for the Papercut SMTP Conteainer
IResourceBuilder<PapercutSmtpContainerResource> A reference to the ApplicationModel.IResourceBuilder`1.