ServicePort Property
- Namespace
TXTextControl.Web. MVC
- Package
TXTextControl.asWeb TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. DocumentEditor. 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 TextControlSettings.
Syntax
Only for .NET Framework 4.5.
public int ServicePort { get; set; }Public Property ServicePort As IntegerExamples
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}");
}textControlSettings.WebSocketURL = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.WebSocketURL) Then
Console.WriteLine($"Web Socket URL: {textControlSettings.WebSocketURL}")
End If