Redigera

Dela via


SerializationContext Class

Definition

Maintains context information for current thread during serialization operations.

public class SerializationContext : Orleans.Serialization.ICopyContext, Orleans.Serialization.ISerializationContext
public class SerializationContext : Orleans.Serialization.SerializationContextBase, Orleans.Serialization.ICopyContext, Orleans.Serialization.ISerializationContext
public sealed class SerializationContext : Orleans.Serialization.SerializationContextBase, Orleans.Serialization.ICopyContext, Orleans.Serialization.ISerializationContext
type SerializationContext = class
    interface ICopyContext
    interface ISerializerContext
    interface ISerializationContext
type SerializationContext = class
    inherit SerializationContextBase
    interface ICopyContext
    interface ISerializerContext
    interface ISerializationContext
Public Class SerializationContext
Implements ICopyContext, ISerializationContext
Public Class SerializationContext
Inherits SerializationContextBase
Implements ICopyContext, ISerializationContext
Public NotInheritable Class SerializationContext
Inherits SerializationContextBase
Implements ICopyContext, ISerializationContext
Inheritance
SerializationContext
Inheritance
SerializationContext
Implements

Remarks

DeepCopier functions in Orleans generated code use the RecordObject method to record the mapping of original object to the copied instance of that object so that object identity can be preserved when serializing .NET object graphs.

Constructors

SerializationContext(SerializationManager)

Properties

AdditionalContext
CurrentOffset
MaxSustainedSerializationContextCapacity (Inherited from SerializationContextBase)
SerializationManager

Gets the serialization manager.

SerializationManager (Inherited from SerializationContextBase)
ServiceProvider
ServiceProvider (Inherited from SerializationContextBase)
StreamWriter

Gets the serialization manager.

Methods

CheckObjectWhileCopying(Object)
CheckObjectWhileSerializing(Object)
DeepCopyInner(Object)
RecordCopy(Object, Object)

Record an object-to-copy mapping into the current serialization context. Used for maintaining the .NET object graph during serialization operations. Used in generated code.

RecordObject(Object, Int32)
SerializeInner(Object, Type)

Extension Methods

CreateNestedContext(ISerializationContext, Int32, BinaryTokenStreamWriter)
CreateNestedContext(ISerializationContext, Int32, IBinaryTokenStreamWriter)
RecordObject(ISerializationContext, Object)
SerializeInner<T>(ISerializationContext, T)
GetSerializationManager(ISerializerContext)

Applies to