如何将当前请求注入服务控制器?
我应该在控制器中放入哪种类型?
public class RemoteFileServerService : IFileServerService
{
private readonly HttpContext?????;
public RemoteFileServerService(??????)
{
}
}
注册应该如何?
Container.RegisterType<IFileServerService, RemoteFileServerService>(new HierarchicalLifetimeManager());