Commit c2474d9f c2474d9f66a2ceb53303fff9581061c62744deea by Christian Gerdes

Uppdaterat ServiceManagerPlugin så det är samma funktionalitet avseende TLS1.2 s…

…om ServiceManagerWebTestPlugin
1 parent 82588790
......@@ -44,7 +44,7 @@ namespace LIL_VSTT_Plugins
/// Service Manager Plugin
/// </summary>
[DisplayName("Service Manager Config")]
[Description("(C) Copyright 2015 LIGHTS IN LINE AB\r\nSätter config värden i Service Manager instansen för hela testet.")]
[Description("(C) Copyright 2015 LIGHTS IN LINE AB\r\nSätter config värden i Service Manager instansen för hela loadtestet. Finns även som WebTestPlugin som enbart slår på det webtestet.")]
public class ServiceManagerPlugin : ILoadTestPlugin
{
[DisplayName("Use Expect 100 Behaviour"), DefaultValue(true)]
......@@ -65,13 +65,17 @@ namespace LIL_VSTT_Plugins
[DisplayName("Use Nagle Algorithm"), DefaultValue(false)]
public bool useNagle { get; set; }
[DisplayName("Force TLS 1.2"), DefaultValue(false)]
[Description("Kräver .NET 4.5 samt att TLS1.2 är aktiverat i SChannel (använd bifogad schannel_high.reg)")]
public bool useTls12 { get; set; }
public void Initialize(LoadTest loadTest)
{
System.Net.ServicePointManager.Expect100Continue = exp100;
System.Net.ServicePointManager.MaxServicePointIdleTime = maxIdle;
System.Net.ServicePointManager.SetTcpKeepAlive(keepAlive, timeOut, interVal);
System.Net.ServicePointManager.UseNagleAlgorithm = useNagle;
//System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls; Needs .net 4.5 in order to enable high security protocols
if (useTls12) System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
}
}
......