C# 클래스 Akka.Serialization.Serializer

Class Serializer.
파일 보기 프로젝트 열기: rogeralsing/akka.net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
system ExtendedActorSystem

공개 메소드들

메소드 설명
FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

Serializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the Serializer class.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

ToBinaryWithAddress ( Akka.Actor.Address address, object obj ) : byte[]

Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's

보호된 메소드들

메소드 설명
TypeQualifiedNameForManifest ( Type type ) : string

Utility to be used by implementors to create a manifest from the type. The manifest is used to look up the type on deserialization. Returns the type qualified name including namespace and assembly, but not assembly version.

See Type.GetType(string) for details on how a type is looked up from a name. In particular, if the (partial) assembly name is not included only the assembly calling Type.GetType(string) is searched. If the (partial) assembly name is included, it searches in the specified assembly.

메소드 상세

FromBinary() 공개 추상적인 메소드

Deserializes a byte array into an object of type type.
public abstract FromBinary ( byte bytes, Type type ) : object
bytes byte The array containing the serialized object
type System.Type The type of object contained in the array
리턴 object

Serializer() 공개 메소드

Initializes a new instance of the Serializer class.
public Serializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
리턴 System

ToBinary() 공개 추상적인 메소드

Serializes the given object into a byte array
public abstract ToBinary ( object obj ) : byte[]
obj object The object to serialize
리턴 byte[]

ToBinaryWithAddress() 공개 메소드

Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's
public ToBinaryWithAddress ( Akka.Actor.Address address, object obj ) : byte[]
address Akka.Actor.Address The address to use when serializing local ActorRef´s
obj object The object to serialize
리턴 byte[]

TypeQualifiedNameForManifest() 보호된 정적인 메소드

Utility to be used by implementors to create a manifest from the type. The manifest is used to look up the type on deserialization. Returns the type qualified name including namespace and assembly, but not assembly version.
See Type.GetType(string) for details on how a type is looked up from a name. In particular, if the (partial) assembly name is not included only the assembly calling Type.GetType(string) is searched. If the (partial) assembly name is included, it searches in the specified assembly.
protected static TypeQualifiedNameForManifest ( Type type ) : string
type System.Type
리턴 string

프로퍼티 상세

system 보호되어 있는 프로퍼티

The actor system to associate with this serializer.
protected ExtendedActorSystem system
리턴 ExtendedActorSystem