ClassReportResolverBase
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:
[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:
Implements:
Constructors
ReportResolverBase()
Initializes a new instance of the ReportResolverBase class with no fallback resolver.
Declaration
protected ReportResolverBase()
Remarks
This constructor creates a resolver instance without any fallback mechanism. Use AddFallbackResolver to add fallback resolution capability.
Methods
AddFallbackResolver(IReportResolver)
Adds a fallback resolver that will be used if the current resolver fails to resolve a report.
Declaration
public ReportResolverBase AddFallbackResolver(IReportResolver fallbackResolver)
Parameters
fallbackResolver
The fallback resolver to use when the primary resolution fails. Cannot be null.
Returns
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.
ResolveReport(string)
When overridden in a derived class, creates a ReportSource instance based on the provided string representation.
Declaration
protected abstract ReportSource ResolveReport(string report)
Parameters
report
string
The string representation of the report to resolve. The expected format is defined by the implementing class.
Returns
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.