Skip to content
Merged
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 @@ -13,7 +13,7 @@ namespace System.Management.Automation.Remoting
/// <summary>
/// Implements ServerRemoteSessionDataStructureHandler.
/// </summary>
internal class ClientRemoteSessionDSHandlerImpl : ClientRemoteSessionDataStructureHandler, IDisposable
internal sealed class ClientRemoteSessionDSHandlerImpl : ClientRemoteSessionDataStructureHandler, IDisposable
{
[TraceSourceAttribute("CRSDSHdlerImpl", "ClientRemoteSessionDSHandlerImpl")]
private static readonly PSTraceSource s_trace = PSTraceSource.GetTracer("CRSDSHdlerImpl", "ClientRemoteSessionDSHandlerImpl");
Expand Down Expand Up @@ -736,26 +736,14 @@ internal void ProcessNonSessionMessages(RemoteDataObject<PSObject> rcvdData)
#region IDisposable

/// <summary>
/// Public method for dispose.
/// Release all resources.
/// </summary>
public void Dispose()
{
Dispose(true);
_transportManager.Dispose();

GC.SuppressFinalize(this);
}

/// <summary>
/// Release all resources.
/// </summary>
/// <param name="disposing">If true, release all managed resources.</param>
protected void Dispose(bool disposing)
{
if (disposing)
{
_transportManager.Dispose();
}
}
}

#endregion IDisposable

Expand Down
Loading