Example #1
0
 public WebHelper(
     IHttpContextAccessor httpContextAccessor,
     IAgsFileProvider fileProvider)
 {
     this._httpContextAccessor = httpContextAccessor;
     this._fileProvider        = fileProvider;
 }
Example #2
0
 public RoxyFilemanController(IHostingEnvironment hostingEnvironment,
                              IAgsFileProvider fileProvider
                              )
 {
     this._hostingEnvironment = hostingEnvironment;
     this._fileProvider       = fileProvider;
 }
Example #3
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="userAgentStringsPath">User agent file path</param>
        /// <param name="crawlerOnlyUserAgentStringsPath">User agent with crawlers only file path</param>
        /// <param name="fileProvider">File provider</param>
        public BrowscapXmlHelper(string userAgentStringsPath, string crawlerOnlyUserAgentStringsPath, IAgsFileProvider fileProvider)
        {
            this._crawlerUserAgentsRegexp = new List <string>();
            this._fileProvider            = fileProvider;

            Initialize(userAgentStringsPath, crawlerOnlyUserAgentStringsPath);
        }
Example #4
0
 public PictureController(IDownloadService downloadService,
                          IAgsFileProvider fileProvider,
                          IPictureService pictureService)
 {
     this._downloadService = downloadService;
     this._fileProvider    = fileProvider;
     this._pictureService  = pictureService;
 }
Example #5
0
 public CommonController(ICommonModelFactory commonModelFactory,
                         IAgsFileProvider fileProvider,
                         IStaticCacheManager cacheManager,
                         IUrlRecordService urlRecordService,
                         IWebHelper webHelper)
 {
     this._commonModelFactory = commonModelFactory;
     this._fileProvider       = fileProvider;
     this._cacheManager       = cacheManager;
     this._urlRecordService   = urlRecordService;
     this._webHelper          = webHelper;
 }
Example #6
0
 public PictureService(
     IDbContext dbContext,
     IAgsFileProvider fileProvider,
     IRepository <Picture> pictureRepository,
     IRepository <PictureBinary> pictureBinaryRepository,
     ISettingService settingService,
     IUrlRecordService urlRecordService,
     IWebHelper webHelper, IEventPublisher eventPublisher, MediaSettings mediaSettings, IRepository <NewsPictureMapping> newsPictRepository, IRepository <PhotoGalleryMapping> photoGalleryRepository, IRepository <SliderPictureMapping> sliderPictuRepository)
 {
     _dbContext                    = dbContext;
     this._fileProvider            = fileProvider;
     this._pictureRepository       = pictureRepository;
     this._pictureBinaryRepository = pictureBinaryRepository;
     this._settingService          = settingService;
     this._urlRecordService        = urlRecordService;
     this._webHelper               = webHelper;
     this._eventPublisher          = eventPublisher;
     this._mediaSettings           = mediaSettings;
     this._newsPictRepository      = newsPictRepository;
     this._photoGalleryRepository  = photoGalleryRepository;
     this._sliderPictuRepository   = sliderPictuRepository;
 }
Example #7
0
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="seoSettings">SEO settings</param>
        /// <param name="hostingEnvironment">Hosting environment</param>
        /// <param name="cacheManager">Cache manager</param>
        /// <param name="fileProvider">File provider</param>
        /// <param name="urlRecordService">Url record service</param>
        public PageHeadBuilder(SeoSettings seoSettings,
                               IHostingEnvironment hostingEnvironment,
                               IStaticCacheManager cacheManager,
                               IAgsFileProvider fileProvider,
                               IUrlRecordService urlRecordService)
        {
            this._seoSettings        = seoSettings;
            this._hostingEnvironment = hostingEnvironment;
            this._cacheManager       = cacheManager;
            this._fileProvider       = fileProvider;
            this._urlRecordService   = urlRecordService;
            this._processor          = new BundleFileProcessor();

            this._titleParts           = new List <string>();
            this._metaDescriptionParts = new List <string>();
            this._metaKeywordParts     = new List <string>();
            this._scriptParts          = new Dictionary <ResourceLocation, List <ScriptReferenceMeta> >();
            this._inlineScriptParts    = new Dictionary <ResourceLocation, List <string> >();
            this._cssParts             = new Dictionary <ResourceLocation, List <CssReferenceMeta> >();
            this._canonicalUrlParts    = new List <string>();
            this._headCustomParts      = new List <string>();
            this._pageCssClassParts    = new List <string>();
        }
Example #8
0
 public JbimagesController(IAgsFileProvider fileProvider)
 {
     this._fileProvider = fileProvider;
 }
Example #9
0
 public AuthMessageSender(IAgsFileProvider fileProvider)
 {
     _fileProvider = fileProvider;
 }