WIP: Add empty line between single-line declarations by xtqqczze · Pull Request #12849 · PowerShell/PowerShell · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -858,17 +858,25 @@ internal void ThrowTerminatingError(Exception exception, string operation)
#region Session related parameter set name

internal const string ComputerNameSet = "ComputerNameSet";

internal const string SessionIdSet = "SessionIdSet";

internal const string InstanceIdSet = "InstanceIdSet";

internal const string NameSet = "NameSet";

internal const string CimSessionSet = "CimSessionSet";

internal const string WSManParameterSet = "WSManParameterSet";

internal const string DcomParameterSet = "DcomParameterSet";

internal const string ProtocolNameParameterSet = "ProtocolTypeSet";
#endregion

#region register cimindication parameter set name
internal const string QueryExpressionSessionSet = "QueryExpressionSessionSet";

internal const string QueryExpressionComputerSet = "QueryExpressionComputerSet";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public class CimIndicationWatcher
internal enum Status
{
Default,

Started,

Stopped
}

Expand Down Expand Up @@ -390,10 +392,15 @@ internal void SetCmdlet(Cmdlet cmdlet)
/// </para>
/// </summary>
private string computerName;

private CimSession cimSession;

private string nameSpace;

private string queryDialect;

private string queryExpression;

private UInt32 operationTimeout;
#endregion
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public enum AsyncResultType
{
Result,

Exception,

Completion
}
#endregion
Expand Down Expand Up @@ -99,7 +101,9 @@ public AsyncResultEventArgsBase(
}

public readonly CimSession session;

public readonly IObservable<object> observable;

public readonly AsyncResultType resultType;

// property ErrorSource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ public OperationEventArgs(IDisposable operationCancellation,
}

public readonly IDisposable operationCancellation;

public readonly IObservable<object> operation;

public readonly bool success;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,11 @@ private CimGetAssociatedInstance CreateOperationAgent()

#region const string of parameter names
internal const string nameCimInstance = "InputObject";

internal const string nameComputerName = "ComputerName";

internal const string nameCimSession = "CimSession";

internal const string nameResourceUri = "ResourceUri";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ private CimGetCimClass CreateOperationAgent()

#region const string of parameter names
internal const string nameCimSession = "CimSession";

internal const string nameComputerName = "ComputerName";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,17 +532,29 @@ private void CheckArgument()

#region const string of parameter names
internal const string nameCimInstance = "InputObject";

internal const string nameCimSession = "CimSession";

internal const string nameClassName = "ClassName";

internal const string nameResourceUri = "ResourceUri";

internal const string nameComputerName = "ComputerName";

internal const string nameFilter = "Filter";

internal const string nameKeyOnly = "KeyOnly";

internal const string nameNamespace = "Namespace";

internal const string nameOperationTimeoutSec = "OperationTimeoutSec";

internal const string nameQuery = "Query";

internal const string nameQueryDialect = "QueryDialect";

internal const string nameSelectProperties = "Property";

internal const string nameShallow = "Shallow";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ protected override void ProcessRecord()

#region const string of parameter names
internal const string nameComputerName = "ComputerName";

internal const string nameId = "Id";

internal const string nameInstanceId = "InstanceId";

internal const string nameName = "Name";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,25 @@ private void CheckArgument()

#region const string of parameter names
internal const string nameClassName = "ClassName";

internal const string nameCimClass = "CimClass";

internal const string nameQuery = "Query";

internal const string nameResourceUri = "ResourceUri";

internal const string nameQueryDialect = "QueryDialect";

internal const string nameCimInstance = "InputObject";

internal const string nameComputerName = "ComputerName";

internal const string nameCimSession = "CimSession";

internal const string nameArguments = "Arguments";

internal const string nameMethodName = "MethodName";

internal const string nameNamespace = "Namespace";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,21 @@ private void CheckArgument()

#region const string of parameter names
internal const string nameClassName = "ClassName";

internal const string nameResourceUri = "ResourceUri";

internal const string nameKey = "Key";

internal const string nameCimClass = "CimClass";

internal const string nameProperty = "Property";

internal const string nameNamespace = "Namespace";

internal const string nameCimSession = "CimSession";

internal const string nameComputerName = "ComputerName";

internal const string nameClientOnly = "ClientOnly";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public PasswordAuthenticationMechanism Authentication
}

private PasswordAuthenticationMechanism authentication;

private bool authenticationSet = false;

