You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adrian Ehrsam edited this page Nov 18, 2022
·
4 revisions
Extension Points
The whole tool is easily extensible by using the integrated Dependency Injection System of Asp.Net Core
Common tasks you can do:
Write a IParameterInterceptor, as an example see SystemParameters.cs. This allows you to add or remove parameters
Write a IGenericSPSerializer, as an example see GenericSPFileSerializer.cs. This allows you to make a different result.
Write a IRequestInterceptor, as an example see IRequestInterceptor.cs. This allows you to stop making a db call and return something else in special cases (eg for a permission check).
Write a IResponseExceptionHandler, see SqlServerExceptionHandler.cs. Use this to handle exceptions for the client or for logging
If you write an extension, it's best to do so using an Extension Method to the GenericBackendBuilder. There is a sample Extension in the Extensions Folder that makes use of an IParameterInterceptor