For Babelfish Release 1.12.3.10

AttributeValueDataPacket Class

Abstract base class for serializing an AttributeValue. Contains both a referrence to the Attribute that defines the data, as well as the value

Definition

Namespace: Scopos.BabelFish.DataModel.AttributeValue
Assembly: BabelFish (in BabelFish.dll) Version: 1.12.3.10+306d87ab71d1aa659d07c082495f8eddb091ca7b
C#
public abstract class AttributeValueDataPacket : IDeserializableAbstractClass, 
	IGetAttributeDefinition
Inheritance
Object    IDeserializableAbstractClass    AttributeValueDataPacket
Derived
Implements
IGetAttributeDefinition

Constructors

AttributeValueDataPacket Default constructor.

Properties

AttributeDef the SetName, formatted as a string, of the Attribute definition.
AttributeValue Property that contains the value.
AttributeValueTask Property that holds the task to finish deserializing an AttributeValue. See also
ConcreteClassId Implementation of the IDeserializableAbstractClass interface. To have added control over the Deserialization of abstract classes, in to Concrete classes, the JSON should include a ConcreteClassId that specifies the Concrete class.
Visibility Property storing how broadly this AttributeValue may be shared.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FinishInitializationAsync Deserilization of a AttributeValueDataPacket is handled by the overridden ReadJson() method of AttributeValueDataPacketConverter class. Because to deserialize an AttributeValue the Definition of the Attribute must be known. And reading the Definition is an IO bound Async call. But ReadJson() is not Async and can't be made async because it is overridden. To get around this limitation, the Task is assigned to AttributeValueTask (instead of awaiting and assigning to AttributeValue. The awaiting of AttributeValueTask is then handled in an async call sepeartly.
GetAttributeDefinitionAsync Retreives the Attribute Definition referenced by the instantiating class.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

See Also