Browse Source

IMediator interface new methods implemented.

pull/1892/head
Onurkan Bakırcı 2 years ago
committed by GitHub
parent
commit
cabf1d7289
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/Services/Ordering/Ordering.Infrastructure/OrderingContext.cs

+ 10
- 0
src/Services/Ordering/Ordering.Infrastructure/OrderingContext.cs View File

@ -118,6 +118,16 @@ public class OrderingContextDesignFactory : IDesignTimeDbContextFactory<Ordering
class NoMediator : IMediator class NoMediator : IMediator
{ {
public IAsyncEnumerable<TResponse> CreateStream<TResponse>(IStreamRequest<TResponse> request, CancellationToken cancellationToken = default)
{
return default(IAsyncEnumerable<TResponse>);
}
public IAsyncEnumerable<object?> CreateStream(object request, CancellationToken cancellationToken = default)
{
return default(IAsyncEnumerable<object?>);
}
public Task Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default(CancellationToken)) where TNotification : INotification public Task Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default(CancellationToken)) where TNotification : INotification
{ {
return Task.CompletedTask; return Task.CompletedTask;


Loading…
Cancel
Save