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 @@ -60,7 +60,7 @@ internal override void SeekContentPosition(List<ContentHolder> contentHolders)
}
}
}
} // SeekContentPosition
}

/// <summary>
/// Makes the call to ShouldProcess with appropriate action and target strings.
Expand All @@ -81,6 +81,6 @@ internal override bool CallShouldProcess(string path)
}

#endregion protected members
} // AddContentCommand
} // namespace Microsoft.PowerShell.Commands
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected override void ProcessRecord()
pathNotFound));
}
}
} // ProcessRecord
}
#endregion Command code

/// <summary>
Expand Down Expand Up @@ -97,7 +97,7 @@ internal override object GetDynamicParameters(CmdletProviderContext context)
}

return InvokeProvider.Content.ClearContentDynamicParameters(".", context);
} // GetDynamicParameters
} // ClearContentCommand
} // namespace Microsoft.PowerShell.Commands
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public string[] Path
get
{
return paths;
} // get
}

set
{
paths = value;
} // set
} // Path
}
}

/// <summary>
/// Gets or sets the literal path parameter to the command
Expand All @@ -45,14 +45,14 @@ public string[] LiteralPath
get
{
return paths;
} // get
}

set
{
base.SuppressWildcardExpansion = true;
paths = value;
} // set
} // LiteralPath
}
}

/// <summary>
/// The properties to clear from the item
Expand All @@ -63,13 +63,13 @@ public string Name
get
{
return _property;
} // get
}

set
{
_property = value;
}
} // Name
}

/// <summary>
/// A virtual method for retrieving the dynamic parameters for a cmdlet. Derived cmdlets
Expand Down Expand Up @@ -101,7 +101,7 @@ internal override object GetDynamicParameters(CmdletProviderContext context)
".",
propertyCollection,
context);
} // GetDynamicParameters
}

#endregion Parameters

Expand Down Expand Up @@ -165,8 +165,8 @@ protected override void ProcessRecord()
pathNotFound));
}
}
} // ProcessRecord
}
#endregion Command code

} // ClearItemPropertyCommand
} // namespace Microsoft.PowerShell.Commands
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected override void ProcessRecord()
pathNotFound));
continue;
}
} // for each path
}
}
else
{
Expand All @@ -213,9 +213,9 @@ protected override void ProcessRecord()
}
}
}
} // ProcessRecord
}
#endregion Command code

} // JoinPathCommand
} // namespace Microsoft.PowerShell.Commands
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ protected override void EndProcessing()
this.Context.TransactionManager.Commit();
}
}
} // CommitTransactionCommand
} // namespace Microsoft.PowerShell.Commands
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -1528,8 +1528,8 @@ private void DoRenameComputerWsman(string computer, string computerName, string
WriteWarning(StringUtil.Format(ComputerResources.RestartNeeded, null, computerName));
}
}
} // end foreach
} // end using
}
}
}
catch (CimException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ internal void WriteContentObject(object content, long readCount, PathInfo pathIn
result.Properties.Add(note, true);

WriteObject(result);
} // WriteContentObject
}

/// <summary>
/// A cache of the notes that get added to the content items as they are written
Expand Down Expand Up @@ -325,8 +325,8 @@ public PSObject AttachNotes(PSObject content)
tracer.WriteLine("Attaching {0} = {1}", "PSProvider", Provider);

return content;
} // AttachNotes
} // ContentPathsCache
}
}

/// <summary>
/// A struct to hold the path information and the content readers/writers
Expand All @@ -347,14 +347,14 @@ internal ContentHolder(
PathInfo = pathInfo;
Reader = reader;
Writer = writer;
} // constructor
}

internal PathInfo PathInfo { get; }

internal IContentReader Reader { get; }

internal IContentWriter Writer { get; }
} // struct ContentHolder
}

/// <summary>
/// Closes the content readers and writers in the content holder array
Expand Down Expand Up @@ -442,7 +442,7 @@ internal void CloseContent(List<ContentHolder> contentHolders, bool disposing)
}
}
}
} // CloseContent
}

/// <summary>
/// Overridden by derived classes to support ShouldProcess with
Expand Down Expand Up @@ -539,10 +539,10 @@ internal List<ContentHolder> GetContentReaders(
results.Add(holder);
}
}
} // foreach pathInfo in pathInfos
}

return results;
} // GetContentReaders
}

/// <summary>
/// Resolves the specified paths to PathInfo objects
Expand Down Expand Up @@ -677,7 +677,7 @@ internal Collection<PathInfo> ResolvePaths(
}

return results;
} // ResolvePaths
}

#endregion protected members

Expand Down Expand Up @@ -710,5 +710,5 @@ public void Dispose()
}
#endregion IDisposable

} // ContentCommandBase
} // namespace Microsoft.PowerShell.Commands
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ public string[] Path
get
{
return _paths;
} // get
}

set
{
_paths = value;
} // set
} // Path
}
}

/// <summary>
/// Gets or sets the literal path parameter to the command
Expand All @@ -47,14 +47,14 @@ public string[] LiteralPath
get
{
return _paths;
} // get
}

set
{
base.SuppressWildcardExpansion = true;
_paths = value;
} // set
} // LiteralPath
}
}

#endregion Parameters

Expand Down Expand Up @@ -122,9 +122,9 @@ protected override void ProcessRecord()
continue;
}
}
} // ProcessRecord
}
#endregion Command code

} // ConvertPathCommand
} // namespace Microsoft.PowerShell.Commands
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal override object GetDynamicParameters(CmdletProviderContext context)
Destination,
Name,
context);
} // GetDynamicParameters
}

#endregion Parameters

Expand Down Expand Up @@ -143,8 +143,8 @@ protected override void ProcessRecord()
continue;
}
}
} // ProcessRecord
}
#endregion Command code

} // CopyItemPropertyCommand
} // namespace Microsoft.PowerShell.Commands
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ protected override void BeginProcessing()
}
}
}
} // ProcessRecord
}
#endregion Overrides

#region Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ public string[] LiteralPath
get
{
return _paths;
} // get
}

set
{
base.SuppressWildcardExpansion = true;
_paths = value;
} // set
} // LiteralPath
}
}

/// <summary>
/// Gets or sets the filter property
Expand All @@ -91,13 +91,13 @@ public override string[] Include
get
{
return base.Include;
} // get
}

set
{
base.Include = value;
} // set
} // Include
}
}

/// <summary>
/// Gets or sets the exclude property
Expand All @@ -108,13 +108,13 @@ public override string[] Exclude
get
{
return base.Exclude;
} // get
}

set
{
base.Exclude = value;
} // set
} // Exclude
}
}

/// <summary>
/// Gets or sets the recurse switch
Expand Down Expand Up @@ -176,7 +176,7 @@ public override SwitchParameter Force
{
base.Force = value;
}
} // Force
}

/// <summary>
/// Gets or sets the names switch
Expand Down Expand Up @@ -239,7 +239,7 @@ internal override object GetDynamicParameters(CmdletProviderContext context)
break;
}
return result;
} // GetDynamicParameters
}

#endregion Command parameters

Expand Down Expand Up @@ -351,9 +351,9 @@ protected override void ProcessRecord()
break;
}
}
} // ProcessRecord
}

#endregion command code
} // class GetChildrenCommand
} // namespace Microsoft.PowerShell.Commands
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ protected override void ProcessRecord()
systemInfo.networkAdapters = GetNetworkAdapters(session);

UpdateProgress(null); // close the progress bar
} // end of using(CimSession...)
}

var infoOutput = CreateFullOutputObject(systemInfo, osInfo, miscInfo);

Expand Down
Loading