Show / Hide Table of Contents

Interface IDeserializationContext

Inherited Members
ISerializerContext.ServiceProvider
ISerializerContext.AdditionalContext
Namespace: Orleans.Serialization
Assembly: Orleans.Core.Abstractions.dll
Syntax
public interface IDeserializationContext : ISerializerContext

Properties

| Improve this Doc View Source

CurrentObjectOffset

The offset of the current object in StreamReader.

Declaration
int CurrentObjectOffset { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CurrentPosition

Gets the current position in the stream.

Declaration
int CurrentPosition { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

StreamReader

The stream reader.

Declaration
IBinaryTokenStreamReader StreamReader { get; }
Property Value
Type Description
IBinaryTokenStreamReader

Methods

| Improve this Doc View Source

DeserializeInner(Type)

Declaration
object DeserializeInner(Type expected)
Parameters
Type Name Description
Type expected
Returns
Type Description
System.Object
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

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)
ImmutableExt.AsImmutable<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX