-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Event based communication over sockets. (#1294)
* Update test request sender to use socket server and client (remove old implementation). Update test request handler to use the new socket implementation. * Added few tests for test request handler. * Pushing changes. * Refactoring test code. * Added some more tests. * Fixed tests. * removed unused method. * Addressed some PR comments. * fixed some PR comments. * Addressed PR Comments. * Fixed PR comments. * Trying to check if unit tests will pass in CI. * handling testhost manager factory sync. * Fixing inconsistent tests. * minor update * add service guid
- Loading branch information
1 parent
1ad6c24
commit a89c524
Showing
36 changed files
with
2,176 additions
and
2,641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
src/Microsoft.TestPlatform.Common/Interfaces/Communication/ICommunicationClient.cs
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
src/Microsoft.TestPlatform.Common/Interfaces/Communication/ICommunicationServer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
src/Microsoft.TestPlatform.CommunicationUtilities/Interfaces/ICommunicationEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.Interfaces | ||
{ | ||
using System; | ||
|
||
public interface ICommunicationEndPoint | ||
{ | ||
/// <summary> | ||
/// Event raised when an endPoint is connected. | ||
/// </summary> | ||
event EventHandler<ConnectedEventArgs> Connected; | ||
|
||
/// <summary> | ||
/// Event raised when an endPoint is disconnected. | ||
/// </summary> | ||
event EventHandler<DisconnectedEventArgs> Disconnected; | ||
|
||
/// <summary> | ||
/// Starts the endPoint and channel. | ||
/// </summary> | ||
/// <param name="endPoint">Address to connect</param> | ||
/// <returns>Address of the connected endPoint</returns> | ||
string Start(string endPoint); | ||
|
||
/// <summary> | ||
/// Stops the endPoint and closes the underlying communication channel. | ||
/// </summary> | ||
void Stop(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.