/// <summary>
Expand Down Expand Up @@ -141,6 +142,7 @@ public UInt32 OperationTimeoutSec
}

private UInt32 operationTimeout;

internal bool operationTimeoutSet = false;

/// <summary>
Expand Down Expand Up @@ -180,6 +182,7 @@ public UInt32 Port
}

private UInt32 port;

private bool portSet = false;

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public SwitchParameter NoEncryption
}

private SwitchParameter noEncryption;

private bool noEncryptionSet = false;

/// <summary>
Expand All @@ -96,6 +97,7 @@ public SwitchParameter SkipCACheck
}

private SwitchParameter skipCACheck;

private bool skipCACheckSet = false;

/// <summary>
Expand All @@ -117,6 +119,7 @@ public SwitchParameter SkipCNCheck
}

private SwitchParameter skipCNCheck;

private bool skipCNCheckSet = false;

/// <summary>
Expand All @@ -138,6 +141,7 @@ public SwitchParameter SkipRevocationCheck
}

private SwitchParameter skipRevocationCheck;

private bool skipRevocationCheckSet = false;

/// <summary>
Expand All @@ -159,6 +163,7 @@ public SwitchParameter EncodePortInServicePrincipalName
}

private SwitchParameter encodeportinserviceprincipalname;

private bool encodeportinserviceprincipalnameSet = false;

/// <summary>
Expand All @@ -182,6 +187,7 @@ public PacketEncoding Encoding
}

private PacketEncoding encoding;

private bool encodingSet = false;

/// <summary>
Expand Down Expand Up @@ -223,6 +229,7 @@ public UInt32 MaxEnvelopeSizeKB
}

private UInt32 maxenvelopesizekb;

private bool maxenvelopesizekbSet = false;

/// <summary>
Expand All @@ -244,6 +251,7 @@ public PasswordAuthenticationMechanism ProxyAuthentication
}

private PasswordAuthenticationMechanism proxyAuthentication;

private bool proxyauthenticationSet = false;

/// <summary>
Expand Down Expand Up @@ -303,6 +311,7 @@ public ProxyType ProxyType
}

private ProxyType proxytype;

private bool proxytypeSet = false;

/// <summary>
Expand All @@ -324,6 +333,7 @@ public SwitchParameter UseSsl
}

private SwitchParameter usessl;

private bool usesslSet = false;

/// <summary>
Expand All @@ -345,6 +355,7 @@ public ImpersonationType Impersonation
}

private ImpersonationType impersonation;

private bool impersonationSet = false;

/// <summary>
Expand All @@ -366,6 +377,7 @@ public SwitchParameter PacketIntegrity
}

private SwitchParameter packetintegrity;

private bool packetintegritySet = false;

/// <summary>
Expand All @@ -387,6 +399,7 @@ public SwitchParameter PacketPrivacy
}

private SwitchParameter packetprivacy;

private bool packetprivacySet = false;

/// <summary>
Expand Down Expand Up @@ -691,21 +704,37 @@ internal WSManSessionOptions CreateWSMANSessionOptions()

#region const string of parameter names
internal const string nameNoEncryption = "NoEncryption";

internal const string nameSkipCACheck = "SkipCACheck";

internal const string nameSkipCNCheck = "SkipCNCheck";

internal const string nameSkipRevocationCheck = "SkipRevocationCheck";

internal const string nameEncodePortInServicePrincipalName = "EncodePortInServicePrincipalName";

internal const string nameEncoding = "Encoding";

internal const string nameHttpPrefix = "HttpPrefix";

internal const string nameMaxEnvelopeSizeKB = "MaxEnvelopeSizeKB";

internal const string nameProxyAuthentication = "ProxyAuthentication";

internal const string nameProxyCertificateThumbprint = "ProxyCertificateThumbprint";

internal const string nameProxyCredential = "ProxyCredential";

internal const string nameProxyType = "ProxyType";

internal const string nameUseSsl = "UseSsl";

internal const string nameImpersonation = "Impersonation";

internal const string namePacketIntegrity = "PacketIntegrity";

internal const string namePacketPrivacy = "PacketPrivacy";

internal const string nameProtocol = "Protocol";
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,13 @@ private void SetParameter(object value, string parameterName)

#region const string of parameter names
internal const string nameClassName = "ClassName";

internal const string nameQuery = "Query";

internal const string nameQueryDialect = "QueryDialect";

internal const string nameCimSession = "CimSession";

internal const string nameComputerName = "ComputerName";
#endregion

Expand Down
Loading