File size: 2,656 Bytes
8c763fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | // 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
{
/// <summary>
/// Session option class.
/// </summary>
public sealed class SessionOption
{
/// <summary>
/// Property.
/// </summary>
public bool SkipCACheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool SkipCNCheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool SkipRevocationCheck { get; set; }
/// <summary>
/// Property.
/// </summary>
public bool UseEncryption { get; set; } = true;
/// <summary>
/// Property.
/// </summary>
public bool UseUtf16 { get; set; }
/// <summary>
/// Property.
/// </summary>
public ProxyAuthentication ProxyAuthentication { get; set; }
/// <summary>
/// Property.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SPN")]
public int SPNPort { get; set; }
/// <summary>
/// Property.
/// </summary>
public int OperationTimeout { get; set; }
/// <summary>
/// Property.
/// </summary>
public NetworkCredential ProxyCredential { get; set; }
/// <summary>
/// Property.
/// </summary>
public ProxyAccessType ProxyAccessType { get; set; }
}
/// <summary>
/// Property.
/// </summary>
public enum ProxyAccessType
{
/// <summary>
/// Property.
/// </summary>
ProxyIEConfig = 0,
/// <summary>
/// Property.
/// </summary>
ProxyWinHttpConfig = 1,
/// <summary>
/// Property.
/// </summary>
ProxyAutoDetect = 2,
/// <summary>
/// Property.
/// </summary>
ProxyNoProxyServer = 3
}
/// <summary>
/// Property.
/// </summary>
[SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")]
[SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue")]
public enum ProxyAuthentication
{
/// <summary>
/// Property.
/// </summary>
Negotiate = 1,
/// <summary>
/// Property.
/// </summary>
Basic = 2,
/// <summary>
/// Property.
/// </summary>
Digest = 4
}
}
|