using MediatR; namespace ZeroFramework.DeviceCenter.Infrastructure.EntityFrameworks { public class NullMediator : IMediator { public IAsyncEnumerable CreateStream(IStreamRequest request, CancellationToken cancellationToken = default) { throw new NotImplementedException(); } public IAsyncEnumerable CreateStream(object request, CancellationToken cancellationToken = default) { throw new NotImplementedException(); } public Task Publish(object notification, CancellationToken cancellationToken = default) { throw new NotImplementedException(); } public Task Publish(TNotification notification, CancellationToken cancellationToken = default) where TNotification : INotification { throw new NotImplementedException(); } public Task Send(IRequest request, CancellationToken cancellationToken = default) { throw new NotImplementedException(); } public Task Send(TRequest request, CancellationToken cancellationToken = default) where TRequest : IRequest { throw new NotImplementedException(); } public Task Send(object request, CancellationToken cancellationToken = default) { throw new NotImplementedException(); } } }