Click or drag to resize
ActorSystem Class
An actor system is a hierarchical group of actors which share common configuration, e.g. dispatchers, deployments, remote capabilities and addresses. It is also the entry point for creating or looking up actors. There are several possibilities for creating actors (see [[Akka.Actor.Props]] for details on `props`):
system.ActorOf(props, "name");
system.ActorOf(props);
system.ActorOf(Props.Create(typeof(MyActor)), "name");
system.ActorOf(Props.Create(() => new MyActor(arg1, arg2), "name");
Where no name is given explicitly, one will be automatically generated. Important Notice: This class is not meant to be extended by user code.
Inheritance Hierarchy

Namespace: Akka.Actor
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public abstract class ActorSystem : ActorRefFactory, 
	IDisposable

The ActorSystem type exposes the following members.

Constructors
  NameDescription
Protected methodActorSystem
Initializes a new instance of the ActorSystem class
Top
Methods
  NameDescription
Public methodActorOf
Public methodActorSelection(String)
Public methodActorSelection(ActorPath)
Public methodAwaitTermination
Block current thread until the system has been shutdown. This will block until after all on termination callbacks have been run.
Public methodAwaitTermination(TimeSpan)
Block current thread until the system has been shutdown, or the specified timeout has elapsed. This will block until after all on termination callbacks have been run.

Returns true if the system was shutdown during the specified time; false if it timed out.

Public methodAwaitTermination(TimeSpan, CancellationToken)
Block current thread until the system has been shutdown, or the specified timeout has elapsed, or the cancellationToken was canceled. This will block until after all on termination callbacks have been run.

Returns true if the system was shutdown during the specified time; false if it timed out, or the cancellationToken was canceled.

Public methodStatic memberCreate(String)
Creates the specified name.
Public methodStatic memberCreate(String, Config)
Creates a new ActorSystem with the specified name, and the specified Config
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetExtension(IExtensionId)
Returns an extension registered to this ActorSystem
Public methodGetExtensionT
Returns an extension registered to this ActorSystem
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasExtension(Type)
Determines whether this instance has the specified extension.
Public methodHasExtensionT
Determines whether this instance has the specified extension.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRegisterExtension
Public methodShutdown
Stop this actor system. This will stop the guardian actor, which in turn will recursively stop all its child actors, then the system guardian (below which the logging actors reside) and the execute all registered termination handlers ([!:ActorSystem.RegisterOnTermination]).
Public methodStop
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetExtension(Type, Object)
Tries to the get the extension of specified type.
Public methodTryGetExtensionT(T)
Tries to the get the extension of specified type.
Public methodWaitForShutdown Obsolete.
Block and prevent the main application thread from exiting unless the actor system is shut down.
Top
Extension Methods
  NameDescription
Public Extension MethodActorOf(ActionIActorDsl, String)Overloaded. (Defined by ActExtensions.)
Public Extension MethodActorOf(ActionIActorDsl, IActorContext, String)Overloaded. (Defined by ActExtensions.)
Public Extension MethodActorOfTActor(String)Overloaded. (Defined by ActorRefFactoryExtensions.)
Public Extension MethodAsInstanceOfT (Defined by Extensions.)
Public Extension MethodMatch
Matches the specified target.
(Defined by PatternMatch.)
Public Extension MethodWithExtensionTOverloaded.
Loads the extension and casts it to the expected type if it's already registered
(Defined by ActorSystemWithExtensions.)
Public Extension MethodWithExtensionT(Type)Overloaded.
Registers a type and returns it if one doesn't yet exist
(Defined by ActorSystemWithExtensions.)
Public Extension MethodWithExtensionT, TIOverloaded.
Registers a type and returns it if one doesn't yet exist
(Defined by ActorSystemWithExtensions.)
Top
Properties
  NameDescription
Public propertyDeadLetters
Gets the dead letters.
Public propertyDispatchers
Gets the dispatchers.
Public propertyEventStream
Gets the event stream.
Public propertyLog
Gets the log
Public propertyMailboxes
Gets the mailboxes.
Public propertyName
Gets the name of this system.
Public propertyScheduler
Gets the scheduler.
Public propertySerialization
Gets the serialization.
Public propertySettings
Gets the settings.
Public propertyTerminationTask
Returns a task that will be completed when the system has terminated.
Top
See Also