using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
namespace FAuth.Controllers
{
///
/// 控制器类基类
///
public abstract class ControllerBase:Controller
{
///
/// 日志记录服务
///
public ILogger Logger { get; set; }
///
/// 服务集合
///
public IServiceProvider Services { get; set; }
///
/// 通过日志组件和服务集合生成控制器
///
/// 控制器日志组件
/// 服务集合
public ControllerBase(ILogger logger,IServiceProvider service) {
this.Logger = logger;
this.Services = service;
}
}
}