-
Notifications
You must be signed in to change notification settings - Fork 14
Improving AppSettings Processing
The Harmony Core SolutionTemplates include code and sample configuration files for a mechanism that allows environment variables that are required at runtime to be specified via the special appsettings.json file. This mechanism is described in detail in the Environment Variables documentation.
Earlier versions of the solution templates contained code that did not operate as intended, and this document contains instructions on how to alter the supplied code to provide a fully working solution.
To determine if your code needs this fix to be applied, look in your Services.Data project directory and edit the file called AppSettings.dbl. If you look towards the end of that file and find a class named EnvironmentVatiable that looks like this:
;;; <summary>
;;; Represents a aingle environment variable.
;;; </summary>
public class AppEnvironmentVariable
;;; <summary>
;;; The name of the environment variable.
;;; </summary>
public readwrite property Name, string
;;; <summary>
;;; The value of the environment variable.
;;; </summary>
public readwrite property Value, string
endclass
Then your code needs updating. If the class is not present then your code has already been fixed.
-
Tutorial 2: Building a Service from Scratch
- Creating a Basic Solution
- Enabling OData Support
- Configuring Self Hosting
- Entity Collection Endpoints
- API Documentation
- Single Entity Endpoints
- OData Query Support
- Alternate Key Endpoints
- Expanding Relations
- Postman Tests
- Supporting CRUD Operations
- Adding a Primary Key Factory
- Adding Create Endpoints
- Adding Upsert Endpoints
- Adding Patch Endpoints
- Adding Delete Endpoints
-
Harmony Core CLI Tool
-
OData Aware Tools
-
Advanced Topics
- CLI Tool Customization
- Adapters
- API Versioning
- Authentication
- Authorization
- Collection Counts
- Customization File
- Custom Field Types
- Custom File Specs
- Custom Properties
- Customizing Generated Code
- Deploying to Linux
- Dynamic Call Protocol
- Environment Variables
- Field Security
- File I/O
- Improving AppSettings Processing
- Logging
- Optimistic Concurrency
- Multi-Tenancy
- Publishing in IIS
- Repeatable Unit Tests
- Stored Procedure Routing
- Suppressing OData Metadata
- Traditional Bridge
- Unit Testing
- EF Core Optimization
- Updating a Harmony Core Solution
- Updating to 3.1.90
- Creating a new Release
-
Background Information