mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-08 17:44:29 +08:00
- 移除 ICommand<TResponse> 和 ICommand 的空实现体 - 移除 IQuery<TResponse> 和 IStreamQuery<TResponse> 的空实现体 - 移除 INotification、IRequest<TResponse>、IStreamRequest<TResponse> 的空实现体 - 将 IStreamCommand<TResponse> 分离到独立文件中 - 将 IStreamQuery<TResponse> 分离到独立文件中 - 保持所有接口的核心功能不变,仅简化语法结构
14 lines
428 B
C#
14 lines
428 B
C#
namespace GFramework.Cqrs.Abstractions.Cqrs.Command;
|
|
|
|
/// <summary>
|
|
/// 表示一个 CQRS 命令。
|
|
/// 命令通常用于修改系统状态。
|
|
/// </summary>
|
|
/// <typeparam name="TResponse">命令响应类型。</typeparam>
|
|
public interface ICommand<out TResponse> : IRequest<TResponse>;
|
|
|
|
/// <summary>
|
|
/// 表示一个无显式返回值的 CQRS 命令。
|
|
/// </summary>
|
|
public interface ICommand : ICommand<Unit>;
|