C#

Moving from Event-based asynchronous pattern (EAP) to Task-based asynchronous pattern (TAP) with cancellation

Posted on
cs-async-logo

What’s the point of this blog post? In modern C#/.NET ecosystem there is encouragement to use async/await Task based asynchronous model over other asynchronous patterns and approaches. On the other side, there are still a lot of libraries (legacy, wrappers from other technologies/languages which uses events for callback calls, etc…) which use older EAP approach […]

Android

Bluetooth Low Energy UART Service with Xamarin Forms

Posted on
uart-ble-xamairn-forms-logo

A little bit of background. Bluetooth is a wireless technology standard used for exchanging data between fixed and mobile devices over short distances using short-wavelength UHF radio waves in the industrial, scientific and medical radio bands, from 2.402 GHz to 2.480 GHz, and building personal area networks. It was originally conceived as a wireless alternative to […]

Development

Using NLog in Xamarin Forms applications

Posted on

Every application need some kind of logging or monitoring system. Monitoring can be used for tracing errors and exceptions, for analyzing of app usage, for finding hard-to-trace bugs in “production environment”, for storing some other runtime data interested for later analysis, and similar. In general and very commonly, .NET desktop apps use some kind of […]

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

.Net Core

Simple Settings service example in C#.

Posted on

In .NET world storing data into xml configuration files is very common scenario. While, web apps (Asp.Net) use web.config, desktops use app.config (renamed to <FullExecutableFilename>.exe.config at runtime). Every application sooner or later needs to collect, persist and restore some data (settings) from (to) end user. While web apps store these information almost always into database, […]

.Net Core

Experimenting with gRPC in .NET Core.

Posted on

Modern applications are distributed, loose-coupled and service oriented. Decoupled systems perform and scale better, maintenance is far easier (by reducing complexity into smaller more maintainable parts). Communication system that glue together these decoupled parts is important part of the system. Windows Communication Foundation (WCF) has always been de-facto framework for communication between decoupled systems/processes in […]