Ejemplo n.º 1
0
        private static string LoadFromFile(IHostingEnvironment env, IHasTextMapFilePath settings)
        {
            var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, settings.TextMapFilePath);

            if (!File.Exists(path))
            {
                return(null);
            }

            var json = File.ReadAllText(path);

            return(json);
        }
Ejemplo n.º 2
0
 public TextMapService(IHostingEnvironment env, IHasTextMapFilePath settings)
     : this(LoadFromFile(env, settings))
 {
 }