@manhng

Welcome to my blog!

Top secure & performance in .NET

September 16, 2020 14:24

Top secure & performance in .NET (edit)

https://www.danylkoweb.com/Blog/10-ways-to-speed-up-your-aspnet-mvc-application-EL

Source code samples

https://github.com/chaliy/inline_scheduler

https://github.com/NuGet/WebBackgrounder

Web Background Tasks with WebBackgrounder

https://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx/

https://www.dotnetcurry.com/aspnet-mvc/975/new-features-aspnet-mvc-5

What's new fundamental features of MVC 5:

  • Scaffolding
  • ASP.NET Identity
  • One ASP.NET
  • Bootstrap
  • Attribute Routing
  • Filter Overrides

This technique can make your background tasks within ASP.NET much more robust.

Performance Tuning - 15 Simple ASP.NET Performance Tuning Tips

https://stackify.com/asp-net-performance-tuning/

  1. Measure everything
  2. Pick the low-hanging fruit first
  3. Enable compression
  4. Reduce HTTP requests
  5. HTTP/2 over SSL
  6. Minify your files
  7. Load CSS first
  8. Load JavaScript last
  9. Shrink images
  10. Check your queries
  11. Cache your pages
  12. Cache parts of your pages
  13. Content delivery network (CDN)
  14. Shrink your libraries
  15. Avoid client-side redirects

https://www.codeproject.com/articles/41930/how-to-improve-the-performance-of-asp-net-mvc-web

Here are a few useful links to read more:

https://www.c-sharpcorner.com/UploadFile/8a67c0/8-steps-make-your-Asp-Net-mvc-website-faster/

https://devblogs.microsoft.com/aspnet/queuebackgroundworkitem-to-reliably-schedule-and-run-background-processes-in-asp-net/

https://anthonygiretti.com/2014/05/18/exploring-queuebackgroundworkitem-in-asp-net-and-framework-4-5-2/

https://mariusschulz.com/articles/using-queuebackgroundworkitem-to-schedule-background-jobs-from-an-asp-net-application-in-net-4-5-2

https://codingcanvas.com/using-hostingenvironment-queuebackgroundworkitem-to-run-background-tasks-in-asp-net/

http://www.davidwhitney.co.uk/Blog/2014/05/09/exploring-the-queuebackgroundworkitem-in-asp-net-framework-4-5-2/

Life Cycle

  • ASP.NET Application Life Cycle Overview for IIS 7.0
  • ASP.NET Application Life Cycle
  • ASP.NET Page Life Cycle
  • HTTP Request Lifecycle Events in IIS Pipeline

https://dotnettekki.com/aspnet-mvc-page-life-cycle/

https://www.c-sharpcorner.com/article/asp-net-request-life-cycle/

https://www.codeproject.com/Articles/1168712/How-to-quickly-configure-your-MVC-website-in-IIS

https://www.dotnetcurry.com/aspnet/1263/aspnet-application-page-life-cycle-interview-question

https://codewithshadman.com/aspnet-mvc-request-life-cycle-and-application-events/ (HTTP Module)

https://www.dotnetcurry.com/aspnet/1263/aspnet-application-page-life-cycle-interview-question (First Request)

https://docs.microsoft.com/en-us/previous-versions/aspnet/swe97x0b(v=vs.100) (Application, Request, Server, Session, Response, Context, Trace)

MVC Life Cycles

Route Handler

ASP.NET

 

Hangfire

https://docs.hangfire.io/en/latest/tutorials/send-email.html

https://www.codeproject.com/tips/1030288/asp-net-mvc-hangfire-execute-jobs-in-background-us

https://github.com/RawSanj/Hangfire-MVC-5-Web

https://code.4noobz.net/hangfire-quickstart-simple-tutorial/

https://www.c-sharpcorner.com/article/schedule-background-jobs-using-hangfire-in-asp-net-core/

Precompile Razor Views

https://stackoverflow.com/questions/49028212/precompile-asp-net-views-with-ms-build

Precompile with MSBuild

https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/AM8PAkQKwsHbNYXy2VeX5Q

https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/eP7B7mh55YlLmKLo~mWEgA

Console App (Global Exception Handling in c#)

https://forums.asp.net/t/2162225.aspx?Asp+net+core+console+application+Connect+database+and+add+dbContext+and+models

Console App call Web Services (ASMX)

https://www.c-sharpcorner.com/UploadFile/a20beb/how-to-access-a-web-service-in-console-application/

https://www.aspsnippets.com/Articles/Call-Consume-Web-Service-ASMX-in-Console-application-using-C-and-VBNet.aspx

Recurring Tasks - Schedule Tasks - Background Tasks - Multi threading with Cancellation Token (Using the cancellation token)

https://codereview.stackexchange.com/questions/119956/recurring-tasks-in-asp-net-mvc (Review code)

https://www.codeproject.com/articles/1067678/practical-multithreading-in-asp-net

Secure

October 6, 2017 00:38

Show menu depending on user roles

https://www.codeproject.com/Articles/1075956/ASP-NET-MVC-User-Role-Base-Menu-Management-Using-W

https://www.codeproject.com/Articles/1075134/ASP-NET-MVC-Security-And-Creating-User-Role

 

https://github.com/martinkearn/SecureWebAPIExample/

 

https://github.com/dotnetcurry/role-security-mvc5

http://www.dotnetcurry.com/aspnet-mvc/1102/aspnet-mvc-role-based-security

 

http://techbrij.com/asp-net-core-identity-role-policy-authorization

http://techbrij.com/javascript-jquery-libraries-plugins

 

ASP.NET MVC

https://www.asp.net/mvc

https://www.asp.net/mvc/videos

 

Entity Framework (EF) Documentation

https://msdn.microsoft.com/en-us/data/ee712907

Categories

Recent posts