aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-14 15:24:49 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-14 15:24:49 +0200
commita20fd4bd769aeccd1fd1f20273f895c92a5b5bb8 (patch)
tree15f2dc0d4629dfd17b2e44ca3732d549fed27751 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication
parent04db84896f75bb761e8b3d482b4cb0f82c08d96e (diff)
downloadTango-a20fd4bd769aeccd1fd1f20273f895c92a5b5bb8.tar.gz
Tango-a20fd4bd769aeccd1fd1f20273f895c92a5b5bb8.zip
Added code comments for:
MachineStudio.Common.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IShutdownRequestBlocker.cs8
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs22
2 files changed, 30 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IShutdownRequestBlocker.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IShutdownRequestBlocker.cs
index a157bd598..4d5f968a4 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IShutdownRequestBlocker.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IShutdownRequestBlocker.cs
@@ -6,8 +6,16 @@ using System.Threading.Tasks;
namespace Tango.MachineStudio.Common.StudioApplication
{
+ /// <summary>
+ /// Represents a component capable of receiving notification for when the Machine Studio shuts down.
+ /// The component can perform it's own shutdown operations, or cancel the current shutdown operation.
+ /// </summary>
public interface IShutdownRequestBlocker
{
+ /// <summary>
+ /// Called when the application is shutting down.
+ /// </summary>
+ /// <returns></returns>
Task<bool> OnShutdownRequest();
}
}
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs
index 42f4f7b65..dfdac67c7 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioApplication/IStudioApplicationManager.cs
@@ -7,12 +7,34 @@ using Tango.Integration.Services;
namespace Tango.MachineStudio.Common.StudioApplication
{
+ /// <summary>
+ /// Represents the Machine Studio application manager.
+ /// </summary>
public interface IStudioApplicationManager
{
+ /// <summary>
+ /// Gets a value indicating whether Machine Studio is shutting down.
+ /// </summary>
bool IsShuttingDown { get;}
+
+ /// <summary>
+ /// Shutdown the application.
+ /// </summary>
void ShutDown();
+
+ /// <summary>
+ /// Gets or sets the currently connected machine if any.
+ /// </summary>
IExternalBridgeClient ConnectedMachine { get; set; }
+
+ /// <summary>
+ /// Gets a value indicating whether the <see cref="ConnectedMachine"/> is valid.
+ /// </summary>
bool IsMachineConnected { get; }
+
+ /// <summary>
+ /// Gets a value indicating whether the <see cref="ConnectedMachine"/> is valid and connected through TCP/IP.
+ /// </summary>
bool IsMachineConnectedViaTCP { get; }
}
}