TX Text Control .NET Server

ServiceAddress Property

Property|Introduced in 23.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the IP address at which the websocket handler tries to connect to the Service. The default value is 127.0.0.1 (the local computer). Important: setting this property affects all instances of class TextControlSettings.

Syntax

Only for .NET Framework 4.5.

public IPAddress ServiceAddress { get; set; }

Examples

ServiceAddress 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}");
}