Closed abramped closed 7 months ago
未提供有效信息
未提供有效信息 [AsyncMethodBuilder(typeof(AsyncAVoidMethodBuilder))] public readonly struct AVoid { [DebuggerHidden] public static AVoid Completed => default(AVoid);
[DebuggerHidden]
public bool IsCompleted => true;
}
[CusMoAttribute]] class TestA { public async AVoid Test() { return AVoid.Completed; } } 编译AOP报错如上。
目前不支持自定义AsyncMethodBuilder
,Rougamo固定了异步的实现类型
受限于当前版本代码织入方式,想要在当前版本支持自定义AsyncMethodBuilder
会比较复杂。3.0版本将会修改代码织入方式,之后或许可以尝试支持自定义AsyncMethodBuilder
感谢回复!
3.0版本已支持自定义AsyncMethodBuilder
方法返回自定义AsyncMethodBuilder,AOP异常,Rougamo的官方版本