Document Config

This commit is contained in:
Cyberboss
2017-10-20 19:40:31 -04:00
parent 9c2d7cf9cd
commit ffdaf431be
2 changed files with 10 additions and 3 deletions
+7
View File
@@ -9,6 +9,9 @@ namespace TGServerService
//knobs and such
sealed partial class ServerInstance : ITGConfig
{
/// <summary>
/// Used for multithreading safety
/// </summary>
object configLock = new object(); //for atomic reads/writes
/// <inheritdoc />
public string ServerDirectory()
@@ -100,6 +103,8 @@ namespace TGServerService
return null;
}
}
/// <inheritdoc />
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public string WriteText(string staticRelativePath, string data, out bool unauthorized)
{
@@ -151,6 +156,7 @@ namespace TGServerService
return e.ToString();
}
}
/// <inheritdoc />
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public string DeleteFile(string staticRelativePath, out bool unauthorized)
{
@@ -205,6 +211,7 @@ namespace TGServerService
}
}
/// <inheritdoc />
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public IList<string> ListStaticDirectory(string subDir, out string error, out bool unauthorized)
{
@@ -5,12 +5,12 @@ using TGServiceInterface.Components;
namespace TGServerService
{
//I know the fact that this is one massive partial class is gonna trigger everyone
//There really was no other succinct way to do it
//There really was no other succinct way to do it (<= He's lying through his teeth, don't listen to him)
//this line basically says make one instance of the service, use it multithreaded for requests, and never delete it
//this line basically says take one instance of the service, use it multithreaded for requests, and never delete it
/// <summary>
/// The class which holds all interface components
/// 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, ITGSService, ITGConnectivity