/// <summary> /// When overridden in a derived class, the /// <see cref="M:Microsoft.Exchange.Data.Transport.Routing.RoutingAgentFactory.CreateAgent(Microsoft.Exchange.Data.Transport.SmtpServer)"/> /// method returns an instance of a routing agent. /// </summary> /// <param name="server">The server on which the routing agent will operate.</param> /// <returns>The <see cref="DkimSigningRoutingAgent"/> instance.</returns> public override RoutingAgent CreateAgent(SmtpServer server) { Logger.LogInformation("Creating new instance of DkimSigningRoutingAgent."); var dkimSigner = new DefaultDkimSigner( this.algorithm, this.headersToSign, domainSettings); return(new DkimSigningRoutingAgent(dkimSigner)); }
/// <summary> /// When overridden in a derived class, the /// <see cref="M:Microsoft.Exchange.Data.Transport.Routing.RoutingAgentFactory.CreateAgent(Microsoft.Exchange.Data.Transport.SmtpServer)"/> /// method returns an instance of a routing agent. /// </summary> /// <param name="server">The server on which the routing agent will operate.</param> /// <returns>The <see cref="DkimSigningRoutingAgent"/> instance.</returns> public override RoutingAgent CreateAgent(SmtpServer server) { Logger.LogInformation("Creating new instance of DkimSigningRoutingAgent."); var dkimSigner = new DefaultDkimSigner( this.algorithm, this.headersToSign, domainSettings); return new DkimSigningRoutingAgent(dkimSigner); }