mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-06 16:16:44 +08:00
- 修复 YamlConfigLoader 的超长方法、依赖比较与热重载同步原语告警 - 拆分 MicrosoftDiContainerTests 与 AbstractAsyncQueryTests 的辅助类型文件以消除 MA0048 - 更新 analyzer warning reduction 跟踪文档并记录 non-incremental 构建基线变化
28 lines
879 B
C#
28 lines
879 B
C#
using GFramework.Core.Query;
|
|
|
|
namespace GFramework.Core.Tests.Query;
|
|
|
|
/// <summary>
|
|
/// 测试用异步查询类(抛出异常)
|
|
/// </summary>
|
|
public sealed class TestAsyncQueryWithExceptionV4 : AbstractAsyncQuery<TestAsyncQueryInputV2, int>
|
|
{
|
|
/// <summary>
|
|
/// 初始化TestAsyncQueryWithExceptionV4的新实例
|
|
/// </summary>
|
|
/// <param name="input">查询输入参数</param>
|
|
public TestAsyncQueryWithExceptionV4(TestAsyncQueryInputV2 input) : base(input)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 执行异步查询操作并抛出异常
|
|
/// </summary>
|
|
/// <param name="input">查询输入参数</param>
|
|
/// <exception cref="InvalidOperationException">总是抛出异常</exception>
|
|
protected override Task<int> OnDoAsync(TestAsyncQueryInputV2 input)
|
|
{
|
|
throw new InvalidOperationException("Test exception");
|
|
}
|
|
}
|