Start using PairSockets for two-way debug communication

This commit is contained in:
Yoshi Askharoun
2023-05-29 20:19:31 -05:00
parent a61e1e63a9
commit d01235e3f4
3 changed files with 35 additions and 21 deletions
+15
View File
@@ -0,0 +1,15 @@
using System.Runtime.Serialization;
namespace Microsoft.Iris.Debug;
/// <summary>
/// Provides helpers for things that are common between debug clients, servers, and transports.
/// </summary>
public static class DebugRemoting
{
public const string DEFAULT_TCP_CLIENT_URI = ">tcp://127.0.0.1:5555,@tcp://127.0.0.1:55556";
public const string DEFAULT_TCP_SERVER_URI = "@tcp://127.0.0.1:5555,>tcp://127.0.0.1:55556";
internal static IFormatter CreateBsonFormatter() => new BsonFormatter(new StreamingContext(StreamingContextStates.Remoting));
}