Wolverine (.NET) Cheat Sheet

Wolverine is a next-generation .NET mediator and messaging framework that combines:

  1. In-process Mediator (like MediatR)
  2. Message Bus / Publish-Subscribe
  3. Distributed Messaging (with external transports e.g., RabbitMQ, Azure Service Bus)
  4. HTTP Endpoint Handling via WolverineFx.Http (Wolverine’s own endpoint model)
  5. Durability / Outbox / Inbox patterns
  6. Code-generation-based high-performance pipeline 

At its core, Wolverine is centered around messages and handlers with minimal ceremony, favoring conventions and code-generation over heavy framework base classes. 

Vahid Arya
14 0
EPPlus in .NET , Reading and manipulating Excel files

EPPlus is a powerful and easy-to-use .NET library for reading, creating, and modifying Excel .xlsx files (Office Open XML format).
It provides an API similar to working with Excel itself — with support for formulas, charts, tables, styles, data validation, pivot tables, and more — all without needing Excel installed.

It’s ideal for:

  • Generating Excel reports dynamically
  • Importing or exporting data from databases
  • Creating dashboards or analytics reports
  • Building REST APIs that return Excel files
Vahid Arya
59 0
Implement outbox pattern using CAP library

CAP is a .NET library that helps implement the Outbox Pattern and distributed event publishing reliably.

It supports multiple databases (SQL Server, MySQL, PostgreSQL, etc.) and message brokers (RabbitMQ, Kafka, Azure Service Bus).

It automatically stores events in an outbox table within your database transaction and publishes them asynchronously.

It handles retries, failure scenarios, and event deduplication.

CAP is a great fit if you want out-of-the-box support for transactional outbox + message broker integration.

It abstracts away a lot of complexity.

Widely used in .NET microservice and event-driven architectures.

  • Transactional consistency: Your business data and events are saved atomically.
  • Reliable event publishing: Events are published asynchronously with retries.
  • Supports multiple brokers and databases.
  • Minimal setup: Integrates easily with EF Core and other ORMs.
  • Automatic cleanup and monitoring.
  • Helps you avoid reinventing the wheel.
Vahid Arya
68 0
OpenIddict Server + MVC Client — Minimal Sample

Looking for an open-source way to implement 𝗦𝗦𝗢 in ASP.NET Core? This guide shows how to build a central authentication system using 𝗢𝗽𝗲𝗻𝗜𝗱𝗱𝗶𝗰𝘁, a free alternative to Duende Identity.

It includes:
  • A working AuthServer and MVC client
  • Login and consent pages
  • Proper handling of first-time login flows

Vahid Arya
95 0
Protect Your API with Duende IdentityServer

Securing APIs is a critical part of modern application development. Instead of reinventing authentication and authorization, we can rely on industry standards such as OAuth 2.0 and OpenID Connect.

𝗜𝗱𝗲𝗻𝘁𝗶𝘁𝘆 𝗦𝗲𝗿𝘃𝗲𝗿 is a system that manages user login, authentication, and secure access to applications. It helps apps know who the user is and what they are allowed to do, without each app handling logins separately.

𝗗𝘂𝗲𝗻𝗱𝗲 𝗜𝗱𝗲𝗻𝘁𝗶𝘁𝘆𝗦𝗲𝗿𝘃𝗲𝗿 is a highly extensible and standards-compliant framework for .NET Core that helps you issue tokens, handle authentication, and enforce authorization for your APIs and applications.

In this article , we used the 𝗰𝗹𝗶𝗲𝗻𝘁 𝗰𝗿𝗲𝗱𝗲𝗻𝘁𝗶𝗮𝗹𝘀 flow, which works well for 𝗺𝗮𝗰𝗵𝗶𝗻𝗲-𝘁𝗼-𝗺𝗮𝗰𝗵𝗶𝗻𝗲 communication. But in real applications with human users, we need an interactive login experience.
𝗜𝗻 𝘁𝗵𝗲 𝗻𝗲𝘅𝘁 𝗴𝘂𝗶𝗱𝗲, we will discover how to build a 𝗹𝗼𝗴𝗶𝗻 𝗨𝗜 and 𝗶𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗲 redirection to 𝗜𝗱𝗲𝗻𝘁𝗶𝘁𝘆𝗦𝗲𝗿𝘃𝗲𝗿 for scenarios such as .NET Core 𝗠𝗩𝗖 applications, 𝗦𝗶𝗻𝗴𝗹𝗲 𝗣𝗮𝗴𝗲 𝗔𝗽𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻𝘀 (SPAs) like Angular or React, and even native 𝗺𝗼𝗯𝗶𝗹𝗲 or 𝗱𝗲𝘀𝗸𝘁𝗼𝗽 apps.

Vahid Arya
56 0
YARP: From Zero to Hero in .NET Reverse Proxy

YARP (Yet Another Reverse Proxy) is a highly customizable reverse proxy library for .NET. It's designed to provide a robust, flexible, scalable, secure, and easy to use proxy framework. YARP helps developers create powerful and efficient reverse proxy solutions tailored to their specific needs.

Vahid Arya
83 0
Stay in touch with us.

(+98)9192962583

info@redmask.ir

paint-brush
Follow Me

© vahid arya. All Rights Reserved.