private string GetRoutes() { var serviceYaml = new ServiceConfigurationProvider(_serviceConfig.ServiceConfigFilePath).Load(); var routes = serviceYaml.Infrastructure.Web.Routes; return(string.Join("|", routes)); }
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); } }