Class HyperionSerializerSetup
Inheritance
HyperionSerializerSetup
Assembly: Akka.Serialization.Hyperion.dll
Syntax
public class HyperionSerializerSetup : Setup
Fields
|
Improve this Doc
View Source
Empty
Declaration
public static readonly HyperionSerializerSetup Empty
Field Value
Properties
|
Improve this Doc
View Source
DisallowUnsafeType
If set, will cause the Hyperion serializer to block potentially dangerous and unsafe types
from being deserialized during run-time. Defaults to true.
Declaration
public bool? DisallowUnsafeType { get; }
Property Value
|
Improve this Doc
View Source
KnownTypesProvider
A type implementing IKnownTypesProvider, that will
be used when HyperionSerializer is being constructed
to provide a list of message types that are supposed to be known
implicitly by all communicating parties. Implementing class must
provide either a default constructor or a constructor taking
ExtendedActorSystem as its only parameter.
Declaration
public Type KnownTypesProvider { get; }
Property Value
|
Improve this Doc
View Source
PackageNameOverrides
A list of lambda functions, used to transform incoming deserialized
package names before they are instantiated.
Used to provide cross-platform compatibility.
Declaration
public IEnumerable<Func<string, string>> PackageNameOverrides { get; }
Property Value
|
Improve this Doc
View Source
PreserveObjectReferences
When true, it tells HyperionSerializer to keep
track of references in serialized/deserialized object graph.
Declaration
public bool? PreserveObjectReferences { get; }
Property Value
|
Improve this Doc
View Source
Surrogates
A list of Surrogate instances that are used to de/serialize complex objects
into a much simpler serialized objects.
Declaration
public IEnumerable<Surrogate> Surrogates { get; }
Property Value
|
Improve this Doc
View Source
TypeFilter
Declaration
public ITypeFilter TypeFilter { get; }
Property Value
Type |
Description |
Hyperion.ITypeFilter |
|
|
Improve this Doc
View Source
VersionTolerance
When true, it tells HyperionSerializer to encode
a list of currently serialized fields into type manifest.
Declaration
public bool? VersionTolerance { get; }
Property Value
Methods
|
Improve this Doc
View Source
Create(Boolean, Boolean, Type)
Declaration
public static HyperionSerializerSetup Create(bool preserveObjectReferences, bool versionTolerance, Type knownTypesProvider)
Parameters
Type |
Name |
Description |
Boolean |
preserveObjectReferences |
|
Boolean |
versionTolerance |
|
Type |
knownTypesProvider |
|
Returns
|
Improve this Doc
View Source
Create(Boolean, Boolean, Type, IEnumerable<Func<String, String>>)
Declaration
public static HyperionSerializerSetup Create(bool preserveObjectReferences, bool versionTolerance, Type knownTypesProvider, IEnumerable<Func<string, string>> packageNameOverrides)
Parameters
Returns
|
Improve this Doc
View Source
Create(Boolean, Boolean, Type, IEnumerable<Func<String, String>>, IEnumerable<Surrogate>)
Declaration
public static HyperionSerializerSetup Create(bool preserveObjectReferences, bool versionTolerance, Type knownTypesProvider, IEnumerable<Func<string, string>> packageNameOverrides, IEnumerable<Surrogate> surrogates)
Parameters
Returns
|
Improve this Doc
View Source
Create(Boolean, Boolean, Type, IEnumerable<Func<String, String>>, IEnumerable<Surrogate>, Boolean)
Declaration
public static HyperionSerializerSetup Create(bool preserveObjectReferences, bool versionTolerance, Type knownTypesProvider, IEnumerable<Func<string, string>> packageNameOverrides, IEnumerable<Surrogate> surrogates, bool disallowUnsafeType)
Parameters
Returns
|
Improve this Doc
View Source
Create(Boolean, Boolean, Type, IEnumerable<Func<String, String>>, IEnumerable<Surrogate>, Boolean, ITypeFilter)
Declaration
public static HyperionSerializerSetup Create(bool preserveObjectReferences, bool versionTolerance, Type knownTypesProvider, IEnumerable<Func<string, string>> packageNameOverrides, IEnumerable<Surrogate> surrogates, bool disallowUnsafeType, ITypeFilter typeFilter)
Parameters
Returns
|
Improve this Doc
View Source
WithDisallowUnsafeType(Boolean)
Declaration
public HyperionSerializerSetup WithDisallowUnsafeType(bool disallowUnsafeType)
Parameters
Type |
Name |
Description |
Boolean |
disallowUnsafeType |
|
Returns
|
Improve this Doc
View Source
WithKnownTypeProvider(Type)
Declaration
public HyperionSerializerSetup WithKnownTypeProvider(Type knownTypeProvider)
Parameters
Type |
Name |
Description |
Type |
knownTypeProvider |
|
Returns
|
Improve this Doc
View Source
WithKnownTypeProvider<T>()
Declaration
public HyperionSerializerSetup WithKnownTypeProvider<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
WithPackageNameOverrides(IEnumerable<Func<String, String>>)
Declaration
public HyperionSerializerSetup WithPackageNameOverrides(IEnumerable<Func<string, string>> packageNameOverrides)
Parameters
Returns
|
Improve this Doc
View Source
WithPreserveObjectReference(Boolean)
Declaration
public HyperionSerializerSetup WithPreserveObjectReference(bool preserveObjectReference)
Parameters
Type |
Name |
Description |
Boolean |
preserveObjectReference |
|
Returns
|
Improve this Doc
View Source
WithSurrogates(IEnumerable<Surrogate>)
Declaration
public HyperionSerializerSetup WithSurrogates(IEnumerable<Surrogate> surrogates)
Parameters
Type |
Name |
Description |
IEnumerable<Hyperion.Surrogate> |
surrogates |
|
Returns
|
Improve this Doc
View Source
WithTypeFilter(ITypeFilter)
Declaration
public HyperionSerializerSetup WithTypeFilter(ITypeFilter typeFilter)
Parameters
Type |
Name |
Description |
Hyperion.ITypeFilter |
typeFilter |
|
Returns
|
Improve this Doc
View Source
WithVersionTolerance(Boolean)
Declaration
public HyperionSerializerSetup WithVersionTolerance(bool versionTolerance)
Parameters
Type |
Name |
Description |
Boolean |
versionTolerance |
|
Returns
Extension Methods