예제 #1
0
파일: WebHelper.cs 프로젝트: agsyazilim/Ags
 public WebHelper(
     IHttpContextAccessor httpContextAccessor,
     IAgsFileProvider fileProvider)
 {
     this._httpContextAccessor = httpContextAccessor;
     this._fileProvider        = fileProvider;
 }
예제 #2
0
 public RoxyFilemanController(IHostingEnvironment hostingEnvironment,
                              IAgsFileProvider fileProvider
                              )
 {
     this._hostingEnvironment = hostingEnvironment;
     this._fileProvider       = fileProvider;
 }
예제 #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);
        }
예제 #4
0
 public PictureController(IDownloadService downloadService,
                          IAgsFileProvider fileProvider,
                          IPictureService pictureService)
 {
     this._downloadService = downloadService;
     this._fileProvider    = fileProvider;
     this._pictureService  = pictureService;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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>();
        }
예제 #8
0
 public JbimagesController(IAgsFileProvider fileProvider)
 {
     this._fileProvider = fileProvider;
 }
예제 #9
0
 public AuthMessageSender(IAgsFileProvider fileProvider)
 {
     _fileProvider = fileProvider;
 }