示例#1
0
 //private readonly HttpContextAccessor httpContextAccessor;
 public DataAccessLayer(MyComponent myComponent)
 {
     _myComponent = myComponent;
 }
示例#2
0
 //private readonly HttpContextAccessor httpContextAccessor;
 public DataAccessLayer(IHttpContextAccessor httpContextAccessor)
 {
     _myComponent = new MyComponent(httpContextAccessor);
 }