Using Azure AD with ASP.NET Core

Azure Active Directory is cloud-based directory service that allows users to use their personal or corporate accounts to log-in to different applications. Local Active Directory can sync data to its cloud counterpart. Also external users are supported. This blog post shows how to make ASP.NET Core application use Azure AD and how to read data that Azure AD provides about user account.

C# 7.0: Out variables

C# 7.0 brings some features to out variables. These new features help us write cleaner code and handle out variables better. This blog post provides samples of these new features in C# 7.0 and as a surprise it also demonstrates what compiler is doing with these new features.

Real-time chart using ASP.NET Core and WebSocket

Using WebSocket support in ASP.NET Core we can easily write real-time data visualization solutions. What if we mix together ASP.NET Core, WebSocket, Knockout and 3D charts? The answer is – nice real-time chart that visualizes sensor readings. This blog post introduces simple real-time chart and IoT device simulator that help to get started with real-time data visualization.

Getting started with Azure Functions

Azure Functions is serverless computing offer by Microsoft. Functions by Microsoft implementation are scripts that can be written in JavaScript, C#, F#, Python, PHP, Bash, Batch or PowerShell. Functions can be developed on Visual Studio using preview level tools or directly through browser in Azure portal. This blog post introduces Azure Functions and shows how to build your first function.

ASP.NET Core: Building chat room using WebSocket

WebSocket is real-time communication protocol we can use to make UI in browser to send and receive messages from server over real-time communication channel. WebSocket is also supported by ASP.NET Core. This blog post demonstrates how to build simple browser based chat room on ASP.NET Core and WebSocket.

Short introduction to serverless architecture

Serverless architecture and Functions as a Service (FaaS) are new trends in cloud computing. Besides Microsoft and Amazon there are many other vendors providing FaaS services. This blog post is short introduction to serverless architecture and here I try to explain what it is and why we need it.

ASP.NET Core: Implementing Syslog logger

My previous blog post Windows IoT Core: Logging to Syslog server introduced how to communicate with Syslog server from Windows 10 IoT Core applications. This blog post shows how to log messages to Syslog server from ASP.NET Core applications.

Windows IoT Core: Logging to Syslog server

Syslog servers are most popular in Linux world. These servers accept logs from different clients and are not opened to external network. There are also Syslog servers available for Windows. This blog post shows how to write messages to Syslog server from WIndows 10 IoT Core background application.

ASP.NET Core: Environment based start-up classes

My previous blog post ASP.NET Core: Environment based configuring methods introduced how to use environment based configuring methods of application start-up class. This blog post goes further and introduces environment based start-up classes that can be used by applications that have more complex needs on configuration based on environment.

ASP.NET Core: Environment based configuring methods

Fancy thing that ASP.NET Core supports is environment based application configuring on code level. We can write special methods to application start-up class and use default ones as fallbacks. This blog post shows how to write environment based configuring methods on ASP.NET Core.

ASP.NET Core: Simple localization and language based URL-s

ASP.NET Core comes with new support for localization and globalization. I had to work with one specific prototyping scenario at work and as I was able to solve some problems that also other people may face I decided to share my knowledge and experience with my readers. This blog post is short overview of simple localization that uses some interesting tweaks and framework level dependency injection.

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.

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.

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.

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.

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.

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 file logging using framework-level dependency injection.

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 IEnumerable and IQueryable interfaces. There’s also method that maps entities to models.

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 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.

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. Works on Windows, Linux and Apple.

Previous Posts

Theme created by thememotive.com. Powered by WordPress.org.