How do I configure my own IDataPortalExceptionInspector? #3823
Answered
by
StefanOssendorf
ajohnstone-ks
asked this question in
Questions
-
Using Csla 7, we have an IDataPortalExceptionInspector we'd to continue to use. I looked in the source and found RegisterExceptionInspector, but its on the DataPortalServerOptions property of CslaOptions which is internal. |
Beta Was this translation helpful? Give feedback.
Answered by
StefanOssendorf
Apr 17, 2024
Replies: 1 comment 2 replies
-
This is the way to do it in 7.x and 8.x: new ServiceCollection()
.AddCsla(
o => o.DataPortal(
dpo => dpo.AddServerSideDataPortal(
sdo => sdo.RegisterExceptionInspector<YourInspectorhere>()
)
)
); |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
ajohnstone-ks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the way to do it in 7.x and 8.x: