using System;
using System.Threading;
using System.Threading.Tasks;
using GFramework.Cqrs.Abstractions.Cqrs;
namespace GFramework.Cqrs.Tests.Cqrs;
///
/// 用于验证“生成注册器 + reflection fallback”组合路径的私有嵌套处理器容器。
///
internal sealed class ReflectionFallbackNotificationContainer
{
///
/// 获取仅能通过反射补扫接入的私有嵌套处理器类型。
///
public static Type ReflectionOnlyHandlerType => typeof(ReflectionOnlyGeneratedRegistryNotificationHandler);
private sealed class ReflectionOnlyGeneratedRegistryNotificationHandler
: INotificationHandler
{
///
/// 处理测试通知。
///
/// 通知实例。
/// 取消令牌。
/// 已完成任务。
public ValueTask Handle(GeneratedRegistryNotification notification, CancellationToken cancellationToken)
{
return ValueTask.CompletedTask;
}
}
}