Fix serialization tests & don't block thread (#846)

* Fix serialization tests & don't block thread
- Fixed potential null ref when closing streams
- Always clean up serialization queue if an error occurs
- Stop blocking dispatcher thread by not awaiting task that processes the message
- Improved error logging in EventFlowValidator to help debug issues
- Close stream on exception
This commit is contained in:
Kevin Cunnane
2019-08-09 09:48:57 -07:00
committed by GitHub
parent 4fe02a6885
commit d42e3626cb
4 changed files with 84 additions and 55 deletions

View File

@@ -20,5 +20,10 @@ namespace Microsoft.SqlTools.Hosting.Contracts
/// Error message
/// </summary>
public string Message { get; set; }
public override string ToString()
{
return $"Error(Code={Code},Message='{Message}')";
}
}
}