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

The namespace actor, that also forwards all it's messages to the test actor More...

Inheritance diagram for KlusterKite.Core.TestKit.NameSpaceForwarder:
KlusterKite.Core.NameSpaceActor

Public Member Functions

 NameSpaceForwarder (IComponentContext componentContext, IActorRef testActor)
 Initializes a new instance of the NameSpaceForwarder class. More...
 
- Public Member Functions inherited from KlusterKite.Core.NameSpaceActor
 NameSpaceActor (IComponentContext componentContext)
 Initializes a new instance of the NameSpaceActor class. More...
 

Protected Member Functions

override void CreateSimpleActor (IActorContext context, Config actorConfig, IComponentContext componentContext, string currentPath, string pathName)
 Creates simple actor from config More...
 
virtual void ForwardMessage (object obj)
 Message forwarding to test actor More...
 
override void OnReceive (object message)
 To be implemented by concrete UntypedActor, this defines the behavior of the UntypedActor. This method is called for every message received by the actor. More...
 
- Protected Member Functions inherited from KlusterKite.Core.NameSpaceActor
virtual void CreateShardingActor (IActorContext context, Config actorConfig, IComponentContext container, string pathName)
 Creates cluster sharding actor from config More...
 
virtual void CreateShardingProxyActor (IActorContext context, Config actorConfig, IComponentContext container, string pathName)
 Creates cluster sharding proxy actor from config More...
 
virtual void CreateSingletonActor (IActorContext context, Config actorConfig, string currentPath, string pathName)
 Creates cluster singleton actor from config More...
 
virtual void CreateSingletonProxyActor (IActorContext context, Config actorConfig, string currentPath, string pathName)
 Creates cluster singleton proxy actor from config More...
 
override void OnReceive (object message)
 The on receive. More...
 
override void PreStart ()
 

Detailed Description

The namespace actor, that also forwards all it's messages to the test actor

Definition at line 30 of file NameSpaceForwarder.cs.

Constructor & Destructor Documentation

◆ NameSpaceForwarder()

KlusterKite.Core.TestKit.NameSpaceForwarder.NameSpaceForwarder ( IComponentContext  componentContext,
IActorRef  testActor 
)

Initializes a new instance of the NameSpaceForwarder class.

Parameters
componentContextThe access to dependency injection
testActorThe test actor reference

Definition at line 42 of file NameSpaceForwarder.cs.

Member Function Documentation

◆ CreateSimpleActor()

override void KlusterKite.Core.TestKit.NameSpaceForwarder.CreateSimpleActor ( IActorContext  context,
Config  actorConfig,
IComponentContext  componentContext,
string  currentPath,
string  pathName 
)
protectedvirtual

Creates simple actor from config

Parameters
contextCurrent actor context (will create child actor)
actorConfigConfiguration to create from
componentContextDependency resolver
currentPathParent (current) actor path
pathNameNew actor's path name

Reimplemented from KlusterKite.Core.NameSpaceActor.

Definition at line 60 of file NameSpaceForwarder.cs.

◆ ForwardMessage()

virtual void KlusterKite.Core.TestKit.NameSpaceForwarder.ForwardMessage ( object  obj)
protectedvirtual

Message forwarding to test actor

Parameters
objThe original message

Definition at line 114 of file NameSpaceForwarder.cs.

◆ OnReceive()

override void KlusterKite.Core.TestKit.NameSpaceForwarder.OnReceive ( object  message)
protected

To be implemented by concrete UntypedActor, this defines the behavior of the UntypedActor. This method is called for every message received by the actor.

Parameters
messageThe message.

Definition at line 128 of file NameSpaceForwarder.cs.


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