mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
efe91fd0d8
* Move RevisionDate Bumps to Extension Class * Add Tests against live databases * Run Formatting * Fix Typo * Fix Test Solution Typo * Await ReplaceAsync
18 lines
428 B
C#
18 lines
428 B
C#
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Bit.Infrastructure.IntegrationTest;
|
|
|
|
public static class ConfigurationExtensions
|
|
{
|
|
public static bool TryGetConnectionString(this IConfiguration config, string key, out string connectionString)
|
|
{
|
|
connectionString = config[key];
|
|
if (string.IsNullOrEmpty(connectionString))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
}
|