aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/ExternalBridge
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-21 23:12:02 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-21 23:12:02 +0200
commit2849e302580b45c40fadccc6c2473c4c938921d0 (patch)
tree26be58ad305db61a538fd5213f090f18c2b184a0 /Software/Visual_Studio/Tango.Integration/ExternalBridge
parenta0820b3cde386b4b59c2eb3141493b5e02277485 (diff)
downloadTango-2849e302580b45c40fadccc6c2473c4c938921d0.tar.gz
Tango-2849e302580b45c40fadccc6c2473c4c938921d0.zip
Implemented all types of connections on FSE...
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/ExternalBridge')
-rw-r--r--Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
index 0b596e07d..28ebc5341 100644
--- a/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
+++ b/Software/Visual_Studio/Tango.Integration/ExternalBridge/ExternalBridgeTcpClient.cs
@@ -77,11 +77,26 @@ namespace Tango.Integration.ExternalBridge
/// </summary>
public bool RequiresAuthentication => true;
+ /// <summary>
+ /// Gets or sets the login request message when using <see cref="Connect"/>.
+ /// </summary>
+ public ExternalBridgeLoginRequest LoginRequest { get; set; }
+
#endregion
+ /// <summary>
+ /// Connects to a remote external bridge service using the specified <see cref="LoginRequest"/>.
+ /// </summary>
+ /// <param name="login">The login.</param>
+ /// <returns></returns>
+ /// <exception cref="AuthenticationException">The machine password is invalid.</exception>
public override Task Connect()
{
- throw new NotImplementedException("External Bridge TCP client must connect through the dedicated connect method.");
+ if (LoginRequest == null)
+ {
+ throw new InvalidOperationException("No LoginRequest was not specified.");
+ }
+ return Connect(LoginRequest);
}
/// <summary>