mirror of https://github.com/dotnet/tye.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
356 B
13 lines
356 B
using System;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Results
|
|
{
|
|
public static class ConfigurationExtensions
|
|
{
|
|
public static string GetUri(this IConfiguration configuration, string name)
|
|
{
|
|
return $"http://{configuration[$"service:{name}:host"]}:{configuration[$"service:{name}:port"]}";
|
|
}
|
|
}
|
|
}
|
|
|