14 12 2016
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 logger that uses main one to log all the messages and secondary one when main logger fails. Implementation is easy but there’s a good chance that log messages doesn’t get completely lost when main logging service goes down.
8 12 2016
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. Works on Windows, Linux and Apple.
7 12 2016
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.
30 11 2016
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.
28 11 2016
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.
23 11 2016
Although ASP.NET Core has built-in dependency injection and inversion of control support it is still possible to use DI 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.
16 11 2016
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.
15 11 2016
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.
9 11 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.
7 11 2016
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.
2 11 2016
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.
26 10 2016
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.
16 08 2016
This blog post is about how to really precompile ASP.NET MVC views. It destroys the myth about MvcBuildViews as precompilation tool and shows you how to configure precompiling. It also stops on some internals of precompiling and explains what are the options and limitations with it. There is also real-life example for Azure where precompiling of views may avoid some serious headaches that one may face otherwise.
27 07 2016
I have one big OneNote notebook that I need also on my Windows Phone. While this notebook was not very big synchronization worked well on both WP8 and WP10. But after growing over 120MB both phones had suddenly synchronization issues. Notebook was usually synchronized partially with many pages missing from WP and some changes to existing pages were never synchronized to phone. This blog post provides one not so nice solution for these problems.
25 07 2016
This year again I have honour to speak at TechDays 2016 Netherlands. It is well organized event with very good and interesting content. I was speaking there year ago and I had only good experiences with this event. This year it is held in RAI Center at Amsterdam in the beginning of October – 04-05.10.2016. This blog post tells why it is important to visit this event and why it is important to come to my Azure deep-dive session.
20 07 2016
On ASP.NET Core view components support dependency injection. We can use some DI/IoC container but we can also go with framework level dependency injection. This blog post explains how dependency injection works with view components and as an example I show you some code I’m using to build top menu for my demo site.
19 07 2016
Whenever we deal with data we need some mechanism for paging it. It makes it easier for users to navigate through data and same time we don’t put too much load to our systems. This blog post shows you how to build pager for your MVC site using ViewComponent and PagedResult class.
17 07 2016
Search is important feature of many apps and web sites because it is the main way for users to find quickly the information they are looking for. Typing search keywords to search box is not the end point of search we can provide to users. Sites that have huge amount of data can also help users to find out what keywords to use. In this post I will show how to use Azure Search suggesters to help users to find out these keywords.
16 07 2016
In my last blog post about REST-clients Why Azure REST API-s and how to prepare for using them? I introduced how to write simple base class for Azure REST API-s. In this post we will implement simple REST-client for Azure Search. This is the same code that I’m using in my beer store sample application. I also make some notes about how to use search clients in domain models.
16 06 2016
Universal Windows Platform is almost new kid on the street and it’s time for developers to find out what it is, how it works and why to bother. In this post I make short introduction to UWP for developers. I also share some of my thoughts about platform and point out some useful resources that help you to get started.