New to Telerik ReportingStart a free 30-day trial

Abstract base class for report resolvers that provides a fallback mechanism for resolving report sources.

Definition

Namespace:Telerik.Reporting.Services.WebApi

Assembly:Telerik.Reporting.Services.WebApi.dll

Syntax:

C#
[Obsolete("The Telerik.Reporting.Services.WebApi.ReportResolverBase is now obsolete. Please use the Telerik.Reporting.Services.ReportSourceResolverBase class instead.")]
public abstract class ReportResolverBase : IReportResolver

Inheritance: objectReportResolverBase

Derived Classes: ReportFileResolverReportTypeResolver

Implements: IReportResolver

Constructors

Initializes a new instance of the ReportResolverBase class with no fallback resolver.

C#
protected ReportResolverBase()
Remarks:

This constructor creates a resolver instance without any fallback mechanism. Use AddFallbackResolver to add fallback resolution capability.

Methods

Adds a fallback resolver that will be used if the current resolver fails to resolve a report.

C#
public ReportResolverBase AddFallbackResolver(IReportResolver fallbackResolver)
Parameters:fallbackResolverIReportResolver

The fallback resolver to use when the primary resolution fails. Cannot be null.

Returns:

ReportResolverBase

The current ReportResolverBase instance to allow method chaining.

Exceptions:

Exception

Thrown when a fallback resolver has already been specified for this instance.

Remarks:

Only one fallback resolver can be specified per resolver instance. The fallback resolver will be invoked only if the primary ResolveReport method returns null.

When overridden in a derived class, creates a ReportSource instance based on the provided string representation.

C#
protected abstract ReportSource ResolveReport(string report)
Parameters:reportstring

The string representation of the report to resolve. The expected format is defined by the implementing class.

Returns:

ReportSource

A ReportSource instance if the report can be resolved; otherwise, null to indicate resolution failure.

Remarks:

Override this method in derived classes to implement the core report resolution functionality. Return null if the report cannot be resolved to allow fallback resolution to be attempted. This method should not throw exceptions for resolution failures; instead, return null.