Skip to content

Template project for Console App using Dot Net Core 2.1 with Command Handler

Notifications You must be signed in to change notification settings

LeonSutedja/NetCoreConsoleDemo

Repository files navigation

NetCoreConsoleDemo

Template project for Console App using Dot Net Core 2.1 with Command Handler

Demo Console app project. Contains:

  • Basic Command Handler with async support
  • Basic Event aggregator
  • Basic error handling
  • Basic logging with Serilog

SampleCommand will produce event and will publish it to the event aggregator. Basic event aggregator will find each of the event handler and handles the event published.

SampleCommandWithAsyncException is an example of a command that will throw an exception whilst processing in async. This application shows how it will be handled gracefully and logged it using the loggin mechanism it uses.

About

Template project for Console App using Dot Net Core 2.1 with Command Handler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages