mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Mark private members as static part 8 (#14233)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
This commit is contained in:
1 parent
8c8487cc78
commit
94597deb39
25 files changed
+46
-46
No files matched your search
+5
-5
@@ -198,7 +198,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// <summary>
|
||||
/// Get remote runspace to close.
|
||||
/// </summary>
|
||||
private RemoteRunspace GetRemoteRunspaceToClose(PSHost clientHost)
|
||||
private static RemoteRunspace GetRemoteRunspaceToClose(PSHost clientHost)
|
||||
{
|
||||
// Figure out if we need to close the remote runspace. Return null if we don't.
|
||||
|
||||
@@ -440,7 +440,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// </summary>
|
||||
/// <param name="caption">Caption to modify.</param>
|
||||
/// <returns>New modified caption.</returns>
|
||||
private string ModifyCaption(string caption)
|
||||
private static string ModifyCaption(string caption)
|
||||
{
|
||||
string pscaption = CredUI.PromptForCredential_DefaultCaption;
|
||||
|
||||
@@ -465,7 +465,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// <param name="computerName">computername to include in the
|
||||
/// message</param>
|
||||
/// <returns>Message which contains a warning as well.</returns>
|
||||
private string ModifyMessage(string message, string computerName)
|
||||
private static string ModifyMessage(string message, string computerName)
|
||||
{
|
||||
string modifiedMessage = PSRemotingErrorInvariants.FormatResourceString(
|
||||
RemotingErrorIdStrings.RemoteHostPromptForCredentialModifiedMessage,
|
||||
@@ -485,7 +485,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// <param name="resourceString">Resource string to use.</param>
|
||||
/// <returns>A constructed remote host call message
|
||||
/// which will display the warning.</returns>
|
||||
private RemoteHostCall ConstructWarningMessageForSecureString(string computerName,
|
||||
private static RemoteHostCall ConstructWarningMessageForSecureString(string computerName,
|
||||
string resourceString)
|
||||
{
|
||||
string warning = PSRemotingErrorInvariants.FormatResourceString(
|
||||
@@ -506,7 +506,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// in warning</param>
|
||||
/// <returns>A constructed remote host call message
|
||||
/// which will display the warning.</returns>
|
||||
private RemoteHostCall ConstructWarningMessageForGetBufferContents(string computerName)
|
||||
private static RemoteHostCall ConstructWarningMessageForGetBufferContents(string computerName)
|
||||
{
|
||||
string warning = PSRemotingErrorInvariants.FormatResourceString(
|
||||
RemotingErrorIdStrings.RemoteHostGetBufferContents,
|
||||
|
||||
Reference in new issue
Block a user