Ejemplo n.º 1
0
        public NewsFileService(INewsFileRepository newsfileRepository, ICacheManager cacheManager,
                               IConfiguration configuration, IHttpContextAccessor httpContext)
        {
            this.mediaResourceUrl = configuration.GetSection("ApplicationSettings")["MediaResourceUrl"];
            this.httpContext      = httpContext;
            this.api = "http://" + this.httpContext.HttpContext.Request.Host.ToString() + this.mediaResourceUrl;

            this.thumbURL = configuration.GetSection("ApplicationSettings")["ThumbUrl"];
            this.URL      = configuration.GetSection("ApplicationSettings")["ResourceUrl"];
            this.imageUrl = configuration.GetSection("ApplicationSettings")["NMSImageUrl"];

            this._newsfileRepository = newsfileRepository;
            this._cacheManager       = cacheManager;
        }
Ejemplo n.º 2
0
 public AuthService(IConfiguration configuration, INewsFileRepository newsFileRepository)
 {
     this._configuration      = configuration;
     this._newsFileRepository = newsFileRepository;
 }