Attributes & Pipelines - BisocM/CQRSharp GitHub Wiki

Introduction

The library has a high regard for using pipelines, and uses them as the primary execution unit within the Dispatcher. All pipelines are built at compile time by the PipelineRegistryGenerator, which creates a dictionary that dictates exactly how each and all commands should be exected.

Attributes

Currently, the library supports three primary attributes that are bona fide "proxies" for executions of all requests:

  • IPreHandlerAttribute
  • IPostHandlerAttribute
  • IRequestInterceptor

The names of these interceptors are quite self-exaplanatory - you must inherit from each of the given attributes and then define whatever logic you want the Handle method to

Pipelines