اشتراک‌ها
نگاهی به نوع‌های جدید DateOnly و TimeOnly در NET 6.

In .NET 6 (preview 4), two long-awaited types have been introduced as part of the core library. DateOnly and TimeOnly allow developers to represent either the date or time portion of a DateTime. These two new types are structs (value types) and may be used when your code deals with date or time concepts independently. Both types can be found in the System namespace. Using these new types may align well with how databases allow similar data to be represented. Specifically, these types align well with the SQL Server date and time data types. 

نگاهی به نوع‌های جدید DateOnly و TimeOnly در NET 6.
اشتراک‌ها
Visual Studio 2019 version 16.2.1 منتشر شد
نظرات مطالب
تزریق وابستگی‌ها در ASP.NET Core - بخش 4 - طول حیات سرویس ها یا Service Lifetime

در متن آمده که  EF Core  به صورت پیش فرض ،  Db Context  را به صورت  Scoped  ثبت می‌کند. و نحوه تزریق از طریق سازنده کلاس‌ها است. از طرفی اگر درست متوجه شده باشم در مستندات ماکروسافت هشدار داده شده که این مدل طول حیات را نباید از طریق سازنده تزریق کرد.


When using a scoped service in a middleware, inject the service into the Invoke or InvokeAsync method. Don't inject via constructor injection because it forces the service to behave like a singleton. For more information, see Write custom ASP.NET Core middleware. 


همچنین شما گفتید که "سرویس‌های Scoped  در محدوده‌ی درخواست، مانند  Singleton عمل می‌کنند و شیء ساخته شده و وضعیت آن در  بین تمامی سرویس‌هایی  که به آن نیاز دارند، مشترک است. بنابراین باید به این نکته در هنگام تعریف سرویس به صورت  Scoped ، توجه داشته باشید."


در پروژه‌ای که روی آن کار میکنم (ASP.NET Core Razor Pages) یک کلاس validation هست که میخوام به عنوان یک سرویس به کلاس هر صفحه تزریق بشه. اگر امکانش هست توضیح بدید که بر اساس مواردی که در بالا آوردم و هدفی که دارم آیا بین حالات singleton و scoped فرقی وجود دارد؟

ممنون.

اشتراک‌ها
AspNetCore.SignalR 1.0.0-alpha1-final منتشر شد

Today we are glad to announce an alpha release of SignalR for ASP.NET Core 2.0. This is the first official release of a new SignalR that is compatible with ASP.NET Core. It consists of a server component, a .NET client targeting .NET Standard 2.0 and a JavaScript/TypeScript client. 

AspNetCore.SignalR 1.0.0-alpha1-final منتشر شد
اشتراک‌ها
سری Redis برای برنامه نویس‌های دات نت

Redis (REmote DIctionay Server) is a very popular open-source, networked, in-memory, key-value data store, sometimes referred to as a data structure server which also comes with optional durability. Redis is well known for high performance, flexibility, provides a rich set of data structures, and a simple straightforward API.  

سری Redis برای برنامه نویس‌های دات نت
نظرات اشتراک‌ها
ویدیو های EmberConf 2015
EmberConf 2015
- Opening Keynote
https://www.youtube.com/watch?v=o12-90Dm-Qs
- EMBER.JS PERFORMANCE
https://www.youtube.com/watch?v=iTZxo6bSx44
- DESIGNING FOR EMBER APPS
https://www.youtube.com/watch?v=ijiNbF2Wu0E
- HIJACKING HACKER NEWS WITH EMBER.JS
https://www.youtube.com/watch?v=PXB93Z8azZE
- THE ART OF EMBER DEPLOYMENT
https://www.youtube.com/watch?v=4EDetv_Rw5U
- AMBITIOUS UX FOR AMBITIOUS APPS
https://www.youtube.com/watch?v=TlU0m18Pr-Y
- BRING SANITY TO FRONTEND INFRASTRUCTURE WITH EMBER
https://www.youtube.com/watch?v=iwPsNTkyCcA
- DYNAMIC GRAPHIC COMPOSITION IN EMBER
https://www.youtube.com/watch?v=J-LpgGqyxcI
- TEST-DRIVEN DEVELOPMENT BY EXAMPLE
https://www.youtube.com/watch?v=2b1vcg_XSR8
- ALIGNING EMBER WITH WEB STANDARDS
https://www.youtube.com/watch?v=knYeLk1EuHw
- GROWING EMBER ONE TOMSTER AT A TIME
https://www.youtube.com/watch?v=xsG0gDkvDPw
- INTERACTION DESIGN WITH EMBER 2.0 AND POLYMER
https://www.youtube.com/watch?v=Z8NDAiOZ8SE
- BUILDING CUSTOM APPS WITH EMBER CLI
https://www.youtube.com/watch?v=J6vPwvFdUiE
- BUILDING REAL-TIME APPLICATIONS WITH EMBER
https://www.youtube.com/watch?v=nfGORL8ebn8
- PHYSICAL DESIGN
https://www.youtube.com/watch?v=p8aF-7-_cE8
- CLOSING KEYNOTE
https://www.youtube.com/watch?v=qWcNZ3j3y6g
- MINITALKS
https://www.youtube.com/watch?v=K4fyHxg3Ldk
- FAULT TOLERANT UX
https://www.youtube.com/watch?v=s2awUFvA-0I

اشتراک‌ها
معرفی Application Pool در IIS

Application Pools in IIS can be somewhat of a mystery. Since they’re created for you automatically many times Administrators don’t give them a second thought. But understanding application pools is crucial to having a good running IIS server. 

معرفی Application Pool در IIS
اشتراک‌ها
ویدیوهای NET Conf 2022.
NET Conf is our annual virtual developer event co-organized by the .NET community and Microsoft and sponsored by the .NET Foundation and ecosystem partners. It is a chance to learn and get inspired for your next software project. You will learn to build for web, mobile, cloud, desktop, games, services, libraries and more for a variety of platforms and devices all with .NET. We have sessions for everyone, no matter if you are just beginning or are a seasoned engineer. We’ll have presentations on .NET 7, C# 11, Azure, Visual Studio, and much more. 
ویدیوهای NET Conf 2022.