Class SeedBuilder
Provides helper methods for building SeedTree for use in IScraper implementations.
Enables use of underscore methods for "SeedBuilder syntax". Import this class with a
using static directive.
_(SeedTree[]) to continue for nested seeds.
Remember that top-level seeds can be System.Threading.Tasks.Task<TResult> and other awaitables.
Inheritance
System.Object
SeedBuilder
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.Extensibility
Assembly: Snowflake.Framework.dll
Syntax
public static class SeedBuilder
Methods
_(SeedTree[])
Continues a seed tree result with multiple nested seeds.
Declaration
public static IEnumerable<SeedTree> _(params SeedTree[] children)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree[] | children | The list of seed results to return |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<SeedTree> | The nested portion of a seed tree result. |
WithSeeds(SeedTree[])
Continues a seed tree result with a list of nested results. Nested seeds can not be awaitable, but can be returned from an asynchronous context. Use Seed Builder Syntax rather than the full call.
Declaration
public static IEnumerable<SeedTree> WithSeeds(params SeedTree[] children)
Parameters
| Type | Name | Description |
|---|---|---|
| SeedTree[] | children | The list of seed results to return |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<SeedTree> | The nested portion of a seed tree result. |