WebControlsCoreExtensionsRunWebDocumentViewerMiddleware Method (IApplicationBuilder, WebDocumentViewerOptions, IWebDocumentViewerCallbacks) |
Adds a terminal WebDocumentViewerMiddleware with custom callbacks in the chain of middlewares.
Namespace:
Atalasoft.Imaging.WebControls.Core
Assembly:
Atalasoft.dotImage.WebControls.Core (in Atalasoft.dotImage.WebControls.Core.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public static IApplicationBuilder RunWebDocumentViewerMiddleware(
this IApplicationBuilder builder,
WebDocumentViewerOptions options,
IWebDocumentViewerCallbacks callbacks
)
<ExtensionAttribute>
Public Shared Function RunWebDocumentViewerMiddleware (
builder As IApplicationBuilder,
options As WebDocumentViewerOptions,
callbacks As IWebDocumentViewerCallbacks
) As IApplicationBuilder
Parameters
- builder
- Type: IApplicationBuilder
Current application builder instance. - options
- Type: Atalasoft.Imaging.WebControls.CoreWebDocumentViewerOptions
Web Document Viewer middleware options. - callbacks
- Type: Atalasoft.Imaging.WebControls.CoreIWebDocumentViewerCallbacks
Web Document Viewer middleware callbacks.
Return Value
Type:
IApplicationBuilderUpdated application
IApplicationBuilder instance.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IApplicationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also