コード例 #1
0
 public EmailSender(ITemplatesRepository templatesRepository, ITemplateBuilder templateBuilder, IConfigurationRoot config, ILogger <EmailSender> logger)
 {
     _templatesRepository = templatesRepository;
     _templateBuilder     = templateBuilder;
     _config = config;
     _logger = logger;
 }
コード例 #2
0
 public TemplatesService(
     IViewToStringRenderer viewToStringRenderer,
     ITemplatesRepository templatesRepository)
 {
     this.viewToStringRenderer = viewToStringRenderer ?? throw new System.ArgumentNullException(nameof(viewToStringRenderer));
     this.templatesRepository  = templatesRepository ?? throw new System.ArgumentNullException(nameof(templatesRepository));
 }
コード例 #3
0
 public TemplateKindManager(
     ITemplateKindsRepository templateKindsRepository,
     ITemplatesRepository templatesRepository)
 {
     _templateKindsRepository = templateKindsRepository;
     _templatesRepository     = templatesRepository;
 }
コード例 #4
0
 public TemplateManager(
     ITemplatesRepository templatesRepository,
     ITemplateKindsRepository templateKindsRepository,
     ISystemClock systemClock)
 {
     _templatesRepository     = templatesRepository;
     _templateKindsRepository = templateKindsRepository;
     _systemClock             = systemClock;
 }
コード例 #5
0
 public TemplatesService(
     ITemplatesRepository templatesRepository,
     ITypesRepository typesRepository,
     IMapper mapper)
 {
     _templatesRepository = templatesRepository;
     _typesRepository     = typesRepository;
     _mapper = mapper;
 }
コード例 #6
0
 public UserController(
     IEntriesRepository entriesRepository,
     ITabletsRepository tabletsRepository,
     ITemplatesRepository templatesRepository,
     IUsersRepository usersRepository)
 {
     _entriesRepository   = entriesRepository;
     _tabletsRepository   = tabletsRepository;
     _templatesRepository = templatesRepository;
     _usersRepository     = usersRepository;
 }
コード例 #7
0
 public InstantsRepository(
     IMapper mapper,
     ITemplatesRepository templatesRepository,
     ITypesRepository typesRepository,
     IQueriesRepository queriesRepository
     )
 {
     _mapper = mapper;
     _templatesRepository = templatesRepository;
     _typesRepository     = typesRepository;
     _queriesRepository   = queriesRepository;
 }
コード例 #8
0
 public JobService(
     IJobsRepository jobsRepository,
     ITemplatesRepository templatesRepository,
     ITypesRepository typesRepository,
     IQueriesRepository queriesRepository,
     IMapper mapper
     )
 {
     _jobsRepository      = jobsRepository;
     _templatesRepository = templatesRepository;
     _typesRepository     = typesRepository;
     _queriesRepository   = queriesRepository;
     _mapper = mapper;
 }
コード例 #9
0
 public InstantService(
     IInstantsRepository instantsRepository,
     ITypesRepository typesRepository,
     ITemplatesRepository templatesRepository,
     IQueriesRepository queriesRepository,
     IMapper mapper
     )
 {
     _instantsRepository  = instantsRepository;
     _typesRepository     = typesRepository;
     _templatesRepository = templatesRepository;
     _queriesRepository   = queriesRepository;
     _mapper = mapper;
 }
コード例 #10
0
        public AdminController(
            ITabletsRepository tabletsRepository,
            ITemplatesRepository templatesRepository,
            IUsersRepository usersRepository,

            UserManager <IUser> userManager,
            IApplicationUserFactory applicationUserFactory)
        {
            _tabletsRepository   = tabletsRepository;
            _templatesRepository = templatesRepository;
            _usersRepository     = usersRepository;

            _userManager            = userManager;
            _applicationUserFactory = applicationUserFactory;
        }
コード例 #11
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="templatesRepo"></param>
 public TemplateController(ITemplatesRepository templatesRepo)
 {
     _templatesRepo = templatesRepo;
 }
コード例 #12
0
ファイル: Template.cs プロジェクト: zkenstein/CrowdCMS
 public Template()
     : base()
 {
     this.TempateRepository = new TemplatesRepository(this.Context);
 }
コード例 #13
0
 public EmailService(ITemplatesRepository templatesRepository, ITemplateBuilder templateBuilder, IEmailSender emailSender)
 {
     _templatesRepository = templatesRepository;
     _templateBuilder     = templateBuilder;
     _emailSender         = emailSender;
 }
コード例 #14
0
 public TemplatesManager(ITemplatesRepository templatesRepository)
 {
     _templatesRepository = templatesRepository;
     _defaultLanguage     = CultureInfo.GetCultures(CultureTypes.AllCultures).FirstOrDefault(c => c.EnglishName == "English");
 }
コード例 #15
0
 public TemplatesManager(ITemplatesRepository templatesRepository)
 {
     _templatesRepository = templatesRepository;
 }
コード例 #16
0
 public TemplatesService(ITemplatesRepository repository, IMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }