Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private StartableJob DoCreateStaticMethodInvocationJob(TSession sessionForJob, M
return methodInvocationJob;
}

private void HandleJobOutput(Job job, TSession sessionForJob, bool discardNonPipelineResults, Action<PSObject> outputAction)
private static void HandleJobOutput(Job job, TSession sessionForJob, bool discardNonPipelineResults, Action<PSObject> outputAction)
{
Action<PSObject> processOutput =
(PSObject pso) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private bool ValidDrivePath(string drivePath)
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
private bool IsValidPattern(string input)
private static bool IsValidPattern(string input)
{
return Regex.IsMatch(input, @"^[a-z]{1}$|^[a-z]{1}:$|^[a-z]{1}:\\$", RegexOptions.IgnoreCase);
}
Expand All @@ -165,7 +165,7 @@ private bool IsValidPattern(string input)
/// </summary>
/// <param name="driveName"></param>
/// <returns></returns>
private string GetDrivePath(string driveName)
private static string GetDrivePath(string driveName)
{
string drivePath;
if (driveName.EndsWith(":\\", StringComparison.OrdinalIgnoreCase))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ public override string ToString()
/// <param name="HasSucceeded"></param>
/// <param name="computername"></param>
/// <returns></returns>
private string FormatLine(string HasSucceeded, string computername)
private static string FormatLine(string HasSucceeded, string computername)
{
return StringUtil.Format(MatchFormat, HasSucceeded, computername);
}
Expand Down Expand Up @@ -1683,7 +1683,7 @@ public override string ToString()
/// <param name="newcomputername"></param>
/// <param name="oldcomputername"></param>
/// <returns></returns>
private string FormatLine(string HasSucceeded, string newcomputername, string oldcomputername)
private static string FormatLine(string HasSucceeded, string newcomputername, string oldcomputername)
{
return StringUtil.Format(MatchFormat, HasSucceeded, newcomputername, oldcomputername);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ public string GetLocale()
#endregion Public Methods

#region Private Methods
private OSProductSuite[] MakeProductSuites(uint? suiteMask)
private static OSProductSuite[] MakeProductSuites(uint? suiteMask)
{
if (suiteMask == null)
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ private void AttachDebuggerToProcess(Process process)
/// <summary>
/// Map the return code from 'AttachDebugger' to error message.
/// </summary>
private string MapReturnCodeToErrorMessage(int returnCode)
private static string MapReturnCodeToErrorMessage(int returnCode)
{
string errorMessage = string.Empty;
switch (returnCode)
Expand Down Expand Up @@ -2106,7 +2106,7 @@ private string ResolveFilePath(string path)
return filepath;
}

private void LoadEnvironmentVariable(ProcessStartInfo startinfo, IDictionary EnvironmentVariables)
private static void LoadEnvironmentVariable(ProcessStartInfo startinfo, IDictionary EnvironmentVariables)
{
var processEnvironment = startinfo.EnvironmentVariables;
foreach (DictionaryEntry entry in EnvironmentVariables)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ internal List<ServiceController> DoStopService(ServiceController serviceControll
/// True if all dependent services are stopped
/// False if not all dependent services are stopped
/// </returns>
private bool HaveAllDependentServicesStopped(ServiceController[] dependentServices)
private static bool HaveAllDependentServicesStopped(ServiceController[] dependentServices)
{
return Array.TrueForAll(dependentServices, service => service.Status == ServiceControllerStatus.Stopped);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ private IPHostEntry GetCancellableHostEntry(string targetNameOrAddress)

// Users most often use the default buffer size so we cache the buffer.
// Creates and fills a send buffer. This follows the ping.exe and CoreFX model.
private byte[] GetSendBuffer(int bufferSize)
private static byte[] GetSendBuffer(int bufferSize)
{
if (bufferSize == DefaultSendBufferSize && s_DefaultSendBuffer != null)
{
Expand Down