Endpoint - AppSettings

Flexbase Solution Structurer

Let us understand the app setting.

{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"FlexBase": {
"EndPoint": "ECommerceDemo-EndPoint-WebAPI",
"AppDbConnection": "Data Source=.;Initial Catalog=YourDb;User ID=YourUser;Password=YourPassword;",
"AppReadDbConnection": "Data Source=.;Initial Catalog=YourDb;User ID=YourUser;Password=YourPassword;",
"AzureStorageConnectionString": ""
}
}

The appsettings is located in the app settings file in the endpoints for each WebAPI or in the Handler or subscriber.

These are all configured by default in the Flexbase. We have given a unique endpoint name for each of them. The DB connection has to change according to the DB configurations for app and read connection. This storage connection string that will be used by the default Azure storage implementation for the bus

These will come by default when the code is generated. Same thing for subscribers and Handler. We have appsetting.development.json’. This can be followed as per the .NET code standard.