confluent-kafka-dotnet
Show / Hide Table of Contents

Class RuleContext

A rule context.

Inheritance
object
RuleContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class RuleContext

Constructors

RuleContext(Schema, Schema, string, string, Headers, bool, RuleMode, Rule, int, IList<Rule>, FieldTransformer)

Declaration
public RuleContext(Schema source, Schema target, string subject, string topic, Headers headers, bool isKey, RuleMode ruleMode, Rule rule, int index, IList<Rule> rules, FieldTransformer fieldTransformer)
Parameters
Type Name Description
Schema source
Schema target
string subject
string topic
Headers headers
bool isKey
RuleMode ruleMode
Rule rule
int index
IList<Rule> rules
FieldTransformer fieldTransformer

Properties

CustomData

Declaration
public IDictionary<object, object> CustomData { get; }
Property Value
Type Description
IDictionary<object, object>

FieldTransformer

Declaration
public FieldTransformer FieldTransformer { get; set; }
Property Value
Type Description
FieldTransformer

Headers

Declaration
public Headers Headers { get; set; }
Property Value
Type Description
Headers

Index

Declaration
public int Index { get; set; }
Property Value
Type Description
int

IsKey

Declaration
public bool IsKey { get; set; }
Property Value
Type Description
bool

Rule

Declaration
public Rule Rule { get; set; }
Property Value
Type Description
Rule

RuleMode

Declaration
public RuleMode RuleMode { get; set; }
Property Value
Type Description
RuleMode

Rules

Declaration
public IList<Rule> Rules { get; set; }
Property Value
Type Description
IList<Rule>

Source

Declaration
public Schema Source { get; set; }
Property Value
Type Description
Schema

Subject

Declaration
public string Subject { get; set; }
Property Value
Type Description
string

Target

Declaration
public Schema Target { get; set; }
Property Value
Type Description
Schema

Topic

Declaration
public string Topic { get; set; }
Property Value
Type Description
string

Methods

CurrentField()

Declaration
public RuleContext.FieldContext CurrentField()
Returns
Type Description
RuleContext.FieldContext

EnterField(object, string, string, Type, ISet<string>)

Declaration
public RuleContext.FieldContext EnterField(object containingMessage, string fullName, string name, RuleContext.Type type, ISet<string> tags)
Parameters
Type Name Description
object containingMessage
string fullName
string name
RuleContext.Type type
ISet<string> tags
Returns
Type Description
RuleContext.FieldContext

GetParameter(string)

Declaration
public string GetParameter(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string

GetTags(string)

Declaration
public ISet<string> GetTags(string fullName)
Parameters
Type Name Description
string fullName
Returns
Type Description
ISet<string>
In this article