mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Cleans up TextPrompt()
This commit is contained in:
@@ -57,7 +57,9 @@ namespace TGControlPanel
|
||||
Height = 150,
|
||||
FormBorderStyle = FormBorderStyle.FixedDialog,
|
||||
Text = caption,
|
||||
StartPosition = FormStartPosition.CenterScreen
|
||||
StartPosition = FormStartPosition.CenterScreen,
|
||||
MaximizeBox = false,
|
||||
MinimizeBox = false,
|
||||
};
|
||||
Label textLabel = new Label() { Left = 50, Top = 20, Text = text, AutoSize = true };
|
||||
TextBox textBox = new TextBox() { Left = 50, Top = 50, Width = 400 };
|
||||
|
||||
@@ -230,7 +230,7 @@ namespace TGServerService
|
||||
/// </summary>
|
||||
void SetupService()
|
||||
{
|
||||
serviceHost = CreateHost(this, Interface.ServiceInterfaceName);
|
||||
serviceHost = CreateHost(this, Interface.MasterInterfaceName);
|
||||
AddEndpoint(serviceHost, typeof(ITGSService));
|
||||
AddEndpoint(serviceHost, typeof(ITGConnectivity));
|
||||
serviceHost.Authorization.ServiceAuthorizationManager = new AdministrativeAuthorizationManager(); //only admins can diddle us
|
||||
|
||||
@@ -34,11 +34,7 @@ namespace TGServiceInterface
|
||||
/// <summary>
|
||||
/// Base name of communication URLs
|
||||
/// </summary>
|
||||
const string MasterInterfaceName = "TGStationServerService";
|
||||
/// <summary>
|
||||
/// Base name of the root service URLs
|
||||
/// </summary>
|
||||
public const string ServiceInterfaceName = MasterInterfaceName + "/Service";
|
||||
public const string MasterInterfaceName = "TGStationServerService";
|
||||
/// <summary>
|
||||
/// Base name of instance URLs
|
||||
/// </summary>
|
||||
@@ -323,7 +319,7 @@ namespace TGServiceInterface
|
||||
/// <exception cref="Exception">Thrown if <typeparamref name="T"/> isn't a valid component <see langword="interface"/></exception>
|
||||
ChannelFactory<T> CreateChannel<T>(string instanceName)
|
||||
{
|
||||
var accessPath = instanceName == null ? ServiceInterfaceName : String.Format("{0}/{1}", InstanceInterfaceName, instanceName);
|
||||
var accessPath = instanceName == null ? MasterInterfaceName : String.Format("{0}/{1}", InstanceInterfaceName, instanceName);
|
||||
|
||||
var InterfaceName = typeof(T).Name;
|
||||
if (HTTPSURL == null)
|
||||
|
||||
Reference in New Issue
Block a user