PapercutSmtpHostingExtension Methods
ClassMethods1 member
Provides extension methods for adding Papercut SMTP to an
Hosting.IDistributedApplicationBuilder. AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?)Section titled AddPapercutSmtp(IDistributedApplicationBuilder, string, int?, int?)extensionIResourceBuilder<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) { // ... }}Parameters
builderIDistributedApplicationBuilderThe Hosting.IDistributedApplicationBuilder to add the resource to.namestringThe name of the resource.httpPortint?optionalThe HTTP port number for the Papercut SMTP web console.smtpPortint?optionalThe SMTP port number for the Papercut SMTP container.Returns
IResourceBuilder<PapercutSmtpContainerResource>A reference to the ApplicationModel.IResourceBuilder`1.