コード例 #1
0
 public UpdateUserLastLoginDateFilter(
     IUserReputationAwarder userReputationAwarder,
     IPlatoUserStore <User> userStore,
     ICookieBuilder cookieBuilder,
     IContextFacade contextFacade)
 {
     _userReputationAwarder = userReputationAwarder;
     _contextFacade         = contextFacade;
     _cookieBuilder         = cookieBuilder;
     _userStore             = userStore;
 }
コード例 #2
0
 public ReferencesParser(
     IEntityStore <Entity> entityStore,
     IHashTokenizer hashTokenizer,
     IContextFacade contextFacade,
     ILinkTokenizer linkTokenizer)
 {
     _contextFacade = contextFacade;
     _linkTokenizer = linkTokenizer;
     _entityStore   = entityStore;
     _hashTokenizer = hashTokenizer;
 }
コード例 #3
0
 public ModeratorPermissionsHandler(
     IPermissionsManager <ModeratorPermission> permissionsManager,
     IModeratorStore <Moderator> moderatorStore,
     IPlatoUserStore <User> userStore,
     IContextFacade contextFacade)
 {
     _permissionsManager = permissionsManager;
     _moderatorStore     = moderatorStore;
     _contextFacade      = contextFacade;
     _userStore          = userStore;
 }
コード例 #4
0
ファイル: SearchController.cs プロジェクト: mrs2020/Plato
 public SearchController(
     ISearchSettingsStore <SearchSettings> searchSettingsStore,
     IAuthorizationService authorizationService,
     IEntityService <Entity> searchService,
     IContextFacade contextFacade)
 {
     _authorizationService = authorizationService;
     _searchSettingsStore  = searchSettingsStore;
     _contextFacade        = contextFacade;
     _searchService        = searchService;
 }
コード例 #5
0
        public ArticleViewAdapter(
            IHtmlLocalizer <ArticleListItemViewAdapter> localizer,
            IAggregatedEntityMetricsRepository agggregatedEntityMetricsRepository,
            IContextFacade contextFacade)
        {
            _agggregatedEntityMetricsRepository = agggregatedEntityMetricsRepository;
            _contextFacade = contextFacade;

            T        = localizer;
            ViewName = "Article";
        }
コード例 #6
0
ファイル: RegisterViewProvider.cs プロジェクト: radtek/Plato
 public RegisterViewProvider(
     IPlatoUserManager <User> platoUserManager,
     IContextFacade contextFacade,
     IEmailManager emailManager,
     ILocaleStore localeStore)
 {
     _platoUserManager = platoUserManager;
     _contextFacade    = contextFacade;
     _emailManager     = emailManager;
     _localeStore      = localeStore;
 }
コード例 #7
0
 public CategoryRolesViewProvider(
     IPlatoRoleStore platoRoleStore,
     IHttpContextAccessor httpContextAccessor,
     ICategoryManager <CategoryBase> categoryManager,
     IContextFacade contextFacade)
 {
     _request         = httpContextAccessor.HttpContext.Request;
     _categoryManager = categoryManager;
     _platoRoleStore  = platoRoleStore;
     _contextFacade   = contextFacade;
 }
コード例 #8
0
 public NewEntityMentionEmail(
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     IContextFacade contextFacade,
     ILocaleStore localeStore,
     IEmailManager emailManager)
 {
     _claimsPrincipalFactory = claimsPrincipalFactory;
     _contextFacade          = contextFacade;
     _emailManager           = emailManager;
     _localeStore            = localeStore;
 }
コード例 #9
0
 public ParseEntityUrlsSubscriber(
     IImageUriExtractor imageUriExtractor,
     IAnchorUriExtractor anchorUriExtractor,
     IContextFacade contextFacade,
     IBroker broker)
 {
     _imageUriExtractor  = imageUriExtractor;
     _anchorUriExtractor = anchorUriExtractor;
     _contextFacade      = contextFacade;
     _broker             = broker;
 }
コード例 #10
0
 public UpdateUserLastLoginDateFilter(
     IUserReputationAwarder userReputationAwarder,
     IShellSettings shellSettings,
     IContextFacade contextFacade,
     IPlatoUserStore <User> userStore)
 {
     _tenantPath            = "/" + shellSettings.RequestedUrlPrefix;
     _userReputationAwarder = userReputationAwarder;
     _contextFacade         = contextFacade;
     _userStore             = userStore;
 }
