I used to get values of my configuration like this:

public Startup(IConfiguration Configuration)
  {
   GraphDBL.Config.Uri = Configuration.GetSection("neo4j:host").Value;
   GraphDBL.Config.UserName = Configuration.GetSection("neo4j:user_name").Value;
   GraphDBL.Config.Password = Configuration.GetSection("neo4j:password").Value;
  }

my Config class `

public class Config
{
    public static string Uri { get; set; }
    public static string UserName { get; set; }
    public static string Password { get; set; }
}

How can i get the result of this in one process? not in turn?

Related posts

Recent Viewed