IJsonSchemaResultsCollector.CommitChildContext Method
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| CommitChildContext(int, bool, bool, JsonSchemaMessageProvider) | Commits the last child context. |
| CommitChildContext(int, bool, bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>) | Commits the last child context. |
CommitChildContext(int, bool, bool, JsonSchemaMessageProvider)
Source: IJsonSchemaResultsCollector.cs
Commits the last child context.
public abstract void CommitChildContext(int sequenceNumber, bool parentIsMatch, bool childIsMatch, JsonSchemaMessageProvider messageProvider)
Parameters
| Name | Type | Description |
|---|---|---|
sequenceNumber |
int |
The sequence number of the child context to commit. |
parentIsMatch |
bool |
If true then the parent commit indicates a successful match. |
childIsMatch |
bool |
If true then the commit indicates that the child produced a successful match. |
messageProvider |
JsonSchemaMessageProvider |
The (optional) provider for a JSON validation message. |
Remarks
This allows the collector to update the match state, and commit any resources associated with the child context.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
CommitChildContext(int, bool, bool, TProviderContext, JsonSchemaMessageProvider<TProviderContext>)
Source: IJsonSchemaResultsCollector.cs
Commits the last child context.
public abstract void CommitChildContext<TProviderContext>(int sequenceNumber, bool parentIsMatch, bool childIsMatch, TProviderContext providerContext, JsonSchemaMessageProvider<TProviderContext> messageProvider)
Parameters
| Name | Type | Description |
|---|---|---|
sequenceNumber |
int |
The sequence number of the child context to commit. |
parentIsMatch |
bool |
If true then the parent commit indicates a successful match. |
childIsMatch |
bool |
If true then the commit indicates that the child produced a successful match. |
providerContext |
TProviderContext |
The context to provide to the message provider. |
messageProvider |
JsonSchemaMessageProvider<TProviderContext> |
The (optional) provider for a JSON schema evaluation message. |
Remarks
This allows the collector to update the match state, and commit any resources associated with the child context.
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue