From 3aa8d26fe59aeea616bda89ca325b9f9583fadc6 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 8 Jan 2018 18:19:37 +0200 Subject: Added code comments for: Integration. Refactored ExternalBridgeClient to: IExternalBridgeSecureClient. ExternalBridgeTcpClient. ExternalBridgeUsbClient. Refactored MachineConnectionView to use the new external bridge clients by data template "data type". --- .../IExternalBridgeClientExtensions.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Software/Visual_Studio/Tango.Integration/ExtensionMethods/IExternalBridgeClientExtensions.cs (limited to 'Software/Visual_Studio/Tango.Integration/ExtensionMethods') diff --git a/Software/Visual_Studio/Tango.Integration/ExtensionMethods/IExternalBridgeClientExtensions.cs b/Software/Visual_Studio/Tango.Integration/ExtensionMethods/IExternalBridgeClientExtensions.cs new file mode 100644 index 000000000..62a7c1523 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/ExtensionMethods/IExternalBridgeClientExtensions.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Services; + +/// +/// Contains extension methods. +/// +public static class IExternalBridgeClientExtensions +{ + /// + /// Casts the external bridge client to the specified type T. + /// + /// + /// The client. + /// + public static T As(this IExternalBridgeClient client) where T : IExternalBridgeClient + { + return (T)client; + } +} -- cgit v1.3.1