Example #1
0
 public ListModel(EmployeeAppService _employeeAppService, IJsonSerializer jsonSerializer, IAuditLogRepository auditLogsRepo, IAuditingManager auditingManager)
 {
     employeeAppService = _employeeAppService;
     JsonSerializer     = jsonSerializer;
     AuditLogsRepo      = auditLogsRepo;
     AuditingManager    = auditingManager;
 }
Example #2
0
        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();
                    }
                }
            }
        }
Example #3
0
 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;
 }
Example #5
0
 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;
 }
Example #6
0
        public AbpAuditingMiddleware(
            IAuditingManager auditingManager,
            ICurrentUser currentUser,
            IOptions <AbpAuditingOptions> options)
        {
            _auditingManager = auditingManager;

            CurrentUser = currentUser;
            Options     = options.Value;
        }
Example #7
0
        /// <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;
        }
Example #8
0
 public ZenAuditActionFilter(IOptions <AbpAuditingOptions> options,
                             IAuditingHelper auditingHelper,
                             IAuditingManager auditingManager,
                             ICurrentUser currentUser)
 {
     Options          = options.Value;
     _auditingHelper  = auditingHelper;
     _auditingManager = auditingManager;
     _currentUser     = currentUser;
 }
Example #9
0
 /// <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;
 }
Example #10
0
        public AbpAuditingMiddleware(
            IAuditingManager auditingManager,
            ICurrentUser currentUser,
            IOptions <AbpAuditingOptions> auditingOptions,
            IOptions <AbpAspNetCoreAuditingOptions> aspNetCoreAuditingOptions)
        {
            _auditingManager = auditingManager;

            CurrentUser               = currentUser;
            AuditingOptions           = auditingOptions.Value;
            AspNetCoreAuditingOptions = aspNetCoreAuditingOptions.Value;
        }
Example #11
0
    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;
    }
Example #12
0
 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;
 }
Example #13
0
 public Auditing_Tests()
 {
     _auditingManager = GetRequiredService <IAuditingManager>();
 }
Example #14
0
 public Auditing_Tests()
 {
     _auditingManager   = GetRequiredService <IAuditingManager>();
     _unitOfWorkManager = GetRequiredService <IUnitOfWorkManager>();
 }
Example #15
0
 public MultiTenantAuditLog_Tests()
 {
     _auditingManager    = GetRequiredService <IAuditingManager>();
     _auditLogRepository = GetRequiredService <IAuditLogRepository>();
 }
Example #16
0
 protected ERegistrationController(IAuditingManager auditingManager, ILogger <ERegistrationController> logger)
 {
     _auditingManager     = auditingManager;
     LocalizationResource = typeof(ERegistrationResource);
     _logger = logger;
 }
Example #17
0
 public AuditingInterceptor_Tests()
 {
     _auditingManager = GetRequiredService <IAuditingManager>();
 }
Example #18
0
 public RocketAuditPageFilter(IOptions <RocketAuditingOptions> options, IAuditingHelper auditingHelper, IAuditingManager auditingManager)
 {
     Options          = options.Value;
     _auditingHelper  = auditingHelper;
     _auditingManager = auditingManager;
 }
Example #19
0
 /// <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;
 }
Example #20
0
 public AuditingInterceptor(IAuditingHelper auditingHelper, IAuditingManager auditingManager)
 {
     _auditingHelper  = auditingHelper;
     _auditingManager = auditingManager;
 }
Example #21
0
 public Auditing_Tests()
 {
     _auditingManager = ServiceProvider.GetService <IAuditingManager>();
 }