Skip to content

Instantly share code, notes, and snippets.

@manoj-choudhari-git
Created June 2, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-choudhari-git/37e428733542281c41ab038c848f8334 to your computer and use it in GitHub Desktop.
Save manoj-choudhari-git/37e428733542281c41ab038c848f8334 to your computer and use it in GitHub Desktop.
Class to read from IConfiguration
public class StorageConfig
{
private readonly IConfiguration configuration;
public StorageConfig(IConfiguration configuration)
{
this.configuration = configuration;
}
public string AccountName
{
get { return this.configuration["AccountName"]; }
}
public string ContainerName
{
get { return this.configuration["ContainerName"]; }
}
public string Key
{
get { return this.configuration["Key"]; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment