Created
March 23, 2019 08:19
-
-
Save thaianhduc/9f17cc1846e0ab0bd201d69e144d644e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.Configuration; | |
namespace CoolApp.ApplicationService | |
{ | |
public class JsonAppConfigService : IAppConfigService | |
{ | |
private readonly string _defaultCurrency; | |
public JsonAppConfigService(IConfiguration configuration) | |
{ | |
_defaultCurrency = configuration["DefaultCurrency"]; | |
} | |
public string GetDefaultCurrency() => _defaultCurrency; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment