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
RestfulApiSimpleExceptionHandlingMiddleware
andRestfulApiSimpleInvalidDataFilter
. - Add
RestfulApiSimpleInvalidDataFilter
to MVC options and addapp.UseRestfulApiSimpleExceptionHandler
inStartup.cs
.
- Just use the defaults or customize your own
SimpleExceptionHandlingMiddleware
andSimpleInvalidDataFilter
. - Add
SimpleInvalidDataFilter
to MVC options and addapp.UseSimpleExceptionHandler
inStartup.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 beforeElapsedTimeMiddleware
existing.
See Models.ResponseModels for further information.