Modify Interface to accept instance switching. Add ITGInstance

This commit is contained in:
Cyberboss
2017-10-31 13:14:28 -04:00
parent da7814e3d9
commit 8672a9d5c6
10 changed files with 102 additions and 19 deletions
@@ -15,7 +15,7 @@ namespace TGServerService
/// The class which holds all interface components. There are no safeguards for call race conditions so these must be guarded against internally
/// </summary>
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.Single)]
sealed partial class ServerInstance : IDisposable, ITGConnectivity
sealed partial class ServerInstance : IDisposable, ITGConnectivity, ITGInstance
{
/// <summary>
/// Used to assign the instance to event IDs
@@ -120,6 +120,13 @@ namespace TGServerService
SendMessage("SERVICE: Update started...", MessageType.DeveloperInfo);
}
/// <inheritdoc />
public string ServerDirectory()
{
return Config.InstanceDirectory;
}
//mostly generated code with a call to RunDisposals()
//you don't need to open this
#region IDisposable Support