MASA.Framework icon indicating copy to clipboard operation
MASA.Framework copied to clipboard

当继承自Event的类为泛型时,会报Getting xxxx relationship chain failed

Open xiaomazz opened this issue 2 years ago • 2 comments

浮现步骤 【1】定义一个ETO public record CacheRefreshEto<TKey> : Event { } 【2】publish EventBus?.PublishAsync(new CacheRefreshEto<Guid>())!

【结果】 Getting CacheRefreshEtoxxxx relationship chain failed

【原因】

495cd524ce57c6e32a9a27b630d200b e10f4da776da1df1c74470fa3667713 6032b9c9ccc222cd231d6f8fb5b365d

期望,能够支持一下继承自event泛型eto的支持

xiaomazz avatar May 05 '23 15:05 xiaomazz

@zhenlei520 PTAL

doddgu avatar May 06 '23 03:05 doddgu

目前版本不支持泛型事件,这不是一个常见的操作,但我们会在1.0.0之前尽力解决

zhenlei520 avatar May 06 '23 05:05 zhenlei520