UseTXDocumentViewer Method
- Namespace
TXTextControl.Web. MVC. DocumentViewer
- Package
TXTextControl.asWeb. DocumentViewer TXTextControl.from nuget.org, the private NuGet feed or Text Control Offline PackagesWeb. MVC. DocumentViewer. dll
- Also in
TXTextControl.asWeb. DocumentViewer. Classic 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);<Extension>
Public Sub UseTXDocumentViewer(app As IApplicationBuilder)Parameters
| Parameter | Description |
|---|---|
| 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.