public RemoteServerNodeManager(IServerNodeService serverNodeService, ISysLogService sysLogService, ILoggerFactory loggerFactory) { _serverNodeService = serverNodeService; NodeProxy = new RemoteServerNodeProxy(sysLogService); _logger = loggerFactory.CreateLogger <RemoteServerNodeManager>(); _serverNodeClientReports = new ConcurrentDictionary <string, IService.ClientInfos>(); }
public static void AddLog(SysLog log) { ISysLogService service = IoC.Resolve <ISysLogService>(); service.Create(log); service.Save(); }
public SysUserController(ISysUserService userService, ISysUserLogonService userLogonService, ISysLogService logService, IMapper mapper) { _userService = userService; _logService = logService; _userLogonService = userLogonService; _mapper = mapper; }
/// <summary> /// 获取用户登录日志 /// </summary> private void GetUserLoginLogs() { ISysLogService sysLogService = IoC.Resolve <ISysLogService>(); int pageIndex = 1; if (!int.TryParse(Request.Params["pageindex"], out pageIndex)) { pageIndex = 1; } string beginStr = ""; string endStr = ""; DateTime begin; DateTime end; if (!DateTime.TryParse(Request.Params["beginDate"], out begin) || !DateTime.TryParse(Request.Params["endDate"], out end)) { beginStr = string.Empty; endStr = string.Empty; } else { beginStr = begin.ToString("yyyy/MM/dd HH:mm:ss"); endStr = end.ToString("yyyy/MM/dd HH:mm:ss"); } int totalCount = 0; var result = sysLogService.SelectLoginLogs(beginStr, endStr, -1, this.LoginUser.Code, pageIndex, ref totalCount); AppGlobal.RenderResult <List <SysLoginLogVM> >(ApiCode.Success, result, "", 0, totalCount); }
/// <summary> /// 构造函数 /// </summary> /// <param name="logger"></param> /// <param name="sysUserService"></param> /// <param name="userToken"></param> /// <param name="sysLogService"></param> public LoginController(ILogger <LoginController> logger, ISysUserService sysUserService, IUserToken userToken, ISysLogService sysLogService) { _logger = logger; _sysUserService = sysUserService; _userToken = userToken; _sysLogService = sysLogService; }
public LoginController(ISysAdminService adminService, ISysLogService logService, IHttpContextAccessor httpContextAccessor) { _adminService = adminService; _logService = logService; _httpContextAccessor = httpContextAccessor; }
public OnTimedEvent(IUnitOfWork unitOfWork, ISysUserLogService sysUserLogService, ISysLogService sysLogService, ISysMailService iSysMailService) { _unitOfWork = unitOfWork; _sysUserLogService = sysUserLogService; _sysLogService = sysLogService; _iSysMailService = iSysMailService; }
public AdminController(ISysAdminService adminService, ISysLogService logService, ICacheService cacheService, ICmsSiteService siteService) { _adminService = adminService; _logService = logService; _cacheService = cacheService; _siteService = siteService; }
public OnTimedEvent(IUnitOfWork unitOfWork, ISysUserLogService sysUserLogService, ISysLogService sysLogService, ITheIndexService iTheIndexService, ISysMailService iSysMailService) { _unitOfWork = unitOfWork; _sysUserLogService = sysUserLogService; _sysLogService = sysLogService; _iTheIndexService = iTheIndexService; _ISysMailService = iSysMailService; }
public RemoteServerProxyController(IRemoteServerNodeProxy remoteServerNodeProxy, IServerNodeService serverNodeService, ILoggerFactory loggerFactory, ISysLogService sysLogService) { _remoteServerNodeProxy = remoteServerNodeProxy; _logger = loggerFactory.CreateLogger <RemoteServerProxyController>(); }
public ServerNodeController(IServerNodeService serverNodeService, ISysLogService sysLogService, IRemoteServerNodeProxy remoteServerNodeProxy) { _serverNodeService = serverNodeService; _sysLogService = sysLogService; _remoteServerNodeProxy = remoteServerNodeProxy; }
public EventRegister(IRemoteServerNodeProxy remoteServerNodeProxy) { _appService = new AppService(new FreeSqlContext(FreeSQL.Instance)); _configService = new ConfigService(new FreeSqlContext(FreeSQL.Instance), null, _appService); _sysLogService = new SysLogService(new FreeSqlContext(FreeSQL.Instance)); _modifyLogService = new ModifyLogService(new FreeSqlContext(FreeSQL.Instance)); _serverNodeService = new ServerNodeService(new FreeSqlContext(FreeSQL.Instance)); _remoteServerNodeProxy = remoteServerNodeProxy; }
public HomeController(ISysSiteService siteService, ISysAdminService adminService, ISysMenuService sysMenuService, ISysLogService sysLogService, IHttpContextAccessor httpContextAccessor) { _siteService = siteService; _adminService = adminService; _sysMenuService = sysMenuService; _sysLogService = sysLogService; _httpContextAccessor = httpContextAccessor; }
public AdminController( ISysAdminService adminService, ISysLogService logService, IConfiguration config, IDistributedCache cache, ICmsShopService shop) : base(cache) { _adminService = adminService; _logService = logService; _config = config; _cache = cache; _shop = shop; }
public ConfigController( IConfigService configService, IModifyLogService modifyLogService, IRemoteServerNodeProxy remoteServerNodeProxy, IServerNodeService serverNodeService, ISysLogService sysLogService) { _configService = configService; _modifyLogService = modifyLogService; _remoteServerNodeProxy = remoteServerNodeProxy; _serverNodeService = serverNodeService; _sysLogService = sysLogService; }
public ActionFilterAttribute(ILoggerFactory loggerFactory, IMemoryCache memoryCache, IManagerService Managerervice, ISysLogService SysLogService, INavigationService NavigationService , IRoleService RoleService, IRoleNavDictService RoleNavDictService, IDictService DictService, IDictTypeService DictTypeService ) { logger = loggerFactory.CreateLogger <ActionFilterAttribute>(); _Cache = memoryCache; _ManagerService = Managerervice; _Token = new Token(_Cache); _SysLogService = SysLogService; _NavigationService = NavigationService; _RoleService = RoleService; _RoleNavDictService = RoleNavDictService; _DictService = DictService; _DictTypeService = DictTypeService; }
/// <summary> /// 用户访问天统计 /// </summary> private List <SysUserLoginStatisticsVM> BuilderUserVisit(ISysLogService sysLogService, string beginDate, string endDate, int type = 1) { var result = sysLogService.SelectLoginLogStatistics(type, beginDate, endDate); return(result); //StringBuilder builder = new StringBuilder(); //foreach (var item in result) //{ // string period = item.OccDate; // builder.Append("{"); // builder.AppendFormat("period:'{0}',会员: {1},代理:{2},总代理:{3},", period, item.MemberCount, item.ProxyCount, item.BasicProyCount); // builder.Append("},"); //} //return builder.ToString(); }
private void Bind() { ISysLogService sysLogService = IoC.Resolve <ISysLogService>(); string outBeginStr = string.Empty; string outEndStr = string.Empty; DateTime outBegin; DateTime outEnd; if (DateTime.TryParse(this.txtBegin.Text.Trim(), out outBegin) && DateTime.TryParse(this.txtEnd.Text.Trim(), out outEnd)) { outBeginStr = outBegin.ToString("yyyy/MM/dd HH:mm:ss"); outEndStr = outEnd.ToString("yyyy/MM/dd HH:mm:ss"); } int totalcount = 0; var result = sysLogService.SelectLoginLogs(outBeginStr, outEndStr, Convert.ToInt32(drpuserType.SelectedValue), this.txtUserCode.Text.Trim(), this.pagerControl.CurrentPageIndex, ref totalcount); this.repList.DataSource = result; this.repList.DataBind(); this.pagerControl.RecordCount = totalcount; }
private void Bind() { ISysLogService sysLogService = IoC.Resolve <ISysLogService>(); string beginDate = DateTime.Now.ToString("yyyy/MM") + "/01 00:00:00"; string endDate = Convert.ToDateTime(beginDate).AddMonths(1).ToString("yyyy/MM/dd ") + " 23:59:59"; var result = BuilderUserVisit(sysLogService, beginDate, endDate);//天 this.rprDay.DataSource = result; this.rprDay.DataBind(); beginDate = DateTime.Now.ToString("yyyy") + "/01/01 00:00:00"; endDate = Convert.ToDateTime(beginDate).AddYears(1).ToString("yyyy/MM/dd ") + " 23:59:59"; var result1 = BuilderUserVisit(sysLogService, beginDate, endDate, 2);//月 this.rptMonth.DataSource = result1; this.rptMonth.DataBind(); var result2 = BuilderUserVisit(sysLogService, beginDate, endDate, 3);//年 this.repYear.DataSource = result2; this.repYear.DataBind(); }
public SysAreaController(ISysAreaService areaService, ISysLogService logService) { _areaService = areaService; _logService = logService; }
public SysLogController(ISysLogService sysLogService) { _sysLogService = sysLogService; }
public LogsController(ILogger <LogsController> logger, TokenManager tokenManager, ISysLogService logsService) { _logger = logger; _tokenManager = tokenManager; _logsService = logsService; }
public AdminController(ISettingService settingService, ISysLogService sysLogService) { _settingService = settingService; _sysLogService = sysLogService; }
public AppController(IAppService appService, ISysLogService sysLogService) { _appService = appService; _sysLogService = sysLogService; }
public AdminController(ISysAdminService adminService, ISysLogService logService) { _adminService = adminService; _logService = logService; }
public LoginController(ISysUserService userService, ISysLogService logService) { _userService = userService; _logService = logService; }
public LoginController(ISysUserService sysUserService , ISysLogService sysLogService) { _SysUserService = sysUserService; _ISysLogService = sysLogService; }
public DemoController(IDemoService demoService, ISysLogService logService) { _demoService = demoService; _logService = logService; }
public ConfigService(ISqlContext context, IMemoryCache memoryCache, ISysLogService sysLogService) { _dbContext = context as AgileConfigDbContext; _sysLogService = sysLogService; _memoryCache = memoryCache; }
public SysBaseController() { _logService = CoreContextProvider.GetService <ISysLogService>(); }
public SysStatisticController(ISysLogService sysLogService, ISysUserLogService sysUserLogService) { _sysLogService = sysLogService; _sysUserLogService = sysUserLogService; }
public LogController(ISysLogService logService) { _logService = logService; }