inversionhourglass / Rougamo

Compile-time AOP component. Works with any method, whether it is async or sync, instance or static. Uses an aspectj-like pattern to match methods.
MIT License
398 stars 47 forks source link

4.0.1 blazor webassembly 是否可以考虑支持 #78

Closed bxjg1987 closed 1 month ago

bxjg1987 commented 2 months ago

blazor webassembly和auto模式中的客户端部分,使用的是WebAssemblyHost,它不是反省主机, 肉夹馍4.0.1目前测试没法在blazor webassembly中使用,这个可以加上吗

另外blazor的依赖注入跟asp.net core的依赖注入有差别,并且分server、webassembly和auto模式,参考: https://learn.microsoft.com/zh-cn/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-8.0

inversionhourglass commented 2 months ago

好的,我研究下

inversionhourglass commented 1 month ago

已完成对Blazor的支持,可以参考博客:https://www.cnblogs.com/nigture/p/18412772#%E8%82%89%E5%A4%B9%E9%A6%8D%E7%9B%B8%E5%85%B3%E5%BA%94%E7%94%A8

或者直接参考示例项目:https://github.com/inversionhourglass/Rougamo.DI/tree/master/samples

之后如果有依赖注入相关的问题,可以到 https://github.com/inversionhourglass/Rougamo.DI 中提交issue

bxjg1987 commented 1 month ago

好的,感谢哈!