IJsonLoadObserver.OnBeforeLoadToken<T> Method

Definition

Notifies IConverterObserver instances before type-loading a Newtonsoft.Json.Linq.JToken.

public bool OnBeforeLoadToken<T> (Microsoft.Bot.Builder.Dialogs.Debugging.SourceContext context, Microsoft.Bot.Builder.Dialogs.Debugging.SourceRange range, Newtonsoft.Json.Linq.JToken token, out T result) where T : class;
abstract member OnBeforeLoadToken : Microsoft.Bot.Builder.Dialogs.Debugging.SourceContext * Microsoft.Bot.Builder.Dialogs.Debugging.SourceRange * Newtonsoft.Json.Linq.JToken * 'T -> bool (requires 'T : null)
Public Function OnBeforeLoadToken(Of T As Class) (context As SourceContext, range As SourceRange, token As JToken, ByRef result As T) As Boolean

Type Parameters

T

Type of the concrete object to be built.

Parameters

context
SourceContext

Source scope.

range
SourceRange

Source range.

token
Newtonsoft.Json.Linq.JToken

Token to be used to build the object.

result
T

Output parameter for observer to provide its result to the converter.

Returns

True if the observer provides a result and False if not.

Applies to