Skip to content

Commit

Permalink
Comment dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoseley committed Jul 12, 2020
1 parent 0f770d5 commit c87e75e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ internal static bool ValidServiceName(string serviceName)
/// <devdoc>
/// <para>Disposes of the resources (other than memory ) used by
/// the <see cref='System.ServiceProcess.ServiceBase'/>.</para>
/// This is called from <see cref="Run(ServiceBase[])"/> when all
/// services in the process have entered the SERVICE_STOPPED state.
/// </devdoc>
protected override void Dispose(bool disposing)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ public async Task WriteStreamAsync(PipeMessageByteCode code, int command = 0)
}
}

/// <summary>
/// This is called from <see cref="ServiceBase.Run(ServiceBase[])"/> when all services in the process
/// have entered the SERVICE_STOPPED state. It disposes the named pipe stream.
/// </summary>
protected override void Dispose(bool disposing)
{
if (!_disposed)
Expand Down

0 comments on commit c87e75e

Please sign in to comment.