예제 #1
0
파일: MailService.cs 프로젝트: grroma/mems
 public MailService(
     IEmailService emailService,
     IMailBuilder mailBuilder)
 {
     _emailService = emailService;
     _mailBuilder  = mailBuilder;
 }
예제 #2
0
 public MailCommand(ISmtpMessageChannel channel, IMailBuilder builder, AgentSettings settings, IUserStore userStore)
 {
     _builder   = builder;
     _channel   = channel;
     _settings  = settings;
     _userStore = userStore;
 }
예제 #3
0
        public FixtureMailService(IMailService mailService, IMailBuilder mailBuilder)
        {
            Guard.WhenArgument(mailService, "mailService").IsNull().Throw();
            Guard.WhenArgument(mailBuilder, "mailBuilder").IsNull().Throw();

            this.mailService = mailService;
            this.mailBuilder = mailBuilder;
        }
예제 #4
0
 public AuthenticateCommand(
     IIndex <string, IAuthenticationSession> authentication,
     ISmtpMessageChannel channel,
     IMailBuilder builder)
 {
     _authentication = authentication;
     _channel        = channel;
     _builder        = builder;
 }
예제 #5
0
 public BinaryDataCommand(
     SecurableConnection connection,
     SmtpSession session,
     IMailQueue mailQueue,
     IMailBuilder builder)
 {
     _connection = connection;
     _session    = session;
     _mailQueue  = mailQueue;
     _builder    = builder;
 }
예제 #6
0
 public DataCommand(
     IMailQueue mailQueue,
     AgentSettings settings,
     IVariableStreamReader reader,
     ConnectionInformation connectionInformation,
     IMailBuilder builder,
     ISmtpMessageChannel channel
     )
 {
     _mailQueue             = mailQueue;
     _settings              = settings;
     _reader                = reader;
     _connectionInformation = connectionInformation;
     _builder               = builder;
     _channel               = channel;
 }
 public MessageTemplate(IMailBuilder builder)
 {
     _builder = builder;
 }
예제 #8
0
 public MailBuilderDirector(IMailBuilder mailBuilder)
 {
     _mailBuilder = mailBuilder;
 }
예제 #9
0
 public PromocodeAddedCompanyMailIntegrationEventHandler(IMailClient mailClient, IMailBuilder mailBuilder, ILogger <PromocodeAddedCompanyMailIntegrationEventHandler> logger)
 {
     _mailClient  = mailClient ?? throw new System.ArgumentNullException(nameof(mailClient));
     _mailBuilder = mailBuilder;
     _logger      = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }
예제 #10
0
 public TaskDeadlineTemplate(IMailBuilder builder) : base(builder)
 {
 }
예제 #11
0
 public RecipientCommand(IMailBuilder builder, ISmtpMessageChannel channel, AgentSettings settings)
 {
     _builder  = builder;
     _channel  = channel;
     _settings = settings;
 }
예제 #12
0
 public ResetCommand(ISmtpMessageChannel channel, IMailBuilder builder)
 {
     _channel = channel;
     _builder = builder;
 }
 public RegistrationTemplate(IMailBuilder builder) : base(builder)
 {
 }
예제 #14
0
 public MailController(IMailBuilder mailBuilder, IWebHostEnvironment env)
 {
     _mailBuilder = mailBuilder;
     _env         = env;
 }
예제 #15
0
 public TaskStartTemplate(IMailBuilder builder) : base(builder)
 {
 }
        public MessageFactory(IMailBuilder builder)
        {
            _builder = builder;

            InitializeData();
        }
예제 #17
0
 public static MimeEntity GetMessageBody(this IMailBuilder body,
                                         MailBodyOption mailBodyOption, LanguageOption languageOption, object content) =>
 new BodyBuilder()
 {
     HtmlBody = body.GetBody(mailBodyOption, languageOption, content)
 }.ToMessageBody();