Interface IDeserializationContext
Namespace: Orleans.Serialization
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IDeserializationContext : ISerializerContext
Properties
| Improve this Doc View SourceCurrentObjectOffset
The offset of the current object in StreamReader.
Declaration
int CurrentObjectOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
CurrentPosition
Gets the current position in the stream.
Declaration
int CurrentPosition { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
StreamReader
The stream reader.
Declaration
IBinaryTokenStreamReader StreamReader { get; }
Property Value
| Type | Description |
|---|---|
| IBinaryTokenStreamReader |
Methods
| Improve this Doc View SourceDeserializeInner(Type)
Declaration
object DeserializeInner(Type expected)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | expected |
Returns
| Type | Description |
|---|---|
| System.Object |
FetchReferencedObject(Int32)
Returns the object from the specified offset.
Declaration
object FetchReferencedObject(int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | offset | The offset within StreamReader. |
Returns
| Type | Description |
|---|---|
| System.Object | The object from the specified offset. |
RecordObject(Object)
Records deserialization of the provided object at the current object offset.
Declaration
void RecordObject(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
RecordObject(Object, Int32)
Records deserialization of the provided object.
Declaration
void RecordObject(object obj, int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | |
| System.Int32 | offset | The offset within StreamReader. |
Extension Methods
Orleans.Serialization.DeserializationContextExtensions.CreateNestedContext(Orleans.Serialization.IDeserializationContext, System.Int32, Orleans.Serialization.BinaryTokenStreamReader)
Orleans.Serialization.SerializerContextExtensions.GetSerializationManager(Orleans.Serialization.ISerializerContext)