This project provides a series components to help building web projects quickly.
For now, this project is a package of many components so there maybe heavy references.
- Under development
- Just use the defaults or customize your own
RestfulApiSimpleExceptionHandlingMiddlewareandRestfulApiSimpleInvalidDataFilter. - Add
RestfulApiSimpleInvalidDataFilterto MVC options and addapp.UseRestfulApiSimpleExceptionHandlerinStartup.cs.
- Just use the defaults or customize your own
SimpleExceptionHandlingMiddlewareandSimpleInvalidDataFilter. - Add
SimpleInvalidDataFilterto MVC options and addapp.UseSimpleExceptionHandlerinStartup.cs.
- Just use the defaults or customize your own
ElapsedTimeMiddleware. - Add
app.UseElapsedTime()inStartup.cs. - Use
HttpContext.Items.AddElapsedTimeInfo(this IDictionary<object, object> items, object key, object info)to add an elapsed time information into collection, and they will be logged beforeElapsedTimeMiddlewareexisting.
See Models.ResponseModels for further information.