Class ReportResolverBase
Abstract base class for report resolvers that provides a fallback mechanism for resolving report sources.
Inheritance
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
Remarks
This class is obsolete. Please use the ReportSourceResolverBase class instead. Provides a framework for implementing custom report resolution logic with support for chaining multiple resolvers. Derived classes must implement the ResolveReport method to provide the core resolution functionality.
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
|
IReportResolver
fallbackResolver
The fallback resolver to use when the primary resolution fails. Cannot be null. |
Returns
|
ReportResolverBase
The current ReportResolverBase instance to allow method chaining. |
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.
Exceptions
|
System.Exception
Thrown when a fallback resolver has already been specified for this instance. |
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
|
System.String
report
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.
Explicit Interface Implementations
IReportResolver.Resolve(String)
Creates a ReportSource instance based on the provided string representation of a report.
Declaration
ReportSource IReportResolver.Resolve(string report)
Parameters
|
System.String
report
The string representation of the report to resolve. The format depends on the specific resolver implementation. |
Returns
|
ReportSource
A ReportSource instance representing the resolved report, or null if the report cannot be resolved. |
Implements
Remarks
This is the explicit interface implementation of IReportResolver.Resolve. The actual resolution logic is delegated to the internal Resolve method which handles fallback resolution.