Skip to content

Latest commit

 

History

History

demo_config

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Config setup

Configure ServiceStack using the .net core IConfiguration system

About this demo

Inspect Program.cs for yourself to see how to configure ServiceStack using IConfiguration. Settings for ServiceStack are stored in the servicestack.json file.

Run this demo

cd demo_config
dotnet restore
dotnet run # or dotnet watch

App Settings

Visit http://localhost:5000/settings.json

  • Notice the "ServiceStack:*" settings.
  • Notice the "USER" environment variable that was overriden by the servicestack.json file

Typed HostConfig object

Visit http://localhost:5000/config.json

This object is used to configure the ServiceStack AppHost