I'm implementing a dotnet Maui app, and got to the point when I'd need some aspects to hanlde errors and certain responses. In the past, I implemented interceptors using Castle Windsor, but how can I do it in Maui?
The dev environment is Visual Studio 2022 v17.6.2 Maui versions:
Installed Workload Id Manifest Version Installation Source
---------------------------------------------------------------------
maui-ios 7.0.86/7.0.100 VS 17.6.33723.286
android 33.0.46/7.0.100 VS 17.6.33723.286
maui-windows 7.0.86/7.0.100 VS 17.6.33723.286
maui-maccatalyst 7.0.86/7.0.100 VS 17.6.33723.286
maccatalyst 16.4.7054/7.0.100 VS 17.6.33723.286
ios 16.4.7054/7.0.100 VS 17.6.33723.286
maui-android 7.0.86/7.0.100 VS 17.6.33723.286
Targetframework: net7
Problem is that the built in DI resolver doesn't support interceptors (unless I missed something).