Skip to main content

DefaultWebDocumentViewerContainer.RegisterSingleton<T, TImpl>() Method

Enables registering a custom service in a Web Document Viewer.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v24.1.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

public static void RegisterSingleton<T, TImpl>()
    where TImpl : T

Type Parameters

Name Description
T

A service implementation type. typeParameters:

TImpl

The type of the service to register.

Remarks

For a code example, see the WebDocumentViewerOperationLogger class description.

See Register Services in the Document Viewer for a complete list of available services and their registration methods.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RegisterSingleton<T, TImpl>() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also