net abp core的appservice中访问httpcontext对象
Posted 晓明的哥哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了net abp core的appservice中访问httpcontext对象相关的知识,希望对你有一定的参考价值。
private readonly IHttpContextAccessor _httpContext; /// <summary> /// Initializes a new instance of the <see cref="FileAppService"/> class. /// File构造方法 /// </summary> /// <param name="cacheManager">缓存服务</param> /// <param name="uR01DomainService">用户领域服务</param> /// <param name="httpContext">context</param> /// <param name="gK03Repository">用户上传的资源文件仓储接口</param> public FileAppService( ICacheManager cacheManager, IUR01DomainService uR01DomainService, IHttpContextAccessor httpContext, IGK03Repository gK03Repository ) { this._cacheManager = cacheManager; this._uR01DomainService = uR01DomainService; this._httpContext = httpContext; this._gK03Repository = gK03Repository; }
以上是关于net abp core的appservice中访问httpcontext对象的主要内容,如果未能解决你的问题,请参考以下文章
abp 指定 AppService中某个方法不是用驼峰命名(CamelCase)返回
使用 NodaTime LocalDate 调用 Web api POST (abp appservice) 无法序列化