Skip to main content.

Site Map

Site Map

Common Project

The common project contains all common logic for the Service Brick. It only has a reference to the API Project, plus any other custom references you need for the business domain.

By using those interfaces, this project typically implements Background Tasks and Domain Processes that are relevent to its overall operation. This project may also setup any appsettings options used by the microservice or internally shared constants, mappings, middleware and so on. It is the common code location for shared resources for the Service Brick.

Default File Structure

Extensions

This folder contains (2) two files.

  • ApplicationBuilderExtensions.cs - Provides extension methods for RegisterBrick() and StartBrick()
  • ServiceCollectionExtensions.cs - Provides extension method for AddBrick()

Model

This folder contains (2) two files.

  • [Module Name]Constants.cs - Defines shared constants
  • [Module Name]Module.cs - Implements the IModule interface