Click or drag to resize
Props Class
Props is a configuration object using in creating an [[Actor]]; it is immutable, so it is thread-safe and fully shareable. Examples on C# API:
private Props props = Props.Empty();
private Props props = Props.Create(() => new MyActor(arg1, arg2));

private Props otherProps = props.WithDispatcher("dispatcher-id");
private Props otherProps = props.WithDeploy(deployment info);
Inheritance Hierarchy

Namespace: Akka.Actor
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public class Props : IEquatable<Props>

The Props type exposes the following members.

Constructors
Methods
  NameDescription
Protected methodCopy
Copies this instance.
Public methodStatic memberCreate(Type, Object)
Creates the specified type.
Public methodStatic memberCreateTActor(Object)
Creates this instance.
Public methodStatic memberCreateTActor(SupervisorStrategy)
Creates this instance.
Public methodStatic memberCreateTActor(ExpressionFuncTActor, SupervisorStrategy)
Creates the specified factory.
Public methodStatic memberCreateByTProducer
Creates an actor by an actor producer
Public methodEquals(Object) (Overrides ObjectEquals(Object).)
Public methodEquals(Props)
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 methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNewActor
Create a new actor instance. This method is only useful when called during actor creation by the ActorSystem.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWithDeploy
Returns a new Props with the specified deployment configuration.
Public methodWithDispatcher
Returns a new Props with the specified dispatcher set.
Public methodWithMailbox
Returns a new Props with the specified mailbox set.
Public methodWithRouter
Returns a new Props with the specified router config set.
Public methodWithSupervisorStrategy
Returns a new Props with the specified supervisor strategy set.
Top
Extension Methods
Fields
  NameDescription
Public fieldStatic memberNone
The none
Top
Properties
  NameDescription
Public propertyArguments
Gets the arguments.
Public propertyDeploy
Gets or sets the deploy.
Public propertyDispatcher
Gets or sets the dispatcher.
Public propertyStatic memberEmpty
A Props instance whose creator will create an actor that doesn't respond to any message
Public propertyMailbox
Gets or sets the mailbox.
Public propertyRouterConfig
Gets or sets the router configuration.
Public propertySupervisorStrategy
Gets or sets the supervisor strategy.
Public propertyType
Gets the type.
Public propertyTypeName
Top
See Also