private string GetRoutes()
        {
            var serviceYaml = new ServiceConfigurationProvider(_serviceConfig.ServiceConfigFilePath).Load();
            var routes      = serviceYaml.Infrastructure.Web.Routes;

            return(string.Join("|", routes));
        }
Esempio n. 2
0
 internal static string GetServiceName(string serviceConfigurationPath)
 {
     try {
         var serviceYaml = new ServiceConfigurationProvider(serviceConfigurationPath).Load();
         return(serviceYaml.Service.Name);
     }
     catch (Exception ex)
     {
         Output.Error($"Unable to read serviceName {ex.Message}");
         return(null);
     }
 }