TX Text Control .NET Server

ServicePort Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

Description

Gets or sets the Port at which the websocket handler tries to connect to the Service. Important: setting this property affects all instances of class Web.TextControl. It was not made static so it shows up in the Visual Studio designer.

Syntax

public int ServicePort { get; set; }

Examples

ServicePort belonged to the older server-control surface. In the current ASP.NET Core integration, use TextControlSettings.WebSocketURL for the corresponding editor configuration.

textControlSettings.WebSocketURL = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.WebSocketURL))
{
    Console.WriteLine($"Web Socket URL: {textControlSettings.WebSocketURL}");
}