TX Text Control .NET Server

UseTXDocumentViewer Method

Method|Introduced in 34.5.0
Namespace
TXTextControl.Web.MVC.DocumentViewer
Package
TXTextControl.Web.DocumentViewer as TXTextControl.Web.MVC.DocumentViewer.dll from nuget.org, the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.Web.DocumentViewer.Classic as TXTextControl.Web.MVC.DocumentViewer.dll

Description

Maps the controller endpoints used by the Document Viewer.

Call this method after UseRouting in the ASP.NET Core request pipeline. Register viewer services with AddTXDocumentViewer to configure processing; otherwise the host uses default options.

Syntax

public static void UseTXDocumentViewer(this IApplicationBuilder app);

Parameters

ParameterDescription
app

The application builder.

Examples

Example usage.

public void Configure(IApplicationBuilder app) { app.UseRouting(); app.UseTXDocumentViewer(); }

Comments

Call this method after UseRouting in the ASP.NET Core request pipeline. Register viewer services with AddTXDocumentViewer to configure processing; otherwise the host uses default options.