예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AuditingHelper"/> class.
        /// </summary>
        /// <param name="auditSerializer">The audit serializer.</param>
        /// <param name="options">The options.</param>
        /// <param name="currentUser">The current user.</param>
        /// <param name="currentClient">The current client.</param>
        /// <param name="auditingStore">The auditing store.</param>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="correlationIdProvider">The correlation identifier provider.</param>
        public AuditingHelper(
            IAuditSerializer auditSerializer,
            IOptions <AuditingOptions> options,
            ICurrentUser currentUser,
            ICurrentClient currentClient,
            IAuditingStore auditingStore,
            ILogger <AuditingHelper> logger,
            IServiceProvider serviceProvider,
            ICorrelationIdProvider correlationIdProvider)
        {
            Options         = options.Value;
            AuditSerializer = auditSerializer;
            CurrentUser     = currentUser;
            CurrentClient   = currentClient;
            AuditingStore   = auditingStore;

            Logger                = logger;
            ServiceProvider       = serviceProvider;
            CorrelationIdProvider = correlationIdProvider;
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonNetAuditSerializer"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public JsonNetAuditSerializer(IOptions <AuditingOptions> options)
 {
     Options = options.Value;
 }