Teemablogi sissekanded

09.03.2017

ASP.NET Core Response Cache

Where is output cache in ASP. NET Core? Is it gone? No, it’s there but in new and better extensible form and it is called now response caching. This blog post shows how to use response caching on ASP. NET Core and provides tips about some internals of it. In ASP. NET Core caching is solved as middleware service that comes with Microsoft. AspNetCore. ResponseCaching NuGet package. In MVC caching is driven by ResponseCache attribute. 10:30 09.03.2017 kanalilt DT blogi 2

06.03.2017

ASP.NET Core: How log filtering works

Logging infrastructure of ASP. NET Core supports logs filtering that is useful when we need one logging configuration for development environment and the another for live environment by example. This blog post introduces log filtering in ASP. NET Core through simple dummy controller code samples. In ASP. NET Core loggers have names. When we ask for logger we also specify the name for logger. 10:30 06.03.2017 kanalilt DT blogi 2

01.03.2017

Using Windows IoT Remote Client

Want to set up your RaspberryPi with Windows 10 IoT Core and have remote access to device with like remote desktop? Good news is that Windows 10 IoT Core supports something close to it and there is remote access app that works on Windows 10, Windows Phone 10 and even HoloLens. Enabling remote access to Windows 10 IoT Core Remote server support came with one of latest Windows 10 IoT updates and it must be first enabled using web interface. 09:48 01.03.2017 kanalilt DT blogi 2

26.01.2017

Speaking at DevConf.cz 2017 about ASP.NET Core

This Saturday I will be speaker at DevConf. cz 2017 event and I will speak about ASP. NET Core debvelopment on Linux. It’s my first time to speak at some Linux conference and I’m very excited to see how things go there. I’m not complete noobie on Linux but still I cannot consider myself as professional. Still I find Linux to be interesting platform and I’m clad that also Microsoft supports it. Here’s the overview of my presentation. 11:00 26.01.2017 kanalilt DT blogi 2

25.01.2017

Building simple plug-ins system for ASP.NET Core

Recently I built plug-ins support to my TemperatureStation IoT solution web site. The code for . NET Core is different from what we have seen on full . NET Framework (application domains etc) but there’s still nothing complex. This blog post describes how to build simple plug-ins support to ASP. NET Core web application. 10:30 25.01.2017 kanalilt DT blogi 2

19.01.2017

Defensive logging on ASP.NET Core

ASP. NET Core logging framework is intelligent one and it supports also so called defensive logging that helps us to have intelligent logs but still avoid putting additonal load to system when it’s not needed. This blog post is short overview of defensive logging on ASP. NET Core. Defensive logging is supported by ASP. NET Core logging framework. 10:30 19.01.2017 kanalilt DT blogi 2

17.01.2017

File logging on ASP.NET Core

ASP. NET Core introduces new framework level logging system. Although it is feature-rich it is not complex to use and it provides decent abstractions that fit well with the architecture of most web applications. This blog post shows how to set up and use Serilog file logging using framework-level dependency injection. Configuring logging Logging is configured in ConfigureServices() method of Startup class. ASP. 10:25 17.01.2017 kanalilt DT blogi 2

09.01.2017

Paging with Entity Framework Core

Paging query results is timeless topic and some days ago I got question about how to do it with Entity Framework Core. Using my previous work on paging I wrote some simple extension methods that work with IQueryable<T> interface. There’s also method that maps entities to models. Paging classes Let’s start with paging classes. 10:30 09.01.2017 kanalilt DT blogi 2

14.12.2016

Fallback logger for Windows 10 IoT Core

We love to use our favorite logging solutions as much as possible but if external storage or external services are involved we cannot guarantee that logging works in crisis situation. This blog post introduces wrapper or fallback logger that uses main one to log all the messages and secondary one when main logger fails. 10:16 14.12.2016 kanalilt DT blogi 2

08.12.2016

Visual Studio Code: Debugging C# code

One of my reader asked how to debug C# code using Visual Studio Code. This blog post provides simple step by step guide to C# debugging in Visua Studio Code. In short – C# extension for Visual Studio Code must be installed. Works on Windows, Linux and Apple. Open extensions by clicking on last icon of icons pane in left: After installing C# extension Visual Studio Code asks if it can reload window to activate the extension. 10:20 08.12.2016 kanalilt DT blogi 2

07.12.2016

Command-line ASP.NET Core development on Linux

