Table of Contents

Interface ISemanticContextContributor<TContext, TFlags>

Namespace
RDCore.SDK.Semantics.Builders
Assembly
RDCore.SDK.dll

A service that can contribute all elements of a semantic context, but not build it.

public interface ISemanticContextContributor<TContext, TFlags> : ISemanticFlagsAccumulator<TFlags> where TContext : SemanticContext<TFlags>, new() where TFlags : struct, Enum

Type Parameters

TContext

The specific type of SemanticContext to build.

TFlags

The type of semantic flags being accumulated.

Inherited Members

Methods

AddFlags(TFlags)

Adds the specified semantic flag(s) to the context.

ISemanticContextContributor<TContext, TFlags> AddFlags(TFlags flags)

Parameters

flags TFlags

The semantic flag values.

Returns

ISemanticContextContributor<TContext, TFlags>

AddOnError<TError>(TError?)

Adds the specified error to the semantic context if it isn't null.

ISemanticContextContributor<TContext, TFlags> AddOnError<TError>(TError? error) where TError : VBErrorInfo

Parameters

error TError

Holds information about an error.

Returns

ISemanticContextContributor<TContext, TFlags>

Type Parameters

TError

The specific type of VBErrorInfo encapsulating the error metadata.