ReportResolverBase
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
Initializes a new instance of the ReportResolverBase class with no fallback resolver.
protected ReportResolverBase()
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.
public ReportResolverBase AddFallbackResolver(IReportResolver 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.
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.
protected abstract ReportSource ResolveReport(string report)
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.
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.