Show / Hide Table of Contents

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 Source

ScreenshotterBuilder(IServiceCollection)

Declaration
public ScreenshotterBuilder(IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services

Properties

| Improve this Doc View Source

Services

Declaration
public IServiceCollection Services { get; }
Property Value
Type Description
IServiceCollection

Methods

| Improve this Doc View Source

AddScreenshotter(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

Extension Methods

ScreenshotterBuilderExtensions.AddTwitter(ScreenshotterBuilder, String)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX