Skip to content

event map

Duncan Jones edited this page Oct 4, 2020 · 2 revisions

An event map is a configuration section which maps the human-readable (or business domain meaningful) event names to the underlying .NET class which implements that event.

  "EventMaps": [
    {
      "EventName": "Designated Benificiary Set",
      "EventImplementationClassName": "RetailBank.AzureFunctionApp.Account.Events.BeneficiarySet"
    },
    {
      "EventName": "Money Deposited",
      "EventImplementationClassName": "RetailBank.AzureFunctionApp.Account.Events.MoneyDeposited"
    },
    {
      "EventName": "Money Withdrawn",
      "EventImplementationClassName": "RetailBank.AzureFunctionApp.Account.Events.MoneyWithdrawn"
    },
    {
      "EventName": "Account Opened",
      "EventImplementationClassName": "RetailBank.AzureFunctionApp.Account.Events.AccountOpened"
    }
  ]

EventName

This is the name of the event as stored in the event stream. It should be meaningful to the business domain so that the event stream can be shared with other languages or tools if so desired.

EventImplementationClassName

This is the name of the .NET class which is used to implement that event type (for serialisation purposes and determining if a projection should perform any action with that event type).

Clone this wiki locally