|
1 | | -namespace ServiceControl.Audit.Persistence.PostgreSQL |
2 | | -{ |
3 | | - using System; |
4 | | - using System.Collections.Generic; |
5 | | - using System.Threading; |
6 | | - using System.Threading.Tasks; |
7 | | - using ServiceControl.Audit.Auditing; |
8 | | - using ServiceControl.Audit.Auditing.MessagesView; |
9 | | - using ServiceControl.Audit.Infrastructure; |
10 | | - using ServiceControl.Audit.Monitoring; |
11 | | - using ServiceControl.Audit.Persistence; |
12 | | - using ServiceControl.SagaAudit; |
| 1 | +namespace ServiceControl.Audit.Persistence.PostgreSQL; |
| 2 | + |
| 3 | +using System; |
| 4 | +using System.Collections.Generic; |
| 5 | +using System.Threading; |
| 6 | +using System.Threading.Tasks; |
| 7 | +using ServiceControl.Audit.Auditing; |
| 8 | +using ServiceControl.Audit.Auditing.MessagesView; |
| 9 | +using ServiceControl.Audit.Infrastructure; |
| 10 | +using ServiceControl.Audit.Monitoring; |
| 11 | +using ServiceControl.Audit.Persistence; |
| 12 | +using ServiceControl.SagaAudit; |
13 | 13 |
|
14 | | - class PostgreSQLAuditDataStore : IAuditDataStore |
15 | | - { |
16 | | - public Task<MessageBodyView> GetMessageBody(string messageId, CancellationToken cancellationToken) => throw new NotImplementedException(); |
17 | | - public Task<QueryResult<IList<MessagesView>>> GetMessages(bool includeSystemMessages, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
18 | | - public Task<QueryResult<IList<AuditCount>>> QueryAuditCounts(string endpointName, CancellationToken cancellationToken) => throw new NotImplementedException(); |
19 | | - public Task<QueryResult<IList<KnownEndpointsView>>> QueryKnownEndpoints(CancellationToken cancellationToken) => throw new NotImplementedException(); |
20 | | - public Task<QueryResult<IList<MessagesView>>> QueryMessages(string searchParam, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
21 | | - public Task<QueryResult<IList<MessagesView>>> QueryMessagesByConversationId(string conversationId, PagingInfo pagingInfo, SortInfo sortInfo, CancellationToken cancellationToken) => throw new NotImplementedException(); |
22 | | - public Task<QueryResult<IList<MessagesView>>> QueryMessagesByReceivingEndpoint(bool includeSystemMessages, string endpointName, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
23 | | - public Task<QueryResult<IList<MessagesView>>> QueryMessagesByReceivingEndpointAndKeyword(string endpoint, string keyword, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
24 | | - public Task<QueryResult<SagaHistory>> QuerySagaHistoryById(Guid input, CancellationToken cancellationToken) => throw new NotImplementedException(); |
25 | | - } |
| 14 | +class PostgreSQLAuditDataStore : IAuditDataStore |
| 15 | +{ |
| 16 | + public Task<MessageBodyView> GetMessageBody(string messageId, CancellationToken cancellationToken) => throw new NotImplementedException(); |
| 17 | + public Task<QueryResult<IList<MessagesView>>> GetMessages(bool includeSystemMessages, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
| 18 | + public Task<QueryResult<IList<AuditCount>>> QueryAuditCounts(string endpointName, CancellationToken cancellationToken) => throw new NotImplementedException(); |
| 19 | + public Task<QueryResult<IList<KnownEndpointsView>>> QueryKnownEndpoints(CancellationToken cancellationToken) => throw new NotImplementedException(); |
| 20 | + public Task<QueryResult<IList<MessagesView>>> QueryMessages(string searchParam, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
| 21 | + public Task<QueryResult<IList<MessagesView>>> QueryMessagesByConversationId(string conversationId, PagingInfo pagingInfo, SortInfo sortInfo, CancellationToken cancellationToken) => throw new NotImplementedException(); |
| 22 | + public Task<QueryResult<IList<MessagesView>>> QueryMessagesByReceivingEndpoint(bool includeSystemMessages, string endpointName, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
| 23 | + public Task<QueryResult<IList<MessagesView>>> QueryMessagesByReceivingEndpointAndKeyword(string endpoint, string keyword, PagingInfo pagingInfo, SortInfo sortInfo, DateTimeRange timeSentRange = null, CancellationToken cancellationToken = default) => throw new NotImplementedException(); |
| 24 | + public Task<QueryResult<SagaHistory>> QuerySagaHistoryById(Guid input, CancellationToken cancellationToken) => throw new NotImplementedException(); |
26 | 25 | } |
0 commit comments