C# – Asynchronous Programming

By | 26/05/2021

In this post, we will see how to manage Asynchronous Programming in C#.Asynchronous programming is a means of parallel programming in which a unit of work runs separately from the main application thread and notifies the calling thread of its completion, failure or progress.Obviously, there would be many things to see and understand in Asynchronous… Read More »

Category: C#

React – Router

By | 19/05/2021

In this post, we will see how to manage the Routing in React.In a nutshell, we will see how it is possible to move between different parts of an application. First of all, we create a React project called “test router” (using the command npx Create-react-app testrouter) and we modify the file App.cs: [APP.CS] Then,… Read More »

Web API – Json Server

By | 12/05/2021

In this post, we will see how to create a full fake Rest API for testing, using a Javascript library called Json-Server.Here, it is possible to find the project. HOW TO INSTALLFirst of all, we have to install node.js in our system, because Json Server is available as a NPM package.Then, using the command npm… Read More »

Web API – Simple Versioning

By | 05/05/2021

In this post, we will see how to create a simple versioning of a Web API method, using the Routing attribute.However, before starting, I want to remember that the best way for versioning a method it was describe here: Web API – Versioning We create a Web API project called TestAPI and we add a… Read More »

Azure – Topic with Service Bus

By | 28/04/2021

In this post, we will see how to create and read Topics, using Azure Service Bus.Topics and subscriptions provide a one-to-many form of communication in a publish and subscribe pattern. It’s useful for scaling to large numbers of recipients.For more information, go to the Microsoft Web Site. First of all, we go to Azure Portal and we… Read More »

TypeScript – Generics and Modules

By | 21/04/2021

In this post, we will see how to use Generics and Modules in TypeScript. GENERICS If we run the script, this will be the result: Now, using Generics, we will optimise the code: If we run the script, this will be the result: MODULES In TypeScript, a module is a file containing values, functions, or… Read More »

TypeScript – Variables, Array and Methods

By | 07/04/2021

In this post, we will see what TypeScript is and how to configure our system, in order to use it for developing application.From Wikipedia:“TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript.As TypeScript is a superset of… Read More »

Design Patterns – Command

By | 31/03/2021

From https://en.wikipedia.org/wiki/Command_pattern:“In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.”In a nutshell, we can use the Command Pattern to encapsulate… Read More »