Class Message
Inheritance
System.Object
Message
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Avro
Assembly: Avro.dll
Syntax
public class Message
Constructors
| Improve this Doc View SourceMessage(String, String, RecordSchema, Schema, UnionSchema, Nullable<Boolean>)
Constructor for Message class
Declaration
public Message(string name, string doc, RecordSchema request, Schema response, UnionSchema error, bool? oneway)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | name property |
System.String | doc | doc property |
RecordSchema | request | list of parameters |
Schema | response | response property |
UnionSchema | error | error union schema |
System.Nullable<System.Boolean> | oneway |
Properties
| Improve this Doc View SourceDoc
Documentation for the message
Declaration
public string Doc { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Error
Union schema object for the 'error' attribute
Declaration
public UnionSchema Error { get; set; }
Property Value
Type | Description |
---|---|
UnionSchema |
Name
Name of the message
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Oneway
Optional one-way attribute
Declaration
public bool? Oneway { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Request
Anonymous record for the list of parameters for the request fields
Declaration
public RecordSchema Request { get; set; }
Property Value
Type | Description |
---|---|
RecordSchema |
Response
Schema object for the 'response' attribute
Declaration
public Schema Response { get; set; }
Property Value
Type | Description |
---|---|
Schema |
SupportedErrors
Explicitly defined protocol errors plus system added "string" error
Declaration
public UnionSchema SupportedErrors { get; set; }
Property Value
Type | Description |
---|---|
UnionSchema |
Methods
| Improve this Doc View SourceareEqual(Object, Object)
Tests equality of two objects taking null values into account
Declaration
protected static bool areEqual(object o1, object o2)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o1 | |
System.Object | o2 |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Tests equality of this Message object with the passed object
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Returns the hash code of this Message object
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()