اشتراک‌ها
NET Conf. سال 2018

See what's new with .NET Core, ASP.NET Core, Xamarin, C#, Azure, AI/ML and where we're taking .NET into the future!  

NET Conf. سال 2018
نظرات مطالب
سفارشی سازی ASP.NET Core Identity - قسمت دوم - سرویس‌های پایه
خیر؛ نمی‌توان. ASP.NET Core Identity برای این نوع کارها (تامین هویت چندین برنامه‌ی مجزا) طراحی نشده و هدفش فقط و فقط پوشش یک تک برنامه‌است. اطلاعات بیشتر: «نیاز به تامین کننده‌ی هویت مرکزی» 
نظرات مطالب
سفارشی سازی ASP.NET Core Identity - قسمت پنجم - سیاست‌های دسترسی پویا
ASP.NET Core Identity فقط برای مدیریت یک برنامه‌ی وب طراحی شده. اگر بیشتر از یک برنامه‌ی وب دارید، نیاز به راه حل مخصوص آن‌را که «تامین کننده‌ی هویت مرکزی» یا «IDP» نام دارد، خواهید داشت: «امن سازی برنامه‌های ASP.NET Core توسط IdentityServer 4x»  
اشتراک‌ها
ویژگی Image Tag Helper در MVC 6.0
<img src="~/images/logo.png" 
     alt="company logo" 
     asp-file-version="true" />


 which will generate something like this:
<img src="/images/logo.png?v=W2F5D366_nQ2fQqUk3URdgWy2ZekXjHzHJaY5yaiOOk" 
     alt="company logo"/>

The value of the v parameter is calculated based on the contents of the image file. If the contents of the image change, the value of the parameter will change. This forces the browser to download the new version of the file, even if the old version was cached locally. This technique is often called cache busting.
ویژگی Image Tag Helper در MVC 6.0
اشتراک‌ها
SqlClientExtensions؛ استفاده ساده‌تر از ADO.NET به همراه تزریق وابستگی‌ها

This package helps set up SqlClient in applications using dependency injection, notably ASP.NET and Worker Service applications. It allows easy configuration of your database connections and registers the appropriate services in your DI container. It also enables you to log events from Microsoft.Data.SqlClient using standard .NET logging (ILogger). 

SqlClientExtensions؛ استفاده ساده‌تر از ADO.NET به همراه تزریق وابستگی‌ها
اشتراک‌ها
gRPC + ASP.NET Core به عنوان جایگزینی برای WCF در NET Core.

gRPC + ASP.NET Core as a Migration Path for WCFs in .NET Core 

Feature WCF ASP.Net Core + gRPC
Platforms Windows Windows, Linux, MacOS
Protocols LRPC/Named Pipes/HTTP/TCP/MSMQ Binary (GRPC) + HTTP2

(TCP/Named Pipes/LRPC)

.AddProtocol(“ncacn_ip_tcp”, “8080”)

.AddProtocol(“ncacn_np”, @”\pipe\MyService”)

.AddProtocol(“ncalrpc”, “MyService”)

By removing the ASP.NET Core stack and just using .NET Core

Injected Aspects Behaviors ASP.NET Core DI Middleware/ gRPC interceptors
Distributed Transactions *Yes – [TransactionFlow], transactionscopes, and supported bindings *No
Transport Security SSL/TLS SSL/TLS
Message Security Certificates/credentials Certificates/credentials

https://docs.microsoft.com/en-us/aspnet/core/grpc/authn-and-authz?view=aspnetcore-3.0

Windows Authentication Kerberos/NTLM AAD Sync/ASFS + ASP.NET Core middleware
Proxies/Contracts Service Contracts/Data Contracts Protocol Buffers
Proxy-less Communication WCF Channel Factory † Protobuf-Net.GRPC
gRPC + ASP.NET Core به عنوان جایگزینی برای WCF در NET Core.
نظرات اشتراک‌ها
غروب StructureMap
- StructureMap برای دوره‌ی پیش از NET Core. طراحی شده‌است. کل این دوره به زودی کنار گذاشته می‌شود (و در حال حاضر در مرحله‌ی نگهداری به سر می‌برد و نه توسعه‌ی فعال؛ هرچند این نوع تغییرات بنیادین، در ابتدا با نفی و ناباوری همراه هستند، اما پس از مدتی چاره‌ای بجز وفق یافتن نخواهید داشت).
- ASP.NET Core و در اصل NET Core.، به همراه یک سیستم تزریق وابستگی‌های توکار و یکپارچه هست که امکانات آن برای اکثر پروژه‌ها کافی است؛ سورس باز است و همچنین توسط مایکروسافت توسعه داده شده و نگهداری می‌شود. به همین جهت این روند بازنشستگی IoC Containers ثالث، در مورد سایر کتابخانه‌های مشابه هم به زودی اتفاق خواهد افتاد.
اشتراک‌ها
روش فعالسازی قالب‌های NET 5. در Visual Studio 2019

You may have noticed it already, but when you create a console application with Visual Studio 2019, the default runtime is not .NET 5 but .NET Core 3.1! Why ? Because .NET 5 is not LTS and therefore Microsoft has intentionally chosen to offer the latest LTS version of .NET by default, ie .NET Core 3.1. 

روش فعالسازی قالب‌های NET 5. در Visual Studio 2019