https://github.com/johnib/ConfigurationInitializer.ServiceFabric
A framework to help utilize ServiceFabric configurations
https://github.com/johnib/ConfigurationInitializer.ServiceFabric
Last synced: about 1 year ago
JSON representation
A framework to help utilize ServiceFabric configurations
- Host: GitHub
- URL: https://github.com/johnib/ConfigurationInitializer.ServiceFabric
- Owner: johnib
- Created: 2018-07-11T22:59:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-12T12:45:55.000Z (almost 8 years ago)
- Last Synced: 2025-04-22T10:35:06.380Z (about 1 year ago)
- Language: C#
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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; }
}
```