-
Notifications
You must be signed in to change notification settings - Fork 20
Configuration
There are a number of configuration settings that affect how (and where) this library stores the data for its underlying event streams and also how events are identified for processing.
These can be stored in the application settings or in a .config file named appsettings.json, config.local.json, config.json or connectionstrings.json
This library uses the standard way of storing connection strings in Azure functions and they are referred to in the system by connection string name. This is to allow you to switch environments (between dev, test, production for example) without recompiling.
Because you may wish to store different types of data in different locations the library allows configuration of the event stream underlying storage by an EventStreamSettings configuration set. If no event stream setting matches then the application will default to the configuration string with the name EventStreamConnectionString
In the event storage the type of event is stored as an (ideally human readable) string. This is mapped to the .NET class that implements that event either by using the eventname attribute in code or by building an event map in the configuration.