Teemablogi sissekanded

20.04.2017

Introduction to Microsoft To-Do

Microsoft launched yesterday a new cloud service called Microsoft To-Do. The aim of new service is to provide users with simple and familiar looking tool to plan a day. The new service comes with nice looking web interface and there are also apps available for most popular platforms, including Windows and Windows Phone. NB! Microsoft To-Do works currently only with Microsoft Account. 08:20 20.04.2017 kanalilt DT blogi 2

19.04.2017

Using Entity Framework Core in-memory database for unit testing

ASP. NET Core applications can be tested with different testing frameworks and Entity Framework Core makes testing specially easy by removing different technical problems from our way by using in-memory data provider. This blog posts shows how to unit test controllers that use data from Entity Framework Core. NB! The code and tests given here are really minimal and illustrative. 10:01 19.04.2017 kanalilt DT blogi 2

18.04.2017

Using memory cache in ASP.NET Core

ASP. NET Core has memory based caching similar to what we had in previous ASP. NET versions. This blog post shows how to use memory cache alone and with support for distributed cache in ASP. NET Core web applications. Using memory cache Using memory cache starts with adding caching support to services when application starts up. public void ConfigureServices(IServiceCollection services){ services. 11:12 18.04.2017 kanalilt DT blogi 2

17.04.2017

Triggering Azure Functions from Office 365 SharePoint using Microsoft Flow

We cannot use classic SharePoint workflows on Office 365 but using Microsoft Flow we can create new era flow applications that are triggered by events that happen in different sources. This blog post shows how to use Microsoft Flow and Azure Functions to send out e-mail when new meeting is added to SharePoint list. The idea of this blog post is to illustrate how to create the flow where custom code takes over in some point. 09:20 17.04.2017 kanalilt DT blogi 2

07.04.2017

ASP.NET Core: SQL Server based distributed cache

ASP. NET Core supports also distributed cache solutions. Out-of-box there is support for SQL Server and Redis based distributed caches. This blog post focuses to SQL Server based cache we can use when there are really no better options. We don’t need distributed cache with solutions running on one box. 09:30 07.04.2017 kanalilt DT blogi 2

05.04.2017

C# 7.0: Throw expressions

C# 7. 0 introduces throw expressions. We can add exception throwing to expression-bodied members, null-coalescing expressions and conditional expressions. This blog post introduces throw expressions, demonstrates how to use them and also provides a peek behind a compiled throw expressions. Throw expressions are the way to tell compiler to throw exception under specific conditions like in expression bodied members or inline comparisons. 09:20 05.04.2017 kanalilt DT blogi 2

04.04.2017

C# 7.0: Tuple literals

C# 7. 0 brings some new features to tuples and with code editors that support these new features we can use tuples with named members instead of names like Item1…ItemN. This blog post goes through practical example that demonstrates how to move on classic method that returns multiple values to new tuples. I take example from practice and modify it a little bit. 09:20 04.04.2017 kanalilt DT blogi 2

03.04.2017

HTTP-triggered Azure Functions

Azure Functions supports functions that are invoked by HTTP request. It makes it easy to have some scripted functionalities on cloud that we can invoke by simple HTTP request. This blog post shows how to build and run HTTP-triggered Azure Functions using Visual Studio. 09:20 03.04.2017 kanalilt DT blogi 2

29.03.2017

Solving bower and bundling errors in imported ASP.

For some ASP. NET Core projects errors related to bower and bundling may appear after project is moved to csproj file from previous project. json format. This blog post introduces how I got these errors solved for imported project. 09:57 29.03.2017 kanalilt DT blogi 2

24.03.2017

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. 10:20 24.03.2017 kanalilt DT blogi 2

23.03.2017

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. Inline out variables Let’s start with piece of code that demonstrates how TryParse() and some TrySomethingElse() methods work. var intString = "1111";int i = 0; if(int. 10:30 23.03.2017 kanalilt DT blogi 2

22.03.2017

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. 10:30 22.03.2017 kanalilt DT blogi 2

21.03.2017

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. Functions are run by trigger events. 10:30 21.03.2017 kanalilt DT blogi 2

20.03.2017

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. Our chat room has two views: one for inserting nick name and the other one for chat room. 10:20 20.03.2017 kanalilt DT blogi 2

17.03.2017

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. Evolution of cloud During its evolution cloud has had multiple forms and abstraction levels. 10:30 17.03.2017 kanalilt DT blogi 2

16.03.2017

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. Syslog server is popular logs server from Linux world. It is usually separate box or virtual machine that accepts log messages but it is not accessible by external users. 10:20 16.03.2017 kanalilt DT blogi 2

15.03.2017

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. Syslog server Syslog server is logging server. 10:40 15.03.2017 kanalilt DT blogi 2

14.03.2017

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. 10:30 14.03.2017 kanalilt DT blogi 2

13.03.2017

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. Default configuring methods of start-up class When we create new ASP. NET Core application then Startup class looks like this. 10:20 13.03.2017 kanalilt DT blogi 2

10.03.2017

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. 09:28 10.03.2017 kanalilt DT blogi 2