Skip to content

rbjoergensen/infrastructure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infrastructure

General

Certificates

Usage example

Certificates.LoadX509Certificate(@"certificates/certificate.pfx", "password");

Todo

  • Option for load from Windows store using thumbprint
  • Option for load from file on Windows

Azure

AppConfig

The service principal that accesses the config needs 'App Configuration Data Reader' role on the AppConfig.
It will also need an access policy on underlying Key Vaults if those are used in the AppConfig

Usage examples

// When using a certificate loaded from a file
AppConfig.Load("https://appconf-cotvtest.azconfig.io", @"certificates/certificate.pfx", "password")

Todo

  • Make labelFilter optional
  • Switch for certificate authencation and connectionstring
  • Options for how to load certificate when using it for authentication
  • Key Vault authentication with a different certificate

Logging

Serilog

Usage examples

// LogLevels: Verbose, Debug, Information, Warning, Error, Fatal
Logging.SetLogLevel("Verbose");

// Will output "[12:53:25 INF] Obama turned my frog gay with chemicals"
Logging.log.Information("Obama turned my frog gay with chemicals");

About

Infrastructure library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages