.Net Core

C#: From Event-based Asynchronous Pattern to Task-based Asynchronous Pattern

Posted on
cs-async-logo

Task-based Asynchronous Pattern (TAP) was introduced in .NET Framework 4 and since then, it is the recommended approach to asynchronous programming in .NET.

Event-based Asynchronous Pattern (EAP) is still in use, especially at legacy systems, but for new development is not recommended anymore.

In this post I will show how to wrap EAP into TAP and use more modern approach.

Development

Windows Subsystem for Linux

Posted on

The Windows Subsystem for Linux (WSL) enables developers to run a Linux system directly on Windows. This is done without the overhead of a traditional virtual machines. WSL is primarily intended for developers. This allows developers to use Bash, common Linux tools and many Linux-first tools and frameworks (Ruby, Python, etc.) on Windows. In this […]

.Net Core

App Center and WPF.

Posted on

First, official introduction: Visual Studio App Center brings together multiple services commonly used by mobile developers into an integrated cloud solution. Developers use App Center to Build, Test, and Distribute applications. Once the app’s deployed, developers monitor the status and usage of the app using the Analytics and Diagnostics services, and engage with users using […]

.Net Core

C# locks and async Tasks.

Posted on

C# lock is mechanism to prevent concurrent access to “restricted” resource in multi-threaded environment. In multi-threaded applications locks are used to ensure that the current thread executes a block of code to completion without interruption by other threads. The lock statement obtains a mutual exclusion lock for a given object so that one thread executes […]

Bluetooth

Bluetooth GATT Xamarin.Forms client.

Posted on

If you read my previous blog post how to create Bluetooth GATT server on top of UWP, then you should be familiar with basics of Bluetooth. In this post I will extend on other side of the “wire” of the Bluetooth communication. I will do this with Xamarin.Forms. In this post I will create simple […]

Bluetooth

Bluetooth GATT server.

Posted on

Developing applications which use Bluetooth can be tricky. Commonly, on one side of the communication you have some hardware or maybe some IoT device, while on other, there is some mobile app or similar. When doing geenfield projects, normally you don’t have everything in place on the device side, but you need to develop Bluetooth […]