- Cleaned up whitespace in Directory.Build.props and Directory.Packages.props for consistency. - Reformatted project file references in PnvPanel.Api.csproj for better clarity. - Enhanced code readability in various endpoint files by adjusting line breaks and indentation. - Standardized method signatures and improved formatting in ResultExtensions and multiple endpoint classes for better maintainability.
15 lines
446 B
C#
15 lines
446 B
C#
namespace PnvPanel.Application.Common.Messaging;
|
|
|
|
/// <summary>Собственный тонкий CQRS-диспетчер (без MediatR).</summary>
|
|
public interface ISender
|
|
{
|
|
Task<TResponse> Send<TResponse>(
|
|
ICommand<TResponse> command,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
Task<TResponse> Send<TResponse>(
|
|
IQuery<TResponse> query,
|
|
CancellationToken cancellationToken = default
|
|
);
|
|
}
|