public IFluentMailerMessageBodyCreator CreateMessage()
 {
     return(FluentMailerFactory.Create().CreateMessage());
 }
Exemplo n.º 2
0
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterType <MailService>().As <IMailService>();
     builder.Register(c => FluentMailerFactory.Create()).As <IFluentMailer>();
 }