Class ServiceCollectionExtensions
- Namespace
- NuvTools.Report.Sheet.Extensions
- Assembly
- NuvTools.Report.Sheet.dll
Provides extension methods for registering report services in the dependency injection container.
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddSheetReportServices(IServiceCollection)
Registers sheet report readers and exporters (ICsvReader, ICsvExporter, and IExcelExporter) as singleton services.
public static IServiceCollection AddSheetReportServices(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe IServiceCollection to add the services to.
Returns
- IServiceCollection
The updated IServiceCollection instance, enabling method chaining.