Skip to content

Configuration

Duncan Jones edited this page Mar 6, 2022 · 5 revisions

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, environment variables or in a .config file named appsettings.json, config.local.json, config.json or connectionstrings.json

Connection strings

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.

Event stream underlying storage

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

For example if you want to store the Bank.Account entities in an Azure table which has the connection string called BankAccountConnectionString you can specify it as Bank.Account=Table;BankAccountConnectionString

If you want it to be stored in a Blob file instead then change it to Bank.Account=AppendBlob;BankAccountBlobConnectionString