Quantcast
Channel: c# – .NET Liberty
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

ASP.NET 5 MVC6 Dependency Injection in 6 Steps

The problem Suppose our Controller needed a FooService so that it could fetch a Foo to render to the user:public class FooController { public IActionResult Index() { var fooService = new FooService(new...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET 5 MVC6 Configuration in 9 Steps

Configuration in ASP.NET 5 Prior to ASP.NET 5 we typically configured our ASP.NET applications using XML files like web.config. With ASP.NET 5 configuration is done through a brand new configuration...

View Article


Image may be NSFW.
Clik here to view.

Unit Testing MVC6 and EntityFramework 7 with xUnit

Unit testing along with Test Driven Development (TDD) have become increasingly common in recent years throughout the software development community, and MVC is no exception to this trend. With MVC a...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET 5 Running in Docker on Windows

Microsoft took the .NET community by surprise when they announced that the upcoming version of .NET will be open source and ASP.NET will run on Windows, Linux, and Mac. This is a huge first step...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET 5 Logging Framework

In my experience building web services I have found that having rich logging to be one of the most important tools for tracking down issues. Logging allows us to record interesting events and capture...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET 5 Startup Using Template Design Pattern

In my previous post on ASP.NET 5 startup logic, we talked about how we could execute different startup logic based on the environment our application is running in. For example, if we are running in...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET 5 Dependency Injection for Testing

ASP.NET 5 comes with a great new feature called dependency injection (DI) that allows us to create services or dependencies that can be injected into our application components like Controllers or...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET 5 on AWS EC2 using Docker Hub Private Repository

In my previous post on running ASP.NET 5 apps on AWS EC2 Container Service we saw just how straightforward it was to get a simple ASP.NET 5 application up and running on AWS ECS with minimal setup or...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET 5 Web API: Faking It While Making It

I’ve started working on a personal project that is built fully on ASP.NET 5 using .NET Core (not the full .NET framework). One of the pieces that I’m currently tackling is building up a Web API...

View Article


Image may be NSFW.
Clik here to view.

Typed Extensions for HttpClient on .NET Core

While working on recent project, I found the need to interact with an ASP.NET 5 Web API from another ASP.NET 5 web application. In addition to invoking my Web API from my other web application, I’d...

View Article
Browsing latest articles
Browse All 10 View Live