Class ServiceCollectionExtensions
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: Scraper.Net
Assembly: Scraper.Net.dll
Syntax
public static class ServiceCollectionExtensions : object
Methods
| Improve this Doc View SourceAddScraper(IServiceCollection, Action<ScraperBuilder>)
Adds a singleton service of the type IScraperService using a factory of scraper-related services
specified in builderAction
to the
specified IServiceCollection
Declaration
public static IServiceCollection AddScraper(this IServiceCollection services, Action<ScraperBuilder> builderAction)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | This service collection |
Action<ScraperBuilder> | builderAction | Scraper-related services factory |
Returns
Type | Description |
---|---|
IServiceCollection | A reference to this instance after the operation has completed |