KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Core.Utils.AkkaUtils Class Reference

Just some helpers More...

Static Public Member Functions

static T DeserializeFromAkka< T > (this byte[] serializedData, ActorSystem system)
 The deserialize from akka. More...
 
static T DeserializeFromAkkaString< T > (this string serializedData, ActorSystem system)
 The deserialize from akka string. More...
 
static RouterConfig GetFromConfiguration (this IActorRef actorRef, ActorSystem system, string childPath)
 Workaround of bug More...
 
static RouterConfig GetFromConfiguration (ActorSystem system, string actorPath)
 Workaround of bug More...
 
static byte [] SerializeToAkka (this object objToSerialize, ActorSystem system)
 The serialize to akka. More...
 
static string SerializeToAkkaString (this object objToSerialize, ActorSystem system)
 The serialize to akka string. More...
 

Detailed Description

Just some helpers

Definition at line 24 of file AkkaUtils.cs.

Member Function Documentation

◆ DeserializeFromAkka< T >()

static T KlusterKite.Core.Utils.AkkaUtils.DeserializeFromAkka< T > ( this byte []  serializedData,
ActorSystem  system 
)
static

The deserialize from akka.

Parameters
serializedDataThe serialized data.
systemThe system.
Template Parameters
TThe original object type
Returns
The deserialized object

Definition at line 42 of file AkkaUtils.cs.

◆ DeserializeFromAkkaString< T >()

static T KlusterKite.Core.Utils.AkkaUtils.DeserializeFromAkkaString< T > ( this string  serializedData,
ActorSystem  system 
)
static

The deserialize from akka string.

Parameters
serializedDataThe serialized data.
systemThe system.
Template Parameters
TThe original object type
Returns
The deserialized object

Definition at line 63 of file AkkaUtils.cs.

◆ GetFromConfiguration() [1/2]

static RouterConfig KlusterKite.Core.Utils.AkkaUtils.GetFromConfiguration ( this IActorRef  actorRef,
ActorSystem  system,
string  childPath 
)
static

Workaround of bug

Parameters
actorRefCurrent actor reference
systemAkka actor system
childPathPath to create router
Returns
Configured router

Definition at line 75 of file AkkaUtils.cs.

◆ GetFromConfiguration() [2/2]

static RouterConfig KlusterKite.Core.Utils.AkkaUtils.GetFromConfiguration ( ActorSystem  system,
string  actorPath 
)
static

Workaround of bug

Parameters
systemAkka actor system
actorPathPath to child actor in deployment configuration
Returns
Configured router

Definition at line 89 of file AkkaUtils.cs.

◆ SerializeToAkka()

static byte [] KlusterKite.Core.Utils.AkkaUtils.SerializeToAkka ( this object  objToSerialize,
ActorSystem  system 
)
static

The serialize to akka.

Parameters
objToSerializeThe object to serialize.
systemThe system.
Returns
The byte array

Definition at line 136 of file AkkaUtils.cs.

◆ SerializeToAkkaString()

static string KlusterKite.Core.Utils.AkkaUtils.SerializeToAkkaString ( this object  objToSerialize,
ActorSystem  system 
)
static

The serialize to akka string.

Parameters
objToSerializeThe object to serialize.
systemThe system.
Returns
The string.

Definition at line 154 of file AkkaUtils.cs.


The documentation for this class was generated from the following file: