MegaBites-AI/Windows-powershell
0372
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System;5using System.Diagnostics.CodeAnalysis;6using System.Net;7 8[assembly: CLSCompliant(true)]9 10namespace Microsoft.WSMan.Management11{12 /// <summary>13 /// Session option class.14 /// </summary>15 public sealed class SessionOption16 {17 /// <summary>18 /// Property.19 /// </summary>20 public bool SkipCACheck { get; set; }21 22 /// <summary>23 /// Property.24 /// </summary>25 public bool SkipCNCheck { get; set; }26 27 /// <summary>28 /// Property.29 /// </summary>30 public bool SkipRevocationCheck { get; set; }31 32 /// <summary>33 /// Property.34 /// </summary>35 public bool UseEncryption { get; set; } = true;36 37 /// <summary>38 /// Property.39 /// </summary>40 public bool UseUtf16 { get; set; }41 42 /// <summary>43 /// Property.44 /// </summary>45 public ProxyAuthentication ProxyAuthentication { get; set; }46 47 /// <summary>48 /// Property.49 /// </summary>50 [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SPN")]51 public int SPNPort { get; set; }52 53 /// <summary>54 /// Property.55 /// </summary>56 public int OperationTimeout { get; set; }57 58 /// <summary>59 /// Property.60 /// </summary>61 public NetworkCredential ProxyCredential { get; set; }62 63 /// <summary>64 /// Property.65 /// </summary>66 public ProxyAccessType ProxyAccessType { get; set; }67 }68 69 /// <summary>70 /// Property.71 /// </summary>72 public enum ProxyAccessType73 {74 /// <summary>75 /// Property.76 /// </summary>77 ProxyIEConfig = 0,78 /// <summary>79 /// Property.80 /// </summary>81 ProxyWinHttpConfig = 1,82 /// <summary>83 /// Property.84 /// </summary>85 ProxyAutoDetect = 2,86 /// <summary>87 /// Property.88 /// </summary>89 ProxyNoProxyServer = 390 }91 92 /// <summary>93 /// Property.94 /// </summary>95 [SuppressMessage("Microsoft.Design", "CA1027:MarkEnumsWithFlags")]96 [SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue")]97 public enum ProxyAuthentication98 {99 /// <summary>100 /// Property.101 /// </summary>102 Negotiate = 1,103 /// <summary>104 /// Property.105 /// </summary>106 Basic = 2,107 /// <summary>108 /// Property.109 /// </summary>110 Digest = 4111 }112}113 