示例#1
0
        public async Task PostCreate(IBus bus)
        {
            LogContext.Debug?.Log($"Connecting Entity Framework Core Audit Store {_auditTableName}");

            var auditStore = new EntityFrameworkAuditStore(_dbContextOptionsBuilder.Options, _auditTableName);

            bus.ConnectSendAuditObservers(auditStore, _filter);
            bus.ConnectConsumeAuditObserver(auditStore, _filter);
        }
示例#2
0
        public async Task PostCreate(IBus bus)
        {
            LogContext.Debug?.Log($"Connecting Azure Table Audit Store: {_table.Name}");

            var auditStore = new AzureTableAuditStore(_table, _partitionKeyFormatter);

            bus.ConnectSendAuditObservers(auditStore, _filter);
            bus.ConnectConsumeAuditObserver(auditStore, _filter);
        }