رفع مشکلات Web APIهای منتقل شده به ASP.NET Core در Linux
301, MovedPermanently
https://www.hanselman.com/blog/CustomerNotesDiagnosingIssuesUnderLoadOfWebAPIAppMigratedToASPNETCoreOnLinux.aspx icon

Some key areas of focus uncovered by this investigation were:

  • Being mindful of memory allocations to minimize GC pause times

  • Keeping long-running calls non-blocking/asynchronous

  • Minimizing calls to external resources (such as other web services or the database) with caching and grouping of requests 

رفع مشکلات Web APIهای منتقل شده به ASP.NET Core در Linux
سرویس جدیدی جهت تولید لینک (Link Generator)
301, MovedPermanently
https://blogs.msdn.microsoft.com/webdev/2018/08/27/asp-net-core-2-2-0-preview1-endpoint-routing/ icon

We’re introducing a new singleton service that will support generating a URL. This new service can be used from middleware, and does not require an HttpContext. For right now the set of things you can link to is limited to MVC actions, but this will expand in 3.0. 

سرویس جدیدی جهت تولید لینک (Link Generator)
نحوه‌ی فعال شدن کنترلرها و تزریق وابستگی‌ها در ASP.NET Core
200, OK
https://andrewlock.net/controller-activation-and-dependency-injection-in-asp-net-core-mvc/ icon

In this post, I'll describe how controllers are created in ASP.NET Core MVC using the IControllerActivator, the options available out of the box, and their differences when it comes to dependency injection. 

نحوه‌ی فعال شدن کنترلرها و تزریق وابستگی‌ها در ASP.NET Core
باید از View Componentها به جای Partial Viewها در ASP.NET Core استفاده کنید
200, OK
https://www.telerik.com/blogs/why-you-should-use-view-components-not-partial-views-aspnet-core icon

Why use View Components and not Partial Views? The biggest reason is that when inserting a Partial View into a Razor page, all the ViewData associated with the calling View is automatically associated with the Partial View. This means that a Partial View may behave very differently on one Razor page than on another. With View Components, you control what gets shared to your View Components. 

باید از View Componentها به جای Partial Viewها در ASP.NET Core استفاده کنید
استفاده از کتابخانه MediatR برای پیاده سازی DomainEventها در پروژه های ASP.NET Core
301, MovedPermanently
https://ardalis.com/using-mediatr-in-aspnet-core-apps icon

I’ve started looking at using MediatR for my domain events implementations. To that end, I created a quick sample project using ASP.NET Core 2.0. Overall things were pretty easy to get going. If you haven’t used MediatR before, or if you’re looking for a quick intro on how to set it up for ASP.NET Core, keep reading (if not, how did you get here? Was the title not clear?). 

استفاده از کتابخانه MediatR برای پیاده سازی DomainEventها در پروژه های ASP.NET Core