Akka.Actor.ActorBase.ActorBase C# (CSharp) Method

ActorBase() protected method

Initializes a new instance of the ActorBase class.
Do not create actors using 'new', always create them using an ActorContext/System
protected ActorBase ( ) : System
return System
        protected ActorBase()
        {
            if (ActorCell.Current == null)
                throw new ActorInitializationException("Do not create actors using 'new', always create them using an ActorContext/System");
            Context.Become(Receive);
        }