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
builderIDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder to add the resource to.namestringThe name of the resource.httpPort int?optionalThe HTTP port number for the Papercut SMTP web console.smtpPort int?optionalThe SMTP port number for the Papercut SMTP container.Returns
IResourceBuilder<PapercutSmtpContainerResource> A reference to the ApplicationModel.IResourceBuilder`1 .