Class DataSourceRouter
- Namespace
- ReportWright.Data
- Assembly
- ReportWright.Data.Abstractions.dll
The one DocWright.Reporting.Data.ReportDataProvider the engine sees. For each dataset it asks the host's DataSourceResolver what the report's data source is, dispatches to the registered DataSourceProvider of that kind, and wraps the reader in the guard that enforces the row cap, the deadline and cancellation. A source the host does not resolve goes to the fallback provider when there is one, else is refused — never guessed.
public sealed class DataSourceRouter : ReportDataProvider
- Inheritance
-
ReportDataProviderDataSourceRouter
- Inherited Members
Constructors
- DataSourceRouter(DataSourceResolver, DataSourceRegistry, DataSourceRouterOptions?, ReportDataProvider?)
Initializes a router.
Properties
- Options
Gets the limits.
Methods
- ProviderFor(ResolvedDataSource, string?)
Finds the provider for a resolved source.
- ReferenceOf(ReportDataQuery)
Builds the reference the resolver is asked about, from what the engine evaluated.