Class ScreenshotterBuilder
A class for configuring screenshot-related services
Inheritance
System.Object
ScreenshotterBuilder
Namespace: Scraper.Net.Screenshot
Assembly: Scraper.Net.Screenshot.dll
Syntax
public class ScreenshotterBuilder : object
Constructors
| Improve this Doc View SourceScreenshotterBuilder(IServiceCollection)
Declaration
public ScreenshotterBuilder(IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services |
Properties
| Improve this Doc View SourceServices
Declaration
public IServiceCollection Services { get; }
Property Value
Type | Description |
---|---|
IServiceCollection |
Methods
| Improve this Doc View SourceAddScreenshotter(Func<IServiceProvider, (IPlatformScreenshotter, String)>)
Adds a singleton service of the type IPlatformScreenshotter and string platform using a
factory specified in factory
to the
specified IServiceCollection
Declaration
public ScreenshotterBuilder AddScreenshotter(Func<IServiceProvider, (IPlatformScreenshotter, string)> factory)
Parameters
Type | Name | Description |
---|---|---|
Func<IServiceProvider, System.ValueTuple<IPlatformScreenshotter, System.String>> | factory | The factory that creates the service |
Returns
Type | Description |
---|---|
ScreenshotterBuilder | A reference to this instance after the operation has completed |