Exemplo n.º 1
0
 public MailMergeController(
     IMergeTemplateRepository mergeTemplateRepository,
     IMergeTemplateService mergeTemplateService,
     IMailmanServicesProxy servicesProxy)
 {
     EnsureArg.IsNotNull(mergeTemplateRepository);
     EnsureArg.IsNotNull(mergeTemplateService);
     EnsureArg.IsNotNull(servicesProxy);
     _mergeTemplateRepository = mergeTemplateRepository;
     _mergeTemplateService    = mergeTemplateService;
     _servicesProxy           = servicesProxy;
 }
Exemplo n.º 2
0
        public MailmanServicesLocalProxy(
            IMergeTemplateRepository mergeTemplateRepository,
            IMergeTemplateService mergeTemplateService,
            ILogger logger)
        {
            EnsureArg.IsNotNull(mergeTemplateRepository);
            EnsureArg.IsNotNull(mergeTemplateService);
            EnsureArg.IsNotNull(logger);

            _mergeTemplateRepository = mergeTemplateRepository;
            _mergeTemplateService    = mergeTemplateService;
            _logger = logger;
        }
 /// <summary>
 /// Constructor for merge templates
 /// </summary>
 /// <param name="mergeTemplateRepository">Service to merge template persistance store.</param>
 /// <param name="mailmanHub"></param>
 /// <param name="servicesProxy"></param>
 /// <param name="mapper">Automapper instance</param>
 /// <param name="logger">Serilog logger</param>
 public MergeTemplatesController(
     IMergeTemplateRepository mergeTemplateRepository,
     IHubContext <MailmanHub> mailmanHub,
     IMailmanServicesProxy servicesProxy,
     IMapper mapper,
     ILogger logger)
 {
     EnsureArg.IsNotNull(mergeTemplateRepository, nameof(mergeTemplateRepository));
     EnsureArg.IsNotNull(mailmanHub, nameof(mailmanHub));
     EnsureArg.IsNotNull(servicesProxy, nameof(servicesProxy));
     EnsureArg.IsNotNull(mapper, nameof(mapper));
     EnsureArg.IsNotNull(logger, nameof(logger));
     _mergeTemplateRepository = mergeTemplateRepository;
     _mailmanHub    = mailmanHub;
     _servicesProxy = servicesProxy;
     _mapper        = mapper;
     _logger        = logger;
 }