public SendEmailCommand(IEmailRenderer emailRenderer, IEmailSender emailSender, IEmailInfoParser emailInfoParser, ITemplateLocator templateLocator) { _emailRenderer = emailRenderer; _templateLocator = templateLocator; _emailInfoParser = emailInfoParser; _emailSender = emailSender; }
public CodeGenCommand(ILogger logger, ITemplateLocator templateLocator, ITemplateDataProviderLocator dataProviderLocator, ITemplateProcessor templateProcessor) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _templateLocator = templateLocator ?? throw new ArgumentNullException(nameof(templateLocator)); _dataProviderLocator = dataProviderLocator ?? throw new ArgumentNullException(nameof(dataProviderLocator)); _templateProcessor = templateProcessor ?? throw new ArgumentNullException(nameof(templateProcessor)); }
public Handler( IFileWriter fileWriter, INamingConventionConverter namingConventionConverter, ITemplateLocator templateLocator, ITemplateProcessor templateProcessor ) { _fileWriter = fileWriter; _namingConventionConverter = namingConventionConverter; _templateProcessor = templateProcessor; _templateLocator = templateLocator; }
public Handler( IFileSystem fileSystem, ITemplateLocator templateLocator, ITemplateProcessor templateProcessor, ICommandService commandService ) { _fileSystem = fileSystem; _templateProcessor = templateProcessor; _templateLocator = templateLocator; _commandService = commandService; }
public RazorMessageGenerator(ITemplateLocator templateLocator) { if (templateLocator == null) { throw new ArgumentNullException("templateLocator"); } _templateLocator = templateLocator; var serviceConfiguration = new TemplateServiceConfiguration { BaseTemplateType = typeof(MessageTemplate <>), Namespaces = new HashSet <string> { typeof(MessageTemplate <>).Namespace } }; _service = new TemplateService(serviceConfiguration); }
public Handler(IFileSystem fileSystem, ITemplateLocator templateLocator, ITemplateProcessor templateProcessor) { _fileSystem = fileSystem; _templateLocator = templateLocator; _templateProcessor = templateProcessor; }
/// <summary> /// Public ctor. /// </summary> public EmailRenderer(EmailConfiguration config, ITemplateLocator templateLocator) { _config = config; _templateLocator = templateLocator; }