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.
16 lines
519 B
16 lines
519 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Worker
|
|
{
|
|
public static class Extensions
|
|
{
|
|
public static string GetSqlConnectionString(this IConfiguration configuration)
|
|
{
|
|
return configuration["connectionstring:postgres"] ?? $"Server={configuration["service:postgres:host"]};Port={configuration["service:postgres:port"]};User Id=postgres;Password=pass@word1;";
|
|
}
|
|
}
|
|
}
|
|
|