// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Diagnostics.CodeAnalysis; using System.Net; [assembly: CLSCompliant(true)] namespace Microsoft.WSMan.Management { /// /// Session option class. /// public sealed class SessionOption { /// /// Property. /// public bool SkipCACheck { get; set; } /// /// Property. /// public bool SkipCNCheck { get; set; } /// /// Property. /// public bool SkipRevocationCheck { get; set; } /// /// Property. /// public bool UseEncryption { get; set; } = true; /// /// Property. /// public bool UseUtf16 { get; set; } /// /// Property. /// public ProxyAuthentication ProxyAuthentication { get; set; } /// /// Property. /// [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SPN")] public int SPNPort { get; set; } /// /// Property. /// public int OperationTimeout { get; set; } /// /// Property. /// public NetworkCredential ProxyCredential { get; set; } /// /// Property. /// public ProxyAccessType ProxyAccessType { get; set; } } /// /// Property. /// public enum ProxyAccessType { /// /// Property. /// ProxyIEConfig = 0, /// /// Property. /// ProxyWinHttpConfig = 1, /// /// Property. /// ProxyAutoDetect = 2, /// /// Property. /// ProxyNoProxyServer = 3 } /// /// Property. /// [SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")] [SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue")] public enum ProxyAuthentication { /// /// Property. /// Negotiate = 1, /// /// Property. /// Basic = 2, /// /// Property. /// Digest = 4 } }