Exemple #1
0
 public ControllerBase(IApplicationServiceBase <T1> app, ILoggerFactory logger, IHostingEnvironment env, ErrorMap err)
 {
     this._app    = app;
     this._logger = logger.CreateLogger <Controller>();
     this._env    = env;
     this._err    = err;
 }
 public ControllerMoreBase(IRepositoryExtensions <TEntity, TFilter> rep, IApplicationServiceBase <TDto> app, ILoggerFactory logger, EnviromentInfo env, CurrentUser user, ICache cache, ExportExcel <dynamic> export, ErrorMap err)
 {
     this._rep         = rep;
     this._app         = app;
     this._logger      = logger.CreateLogger <Controller>();
     this._env         = env;
     this._user        = user;
     this._cache       = cache;
     this._cacheHelper = new CacheHelper(this._cache);
     this._export      = export;
     this._err         = err;
 }
Exemple #3
0
 public BaseController(IApplicationServiceBase <int, TViewModel> service) =>
Exemple #4
0
 public BaseController(IMediator mediator, IApplicationServiceBase <Entity, EntityDTO> applicationService)
 {
     this.mediator           = mediator;
     this.applicationService = applicationService;
 }
 public BaseAuthenticatedController(IApplicationServiceBase <int, TViewModel> service) : base(service)
 {
 }