• Home
  • Blog
  • Docs
  • GitHub
Show / Hide Table of Contents

Class GameScrapeContext

Inheritance
System.Object
GameScrapeContext
Implements
IScrapeContext
System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IEnumerable<ISeed>>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Scraping
Assembly: Snowflake.Framework.dll
Syntax
public class GameScrapeContext : IScrapeContext, IAsyncEnumerable<IEnumerable<ISeed>>

Constructors

GameScrapeContext(IGame, IEnumerable<IScraper>, IEnumerable<ICuller>)

Declaration
public GameScrapeContext(IGame game, IEnumerable<IScraper> scrapers, IEnumerable<ICuller> cullers)
Parameters
Type Name Description
IGame game
System.Collections.Generic.IEnumerable<IScraper> scrapers
System.Collections.Generic.IEnumerable<ICuller> cullers

GameScrapeContext(IEnumerable<IScraper>, IEnumerable<ICuller>)

Declaration
public GameScrapeContext(IEnumerable<IScraper> scrapers, IEnumerable<ICuller> cullers)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IScraper> scrapers
System.Collections.Generic.IEnumerable<ICuller> cullers

Properties

Context

Declaration
public ISeedRootContext Context { get; }
Property Value
Type Description
ISeedRootContext

Cullers

Declaration
public IEnumerable<ICuller> Cullers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ICuller>

Scrapers

Declaration
public IEnumerable<IScraper> Scrapers { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IScraper>

Methods

Cull()

Declaration
public void Cull()

Cull(IEnumerable<Guid>)

Declaration
public void Cull(IEnumerable<Guid> manualCull)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Guid> manualCull

GetAsyncEnumerator(CancellationToken)

Declaration
public IAsyncEnumerator<IEnumerable<ISeed>> GetAsyncEnumerator(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Collections.Generic.IAsyncEnumerator<System.Collections.Generic.IEnumerable<ISeed>>

GetAwaiter()

Declaration
public ConfiguredTaskAwaitable<IEnumerable<ISeed>>.ConfiguredTaskAwaiter GetAwaiter()
Returns
Type Description
System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter<>

Proceed(IEnumerable<SeedContent>, CancellationToken)

Declaration
public ValueTask<bool> Proceed(IEnumerable<SeedContent> seedsToAdd, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<SeedContent> seedsToAdd
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.ValueTask<System.Boolean>

Proceed(CancellationToken)

Declaration
public ValueTask<bool> Proceed(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.ValueTask<System.Boolean>

Implements

IScrapeContext
System.Collections.Generic.IAsyncEnumerable<T>
Built with ❤️ by @chyyran. Text content licensed under CC-BY-SA 4.0.