zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Infrastructure/EntityFrameworks/NullMediator.cs

43 lines
1.5 KiB
C#
Raw Normal View History

2023-12-05 09:22:48 +00:00
using MediatR;
namespace ZeroFramework.DeviceCenter.Infrastructure.EntityFrameworks
{
public class NullMediator : IMediator
{
public IAsyncEnumerable<TResponse> CreateStream<TResponse>(IStreamRequest<TResponse> request, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public IAsyncEnumerable<object?> CreateStream(object request, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public Task Publish(object notification, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public Task Publish<TNotification>(TNotification notification, CancellationToken cancellationToken = default) where TNotification : INotification
{
throw new NotImplementedException();
}
public Task<TResponse> Send<TResponse>(IRequest<TResponse> request, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
public Task Send<TRequest>(TRequest request, CancellationToken cancellationToken = default) where TRequest : IRequest
{
throw new NotImplementedException();
}
public Task<object?> Send(object request, CancellationToken cancellationToken = default)
{
throw new NotImplementedException();
}
}
}