TXSheetControlAssetExtensions.UseTXSheetControlAssets Method
- Namespace
TXTextControl.TXSheetControl. AspNetCore
- Package
TXTextControl.asTXSheetControl. AspNetCore TXTextControl.from the private NuGet feed or the supplied NuGet folderTXSheetControl. AspNetCore. dll
Rejects private/debugging paths before static-file or static-web-asset endpoint middleware executes.
Syntax
public static IApplicationBuilder UseTXSheetControlAssets(IApplicationBuilder application)
Parameters
| Parameter | Type | Optional | Description |
|---|---|---|---|
application | IApplicationBuilder | No | The application pipeline; call this before UseStaticFiles or MapStaticAssets. |
Return Value
IApplicationBuilder. The same builder for continued application setup.
Examples
Configure a complete Razor Pages application. The editor tag helper includes its browser assets automatically; the optional font routes provide compatibility URLs for the bundled static catalog.
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using TXTextControl.TXSheetControl.AspNetCore;
var builder = WebApplication.CreateBuilder(Array.Empty<string>());
builder.Services.AddRazorPages();
var app = builder.Build();
app.UseTXSheetControlAssets();
app.MapRazorPages();
app.Run();
Remarks
Other application paths and the separately validated runtime font endpoints remain unaffected.
Use the member with an instance or settings object from the documented package. Await task-returning operations. Document-bound handles must be resolved again after loading or deleting their owner.