From 4e1dbbb215875b80301c997286ed9ea44162a818 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 8 Dec 2017 11:28:07 -0500 Subject: [PATCH] Fix a few calls to the wrong GetComponent --- TGS.Interface/Wrappers/IServer.cs | 2 +- TGS.Interface/Wrappers/Server.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TGS.Interface/Wrappers/IServer.cs b/TGS.Interface/Wrappers/IServer.cs index ab7038ec34..130d622ca4 100644 --- a/TGS.Interface/Wrappers/IServer.cs +++ b/TGS.Interface/Wrappers/IServer.cs @@ -25,7 +25,7 @@ namespace TGS.Interface.Wrappers ITGInstanceManager InstanceManager { get; } /// - /// Gets the specified + /// Gets the specified without connectivity checks /// /// The name of the to get /// The named on success, on failure diff --git a/TGS.Interface/Wrappers/Server.cs b/TGS.Interface/Wrappers/Server.cs index c45b1f820c..9276c64e88 100644 --- a/TGS.Interface/Wrappers/Server.cs +++ b/TGS.Interface/Wrappers/Server.cs @@ -15,14 +15,14 @@ namespace TGS.Interface.Wrappers { lock (this) if(knownInstances == null) - knownInstances = serverInterface.GetComponent().ListInstances(); + knownInstances = serverInterface.GetComponent(null).ListInstances(); foreach(var I in knownInstances) yield return new Instance(serverInterface, I); } } /// - public ITGInstanceManager InstanceManager => serverInterface.GetComponent(); + public ITGInstanceManager InstanceManager => serverInterface.GetComponent(null); /// /// The backing @@ -52,37 +52,37 @@ namespace TGS.Interface.Wrappers /// public void PrepareForUpdate() { - serverInterface.GetComponent().PrepareForUpdate(); + serverInterface.GetComponent(null).PrepareForUpdate(); } /// public string PythonPath() { - return serverInterface.GetComponent().PythonPath(); + return serverInterface.GetComponent(null).PythonPath(); } /// public ushort RemoteAccessPort() { - return serverInterface.GetComponent().RemoteAccessPort(); + return serverInterface.GetComponent(null).RemoteAccessPort(); } /// public bool SetPythonPath(string path) { - return serverInterface.GetComponent().SetPythonPath(path); + return serverInterface.GetComponent(null).SetPythonPath(path); } /// public string SetRemoteAccessPort(ushort port) { - return serverInterface.GetComponent().SetRemoteAccessPort(port); + return serverInterface.GetComponent(null).SetRemoteAccessPort(port); } /// string ITGSService.Version() { - return serverInterface.GetComponent().Version(); + return serverInterface.GetComponent(null).Version(); } } }