An open API service indexing awesome lists of open source software.

https://github.com/johnib/configurationinitializer.servicefabric

A framework to help utilize ServiceFabric configurations
https://github.com/johnib/configurationinitializer.servicefabric

Last synced: 2 months ago
JSON representation

A framework to help utilize ServiceFabric configurations

Awesome Lists containing this project

README

          

[README] https://github.com/ordanon/ConfigurationInitializer/blob/master/README.md

# How to use?
Assume a SF Service with the following `Config/Settings.xml` file:

```XML











```

Then the settings class representing the that config file would look like:

```CSharp
public class SchedulerJobSettings : ConfigurationInitializer
{
public SchedulerJobSettings(ConfigurationSettings settings)
: base(new ServiceFabricConfigurationReader(settings))
{
}

[ConfigKey("ApplicationInsights.InstrumentationKey")]
public string AppInsightsInstrumentationKey { get; set; }

[ConfigKey("BlobPersistency.StorageAccounts")]
public List BlobPersistencyStoragesConnectionStrings { get; set; }

[ConfigKey("AAD.TenantId")]
public string AadTenantId { get;set; }

[ConfigKey("AAD.ClientId")]
public string AadClientId { get;set; }

[ConfigKey("AAD.CertificateThumbprint")]
public string AadCertificateThumbprint { get; set; }
}
```