我正在使用RedisSessionStateProvider
这样的程序https://azure.microsoft.com/en-us/documentation/articles/web-sites-dotnet-session-state-caching/
我在 中定义了它的连接字符串web.config
,在这个例子中是XXXXXX
.
<system.web>
<compilation debug="true" targetFramework="4.6.1" />
<httpRuntime targetFramework="4.5" />
<globalization culture="es-CO" uiCulture="es" />
<customErrors mode="Off" />
<sessionState mode="Custom" customProvider="SessionStateStore">
<providers>
<add name="SessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString="XXXXXX" throwOnError="true" applicationName="NominappSession" />
</providers>
</sessionState>
</system.web>
我不想将连接字符串放在源代码中。那么如何使用 Azure 中的设置来定义这个连接字符串呢?
我从 github 部署到 azure,所以它使用 Kudu。我没有外部 CI 服务器。
请问有什么建议吗?