Class SeedBuilder
Provides helper methods for building Seed
Enables use of underscore methods for "SeedBuilder syntax". Import this class with a
using static
directive.
_(Seed
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 |
---|---|---|
Seed |
children | The list of seed results to return |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Seed |
children | The list of seed results to return |
Returns
Type | Description |
---|---|
System. |
The nested portion of a seed tree result. |