码迷,mamicode.com
首页 > 移动开发 > 详细

net abp core的appservice中访问httpcontext对象

时间:2018-09-05 17:40:03      阅读:397      评论:0      收藏:0      [点我收藏+]

标签:repos   域服务   访问   ali   pre   dom   ref   instance   pps   

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对象

标签:repos   域服务   访问   ali   pre   dom   ref   instance   pps   

原文地址:https://www.cnblogs.com/damsoft/p/9592040.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!