public ListModel(EmployeeAppService _employeeAppService, IJsonSerializer jsonSerializer, IAuditLogRepository auditLogsRepo, IAuditingManager auditingManager) { employeeAppService = _employeeAppService; JsonSerializer = jsonSerializer; AuditLogsRepo = auditLogsRepo; AuditingManager = auditingManager; }
private async Task ProcessWithNewAuditingScopeAsync( IAbpMethodInvocation invocation, AbpAuditingOptions options, ICurrentUser currentUser, IAuditingManager auditingManager, IAuditingHelper auditingHelper) { var hasError = false; using (var saveHandle = auditingManager.BeginScope()) { try { await ProceedByLoggingAsync(invocation, auditingHelper, auditingManager.Current); Debug.Assert(auditingManager.Current != null); if (auditingManager.Current.Log.Exceptions.Any()) { hasError = true; } } catch (Exception) { hasError = true; throw; } finally { if (ShouldWriteAuditLog(invocation, options, currentUser, hasError)) { await saveHandle.SaveAsync(); } } } }
public LookupValueAppService(IRepository <LookupValue, long> repository, IRepository <LookupType, long> lookupTypeRepository, IRepository <LookupValue, long> lookupValuesRepository, IAuditingManager auditingManager) : base(repository) { _lookupTypeRepository = lookupTypeRepository; _lookupValuesRepository = lookupValuesRepository; _auditingManager = auditingManager; }
public DemoController(ILogger <DemoController> logger, IStringLocalizer <ERegistrationResource> stringLocalizer, IAuditingManager auditingManager, IConfiguration config) : base(auditingManager, logger) { _config = config; _stringLocalizer = stringLocalizer; }
public PS_PaySubGroupAppService(IRepository <PS_PaySubGroup, int> repository, IRepository <PS_PaySubGroupBank> paySubGroupBanksRepo, IRepository <PS_PayPeriod> payPeriodsRepo, IAuditingManager auditingManager, IAuditLogRepository auditLogsRepo) : base(repository) { Repository = repository; PaySubGroupBanksRepo = paySubGroupBanksRepo; PayPeriodsRepo = payPeriodsRepo; AuditingManager = auditingManager; AuditLogsRepo = auditLogsRepo; }
public AbpAuditingMiddleware( IAuditingManager auditingManager, ICurrentUser currentUser, IOptions <AbpAuditingOptions> options) { _auditingManager = auditingManager; CurrentUser = currentUser; Options = options.Value; }
/// <summary> /// /// </summary> /// <param name="next"></param> /// <param name="auditingManager"></param> /// <param name="options"></param> public AuditingMiddleware( RequestDelegate next, IAuditingManager auditingManager, IOptions <AuditingOptions> options) { _next = next; _auditingManager = auditingManager; Options = options.Value; }
public ZenAuditActionFilter(IOptions <AbpAuditingOptions> options, IAuditingHelper auditingHelper, IAuditingManager auditingManager, ICurrentUser currentUser) { Options = options.Value; _auditingHelper = auditingHelper; _auditingManager = auditingManager; _currentUser = currentUser; }
/// <summary> /// /// </summary> /// <param name="auditingHelper"></param> /// <param name="auditingManager"></param> /// <param name="options"></param> /// <param name="principalAccessor"></param> public AuditingInterceptor(IAuditingHelper auditingHelper, IAuditingManager auditingManager, IOptions <AuditingOptions> options, ICurrentPrincipalAccessor principalAccessor ) { _auditingHelper = auditingHelper; _auditingManager = auditingManager; _principalAccessor = principalAccessor; _options = options.Value; }
public AbpAuditingMiddleware( IAuditingManager auditingManager, ICurrentUser currentUser, IOptions <AbpAuditingOptions> auditingOptions, IOptions <AbpAspNetCoreAuditingOptions> aspNetCoreAuditingOptions) { _auditingManager = auditingManager; CurrentUser = currentUser; AuditingOptions = auditingOptions.Value; AspNetCoreAuditingOptions = aspNetCoreAuditingOptions.Value; }
public AuditingMiddleware( IAuditingManager auditingManager, ICurrentUser currentUser, IOptions <AuditingOptions> auditingOptions, IOptions <AspNetCoreAuditingOptions> aspNetCoreAuditingOptions, IUnitOfWorkManager unitOfWorkManager) { _auditingManager = auditingManager; CurrentUser = currentUser; UnitOfWorkManager = unitOfWorkManager; AuditingOptions = auditingOptions.Value; AspNetCoreAuditingOptions = aspNetCoreAuditingOptions.Value; }
public FaultGradeAppService( IRepository <FaultGrade, int> faultGradeRepository, IStringLocalizer <TestServiceResource> localizer, //ILanguageInfo languageInfo, ILanguageProvider languageProvider, //IIdentityUserLookupAppService identityUserLookupAppService, ICurrentUser currentUser, ILogger <FaultGradeAppService> logger, IAuditingManager auditingManager) { _faultGradeRepository = faultGradeRepository; _localizer = localizer; //_languageInfo = languageInfo; _languageProvider = languageProvider; //_identityUserLookupAppService = identityUserLookupAppService; _currentUser = currentUser; _logger = logger; _auditingManager = auditingManager; }
public Auditing_Tests() { _auditingManager = GetRequiredService <IAuditingManager>(); }
public Auditing_Tests() { _auditingManager = GetRequiredService <IAuditingManager>(); _unitOfWorkManager = GetRequiredService <IUnitOfWorkManager>(); }
public MultiTenantAuditLog_Tests() { _auditingManager = GetRequiredService <IAuditingManager>(); _auditLogRepository = GetRequiredService <IAuditLogRepository>(); }
protected ERegistrationController(IAuditingManager auditingManager, ILogger <ERegistrationController> logger) { _auditingManager = auditingManager; LocalizationResource = typeof(ERegistrationResource); _logger = logger; }
public AuditingInterceptor_Tests() { _auditingManager = GetRequiredService <IAuditingManager>(); }
public RocketAuditPageFilter(IOptions <RocketAuditingOptions> options, IAuditingHelper auditingHelper, IAuditingManager auditingManager) { Options = options.Value; _auditingHelper = auditingHelper; _auditingManager = auditingManager; }
/// <summary> /// /// </summary> /// <param name="options"></param> /// <param name="auditingHelper"></param> /// <param name="auditingManager"></param> public AuditingActionFilter(IOptions <AuditingOptions> options, IAuditingHelper auditingHelper, IAuditingManager auditingManager) { Options = options.Value; _auditingHelper = auditingHelper; _auditingManager = auditingManager; }
public AuditingInterceptor(IAuditingHelper auditingHelper, IAuditingManager auditingManager) { _auditingHelper = auditingHelper; _auditingManager = auditingManager; }
public Auditing_Tests() { _auditingManager = ServiceProvider.GetService <IAuditingManager>(); }