Code Maze Author

Code Maze

This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.
Also find me here:



MY ARTICLES:

Download Files with ASP.NET Core Web API and Angular

After successfully learning how to upload files, the logical next step is to learn how to download them as well. That way we can have the complete picture and can apply what we’ve learned in various projects and working with different types of files. [sc...

How to Send an SMS with ASP.NET Core

In this article, we are going to cover how to send an SMS with ASP.NET Core. To accomplish this, we are going to use Twilio as our SMS service to send an SMS message and automate a response when an SMS message is received. To download the source...

How to Publish Angular with ASP.NET Core

In this article, we are going to cover how to develop and publish Angular with an ASP.NET Core backend. Single-Page Application (SPA) frameworks like Angular can be configured with ASP.NET Core to facilitate the development and publishing process. This is particularly...

MediatR and CQRS in ASP.NET Core: Complete Guide

MediatR is a small .NET library that routes a request object to exactly one handler class, which is what makes it the usual way to implement CQRS in ASP.NET Core: commands and queries become separate request types with separate handlers, and controllers stop knowing...

Introduction to gRPC in ASP.NET Core With MongoDB

In this article, we’re going to cover how to set up an ASP.NET Core gRPC service with MongoDB as our database. MongoDB is an increasingly popular database and is often integrated with a gRPC service. Integration with MongoDB has been covered in a previous article so...

IncludeMembers and Custom Projections with AutoMapper in ASP.NET Core

Following the first article on AutoMapper in ASP.NET Core, this one represents an extension to the mapping of complex objects, describing some additional features that can save us a lot of work. The tools which will help us achieve the desired goal are custom...

SignalR withAutomaticReconnect: Automatic Reconnect Options

A SignalR client does not reconnect on its own. Calling withAutomaticReconnect() on HubConnectionBuilder opts the connection in, and the client then retries after 0, 2, 10 and 30 seconds before giving up. Those four attempts are the whole default. Pass an array of...

SignalR: Send a Message to a Specific Client in ASP.NET Core

To send a SignalR message to one client, call Clients.Client(connectionId).SendAsync("methodName", data) from inside the hub. The connection id comes from Context.ConnectionId, which SignalR assigns when the client connects. That works for a single connection. For...

Using Refresh Tokens in ASP.NET Core Authentication

In this article, we are going to learn about refresh tokens and their use in modern web application development. This is part of the ASP.NET Core Authentication with JWT and Angular series. [sc name="patreon-source-code"...

Getting Started with ASP.NET Core and MongoDB

In this article, we’re going to cover how to set up an ASP.NET Core Web API with MongoDB as our database. MongoDB is an increasingly popular database and an excellent option for small and large-scale applications. MongoDB is also a convenient database option for...

Multiple Environments in ASP.NET Core

In this article, we’re going to cover how to set up and manage multiple environments in ASP.NET Core. If we expect our project to become large and complex, it is a good idea for us to separate our environments. For example, we don’t want to develop software on the...

OWASP Top 10 – Sensitive Data Exposure

Sensitive data exposure occurs when an application accidentally exposes sensitive data. This differs from a data breach, in which an attacker accesses and steals information. Sensitive data exposure usually occurs when we fail to adequately protect the information in...

C# Design Patterns – Facade

In this article, we are about to cover another design pattern in C#, this time a structural one. That pattern is the Facade Pattern. The source code is available at the Facade Design Pattern GitHub Repository. For the complete list of articles from this series check...

OWASP Top 10 – Broken Authentication

Broken Authentication is the second most critical vulnerability as per OWASP Top 10 list. Using this vulnerability, an attacker can gain control over user accounts in a system. In the worst case, it could help them gain complete control over the system.  In this...

OWASP Top 10 – Injection

The injection attack is the most critical web application security threat as per OWASP Top 10 list. In this article, we are going to look at the Injection attack in detail. To download the source code for this article, visit the OWASP - Injection GitHub Repo. To see...

System Testing a REST API using C# and DalSoft Rest Client

In this post, we're going to cover the recent extensions to the DalSoft RestClient library which allows you to easily test a REST API using C#. This post is aimed at anyone (devs, testers, etc) who tests REST APIs and is suitable for all levels. If you haven’t written...

Getting Started with AutoMapper in ASP.NET Core

In this article, we are going to learn how to use AutoMapper in an ASP.NET Core application. We are going to start by looking into what AutoMapper is and what problem it solves. Then, we are going to explain how we can use AutoMapper in our MVC application. After...