zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Infrastructure/EntityFrameworks/NullMediator.cs
2023-12-05 17:22:48 +08:00

43 lines
1.5 KiB
C#

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();
}
}
}