/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/DataProtection/StackExchangeRedis/test/TestRedisServer.cs
27 строк
762 B
Pranav K
Fixup whitespace issues from top-level statement change (#39161)
23 дек 2021, 09:35
Не верифицирован
23 дек 2021, 09:35
c65dac7
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using Microsoft.Extensions.Configuration; namespace Microsoft.AspNetCore.DataProtection; internal class TestRedisServer { public const string ConnectionStringKeyName = "Test:Redis:Server"; private static readonly IConfigurationRoot _config; static TestRedisServer() { _config = new ConfigurationBuilder() .SetBasePath(AppContext.BaseDirectory) .AddJsonFile("testconfig.json") .AddEnvironmentVariables() .Build(); } internal static string GetConnectionString() { return _config[ConnectionStringKeyName]; } }