Although command-line is not so popular thing in Windows world it has more love by developers in Linux world. In the light of . NET Core and ASP. NET Core that run also on Linux, developers from Linux world want to know if they can also develop ASP. NET Core applications using simple command-line tools. Here is my overview about how to develop, build and run ASP. NET Core applications on Linux command-line. 10:18 07.12.2016 kanalilt DT blogi 2

30.11.2016

Running Visual Studio Code on Linux

For my up-coming presentation “ASP. NET Core on Linux” I need Linux VM I can access with Remote Desktop to run Visual Studio Code. After hours of different problems that grew fast over my head I was able to make things work and now I have functioning VM I can use for demos. This post is short overview about what I did and it is for those readers who also want to have Linux VM with Visual Studio Code. 10:45 30.11.2016 kanalilt DT blogi 2

28.11.2016

Using ETW tracing on Windows 10 IoT Core

Here is how to make custom event source for ETW (Event Tracing for Windows) work on Windows 10 IoT Core. It’s not so simple as developers of business solutions are used with Microsoft tooling on other areas but it’s not also something too complex or time consuming to do. This blog post introduces simple logging class and steps to make it work on Windows 10 IoT Core. 10:00 28.11.2016 kanalilt DT blogi 2

23.11.2016

ASP.NET Core: Using third-party DI/IoC containers

Although ASP. NET Core has built-in dependency injection support it is still possible to use dependency injection components by other vendors. ASP. NET Core supports other containers through simple IServiceProvider interface. This blog post explains how to use other containers with ASP. NET Core and shows how to use Structuremap and Autofac with framework level dependency injection. Framework level dependency injection ASP. 10:30 23.11.2016 kanalilt DT blogi 2

16.11.2016

TemperatureStation: My Windows 10 IoT Core solution on Github

I published to Github sample temperature measuring solution that runs on Windows 10 IoT Core and that is built on Visual Studio. Source code with basic documentation is available too. This demo project is there to give some starting point to those who are visiting my Brewing Eisbock with Raspberry PI and Windows 10 IoT sessions in different conferences. TemperatureStation solution is here: https://github. com/gpeipman/TemperatureStation This is the first release and therefore it is pretty laconic. 10:38 16.11.2016 kanalilt DT blogi 2

15.11.2016

Running ASP.NET Core applications on IIS

Preparing for CodeCamp Cluj 2016 I needed to host one ASP. NET Core application on IIS web server. I had one simple box with clean IIS available in my network and I installed my ASP. NET Core application on it. This blog post is simple step by step guide showing how to prepare and configure IIS for ASP. NET Core applications. I started with knowledge that when publishing ASP. 07:31 15.11.2016 kanalilt DT blogi 2

09.11.2016

Speaking at CodeCamp Cluj 2016

There will be Romanian CodeCamp event at Cluj on 19. 11. 2016 and I’m invited there with my Windows IoT Core and eisbock brewing presentation. Talking about building real-life solutions is one of my favorite things and for CodeCamp Cluj I have prepared nice presentation that makes attendees think about good things like beer and be more innovative when thinking about things around us that can be automated. 10:27 09.11.2016 kanalilt DT blogi 2

07.11.2016

ASP.NET Core: Using view injection

Besides all other dependency injection forms, ASP. NET Core supports also view injection. Yes, it is possible to inject instances directly to views and there’s no need to update view models to carry information that is already available through dependency injection. This blog post demonstrates how to use view injection. In my last post about ASP. 10:56 07.11.2016 kanalilt DT blogi 2

02.11.2016

Creating minimal ASP.NET Core web application

By its nature ASP. NET Core application is . NET Core command-line application with some web sites stuff that is set up when application starts. Although Visual Studio has ASP. NET Core web site template that comes with simple default web site and start-up class it’s possible to be even more minimal. This blog post introduces the minimal ASP. NET Core web application. Creating ASP. 10:30 02.11.2016 kanalilt DT blogi 2

26.10.2016

Using xUnit with ASP.NET Core

Writing tests for ASP. NET Core applications can be done using xUnit. xUnit works on both. NET Framework and . NET Core. This post shows how to set up and use xUnit with ASP. NET Core applications in Visual Studio and on command-line. Targeting multiple frameworks is also covered. Adding xUnit to solution For automated testing we need a project with reference to our favorite testing framework. For this post it’s xUnit. 17:40 26.10.2016 kanalilt DT blogi 2