Skip to content

Commit 4236664

Browse files
committed
flush debug messages before dispose
1 parent a9f8dcc commit 4236664

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Common/Commands.Common/AzurePSCmdlet.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,11 @@ protected virtual void Dispose(bool disposing)
503503

504504
public void Dispose()
505505
{
506+
try
507+
{
508+
FlushDebugMessages();
509+
}
510+
catch (Exception) { }
506511
Dispose(true);
507512
GC.SuppressFinalize(this);
508513
}

0 commit comments

Comments
 (0)