コード例 #11
0
        public EntityController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IEntityHistoryStore <EntityHistory> entityHistoryStore,
            IContextFacade contextFacade)
        {
            _entityHistoryStore = entityHistoryStore;
            _contextFacade      = contextFacade;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #12
0
ファイル: NewEntityMentionWeb.cs プロジェクト: mrs2020/Plato
        public NewEntityMentionWeb(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IUserNotificationsManager <UserNotification> userNotificationManager,
            IContextFacade contextFacade)
        {
            _userNotificationManager = userNotificationManager;
            _contextFacade           = contextFacade;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #13
0
        public FileValidator(
            IHtmlLocalizer htmlLocalizer,
            IFileInfoStore <Models.FileInfo> fileInfoStore,
            IFileOptionsFactory fileOptionsFactory,
            IContextFacade contextFacade)
        {
            _fileOptionsFactory = fileOptionsFactory;
            _fileInfoStore      = fileInfoStore;
            _contextFacade      = contextFacade;

            T = htmlLocalizer;
        }
コード例 #14
0
 public CategoryViewProvider(
     IContextFacade contextFacade,
     ICategoryStore <Category> categoryStore,
     ICategoryManager <Category> categoryManager,
     IFeatureFacade featureFacade,
     IActionContextAccessor actionContextAccessor)
 {
     _contextFacade         = contextFacade;
     _categoryStore         = categoryStore;
     _categoryManager       = categoryManager;
     _featureFacade         = featureFacade;
     _actionContextAccessor = actionContextAccessor;
 }
コード例 #15
0
 public ReplyViewProvider(
     IFollowManager <Follows.Models.Follow> followManager,
     IFollowStore <Follows.Models.Follow> followStore,
     IAuthorizationService authorizationService,
     IEntityStore <Topic> entityStore,
     IContextFacade contextFacade)
 {
     _authorizationService = authorizationService;
     _followManager        = followManager;
     _contextFacade        = contextFacade;
     _entityStore          = entityStore;
     _followStore          = followStore;
 }
コード例 #16
0
 public NewLabelEmail(
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     ICapturedRouterUrlHelper capturedRouterUrlHelper,
     IContextFacade contextFacade,
     IEmailManager emailManager,
     ILocaleStore localeStore)
 {
     _capturedRouterUrlHelper = capturedRouterUrlHelper;
     _claimsPrincipalFactory  = claimsPrincipalFactory;
     _contextFacade           = contextFacade;
     _emailManager            = emailManager;
     _localeStore             = localeStore;
 }
コード例 #17
0
        public DocListItemViewAdapter(
            IHtmlLocalizer <DocListItemViewAdapter> localizer,
            IAggregatedEntityMetricsRepository agggregatedEntityMetricsRepository,
            IActionContextAccessor actionContextAccessor,
            IContextFacade contextFacade)
        {
            _agggregatedEntityMetricsRepository = agggregatedEntityMetricsRepository;
            _actionContextAccessor = actionContextAccessor;
            _contextFacade         = contextFacade;

            T        = localizer;
            ViewName = "DocListItem";
        }
コード例 #18
0
ファイル: RewriterEngine.cs プロジェクト: bugjohnyang/YAFNET
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="contextFacade">The context facade to use.</param>
        /// <param name="configuration">The configuration to use.</param>
        public RewriterEngine(IContextFacade contextFacade, RewriterConfiguration configuration)
        {
            if (contextFacade == null)
            {
                throw new ArgumentNullException("contextFacade");
            }
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            ContextFacade = contextFacade;
            _configuration = configuration;
        }
コード例 #19
0
ファイル: HomeController.cs プロジェクト: orkunakca/Plato
        public HomeController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IViewProviderManager <Badge> badgeViewProvider,
            IBreadCrumbManager breadCrumbManager,
            IContextFacade contextFacade)
        {
            _badgeViewProvider = badgeViewProvider;
            _breadCrumbManager = breadCrumbManager;
            _contextFacade     = contextFacade;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #20
0
 public SampleLabelsService(
     ILabelManager <LabelBase> labelManager,
     IUserColorProvider colorProvider,
     IContextFacade contextFacade,
     IFeatureFacade featureFacade,
     IDbHelper dbHelper)
 {
     _featureFacade = featureFacade;
     _contextFacade = contextFacade;
     _colorProvider = colorProvider;
     _labelManager  = labelManager;
     _dbHelper      = dbHelper;
     _random        = new Random();
 }
コード例 #21
0
        public NewReplyMentionWeb(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IUserNotificationsManager <UserNotification> userNotificationManager,
            IContextFacade contextFacade,
            IEntityStore <Idea> entityStore)
        {
            _userNotificationManager = userNotificationManager;
            _contextFacade           = contextFacade;
            _entityStore             = entityStore;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #22
0
        public AdminViewProvider(
            IStringLocalizer stringLocalizer,
            IContextFacade contextFacade,
            ICategoryStore <Category> categoryStore,
            ICategoryManager <Category> categoryManager,
            IFeatureFacade featureFacade)
        {
            _contextFacade   = contextFacade;
            _categoryStore   = categoryStore;
            _categoryManager = categoryManager;

            S = stringLocalizer;
            _featureFacade = featureFacade;
        }
コード例 #23
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="contextFacade">The context facade to use.</param>
        /// <param name="configuration">The configuration to use.</param>
        public RewriterEngine(IContextFacade contextFacade, RewriterConfiguration configuration)
        {
            if (contextFacade == null)
            {
                throw new ArgumentNullException("contextFacade");
            }
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            ContextFacade  = contextFacade;
            _configuration = configuration;
        }
コード例 #24
0
        public HomeController(
            IStringLocalizer stringLocalizer,
            IHtmlLocalizer localizer,
            IEntityStore <Entity> entityStore,
            IEntityService <Entity> entityService,
            IContextFacade contextFacade)
        {
            _entityStore   = entityStore;
            _entityService = entityService;
            _contextFacade = contextFacade;

            T = localizer;
            S = stringLocalizer;
        }
コード例 #25
0
 public TransactionService(IContextFacade context,
                           ITransactionRepository transactionRepository,
                           IUserRepository userRepository,
                           ITagRepository tagRepository,
                           IFileService fileService,
                           IValidator <AddTransaction> addTransactionValidator,
                           IValidator <EditTransaction> editTransactionValidator) : base(context)
 {
     this.transactionRepository    = transactionRepository;
     this.userRepository           = userRepository;
     this.tagRepository            = tagRepository;
     this.addTransactionValidator  = addTransactionValidator;
     this.editTransactionValidator = editTransactionValidator;
     this.fileService = fileService;
 }
コード例 #26
0
ファイル: CommentSpamEmail.cs プロジェクト: vdandrade/Plato
 public CommentSpamEmail(
     IDummyClaimsPrincipalFactory <User> claimsPrincipalFactory,
     ICapturedRouterUrlHelper capturedRouterUrlHelper,
     IEntityStore <Doc> entityStore,
     IContextFacade contextFacade,
     IEmailManager emailManager,
     ILocaleStore localeStore)
 {
     _capturedRouterUrlHelper = capturedRouterUrlHelper;
     _claimsPrincipalFactory  = claimsPrincipalFactory;
     _contextFacade           = contextFacade;
     _emailManager            = emailManager;
     _localeStore             = localeStore;
     _entityStore             = entityStore;
 }
コード例 #27
0
        public HomeController(
            IStringLocalizer stringLocalizer,
            IHtmlLocalizer localizer,
            IViewProviderManager <HomeIndex> viewProvider,
            IBreadCrumbManager breadCrumbManager,
            IContextFacade contextFacade,
            IAlerter alerter)
        {
            _alerter           = alerter;
            _breadCrumbManager = breadCrumbManager;
            _viewProvider      = viewProvider;

            T = localizer;
            S = stringLocalizer;
        }
コード例 #28
0
 public QuestionViewProvider(
     IFollowManager <Plato.Follows.Models.Follow> followManager,
     IFollowStore <Plato.Follows.Models.Follow> followStore,
     IAuthorizationService authorizationService,
     IHttpContextAccessor httpContextAccessor,
     IEntityStore <Question> entityStore,
     IContextFacade contextFacade)
 {
     _request = httpContextAccessor.HttpContext.Request;
     _authorizationService = authorizationService;
     _followManager        = followManager;
     _contextFacade        = contextFacade;
     _followStore          = followStore;
     _entityStore          = entityStore;
 }
コード例 #29
0
        public AdminController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            ISiteSettingsStore settingsStore,
            IContextFacade contextFacade,
            IViewProviderManager <AdminIndex> viewProvider,
            IBreadCrumbManager breadCrumbManager)
        {
            _settingsStore     = settingsStore;
            _contextFacade     = contextFacade;
            _viewProvider      = viewProvider;
            _breadCrumbManager = breadCrumbManager;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
コード例 #30
0
 public SampleEntityLabelsService(
     IEntityLabelManager <EntityLabel> entityLabelManager,
     ILabelStore <LabelBase> labelStore,
     IEntityStore <Entity> entityStore,
     IContextFacade contextFacade,
     IFeatureFacade featureFacade,
     IDbHelper dbHelper)
 {
     _entityLabelManager = entityLabelManager;
     _featureFacade      = featureFacade;
     _contextFacade      = contextFacade;
     _entityStore        = entityStore;
     _labelStore         = labelStore;
     _dbHelper           = dbHelper;
     _random             = new Random();
 }
コード例 #31
0
 public LabelManager(
     ILabelStore <TLabel> labelStore,
     //ILabelRoleStore<LabelRole> labelRoleStore,
     ILabelDataStore <LabelData> labelDataStore,
     IContextFacade contextFacade,
     IAliasCreator aliasCreator,
     IPlatoRoleStore roleStore,
     IBroker broker)
 {
     _labelDataStore = labelDataStore;
     _contextFacade  = contextFacade;
     _aliasCreator   = aliasCreator;
     _labelStore     = labelStore;
     _roleStore      = roleStore;
     _broker         = broker;
 }