.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Introducing the ASP.Net Async SessionState Module

SessionStateModule is ASP.NET's default session-state handler which retrieves session data and writes it to the session-state store. It already operates asynchronously when acquiring the request state, but it doesn’t support async read/write to the session-state store. In the .NET Framework 4.6.2 release, we introduced a new interface named ...

Implementing Seeding, Custom Conventions and Interceptors in EF Core 1.0

This post was written by Alina Popa, a software engineer on the .NET team. Updated 10/5/2016: This post has been updated to use improved Entity Framework Core techniques which don’t rely on internal APIs. Implementing Seeding, Custom Conventions and Interceptors in EF Core 1.0 Introduction Entity Framework Core (EF Core) is a ...
Comments are closed.0.NET

The week in .NET: On .NET on Orchard 2 – Mocking on Core – StoryTeller – Armello

To read last week's post, see The week in .NET: On .NET with Steeltoe – C# Functional Extensions – Firewatch. On .NET Last week, Sébastien Ros was on the show to talk about Orchard 2: This week, we'll speak with JB Evain about his work on the Visual Studio 2015 Tools for Unity, and maybe also Cecil. The show begins at 12PM Pacific ...
Comments are closed.0.NET

Introducing .NET Standard

Questions? Check out the .NET Standard FAQ. You can find the latest version of the compatibility matrix here. In my last post, I talked about how we want to make porting to .NET Core easier. In this post, I'll focus on how we're making this plan a reality with .NET Standard. We'll cover which APIs we plan to include, how cross-framework ...
Comments are closed.0.NET

Secure ASP.NET ViewState

During an appearance on the .NET Rocks podcast last week, a question was raised about securely sending information through ASP.NET ViewState.  I responded to the question by indicating that the typical security concern for web content is not to trust any content submitted from the web, including ViewState.  After that podcast was published, ...

Reusing Configuration Files in ASP.NET Core

Introduction The release of ASP.NET Core 1.0 has enticed existing ASP.NET customers to migrate their projects to this new platform. While working with a customer to move their assets to ASP.NET Core, we encountered an obstacle. Our customer had a many configuration files (*.config) they used regularly. They had hundreds of configuration files...
Comments are closed.0.NET

Announcing the DotNetCompilerPlatform 1.0.2 release

Update Microsoft.CodeDom.Providers.DotNetCompilerPlatform is now open sourced on GitHub. If you have any suggestion or issue, please go to this link and post your thought there.   Today I'm pleased to announce that the Microsoft.CodeDom.Providers.DotNetCompilerPlatform 1.0.2 package is released on NuGet. It enables ASP.NET to support...

The week in .NET: On .NET with Steeltoe – C# Functional Extensions – Firewatch

To read last week's post, see The week in .NET: .NET Core 1.0.1 – On .NET with Peachpie – Avalonia – Folk Tale. On .NET Last week, we had David Morhovich and Zach Brown on the show to talk about Steeltoe: This week, we'll speak with Sébastien Ros about Orchard 2, the new version of the .NET CMS that can run on .NET Core. The show ...
Comments are closed.0.NET

GLAD is available

GC ETW series - GC ETW Events - Part 1 GC ETW Events - Part 2 GC ETW Events - Part 3 GC ETW Events - Part 4 Processing GC ETW Events Programmatically with the GLAD Library (this post) End of last year I mentioned we wanted to provide an API for you to really investigate GC/managed memory related performance called GLAD. Well, the ...

Custom ASP.NET Core Middleware Example

One of the great things about ASP.NET Core is its extensibility. The behavior of an ASP.NET Core app's HTTP request handling pipeline can be easily customized by specifying different middleware components. This allows developers to plug in request handlers like MVC middleware, static file providers, authentication, error pages, or even their ...