Class PhobosSetup
Inherited Members
Namespace: Phobos.Actor
Assembly: Phobos.Actor.dll
Syntax
public sealed class PhobosSetup : Setup
Remarks
The constructor is internal. Call the factory method Create(PhobosConfigBuilder) or Create(Action<PhobosConfigBuilder>) to instantiate PhobosSetup.
Methods
Create(PhobosConfigBuilder)
Creates a new instance of the PhobosSetup using a PhobosConfigBuilder.
Declaration
public static ActorSystemSetup Create(PhobosConfigBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| PhobosConfigBuilder | builder | Builder class for programmatically configuring tracers and metrics. |
Returns
| Type | Description |
|---|---|
| ActorSystemSetup | A new ActorSystemSetup instance, which can be combined with types such as BootstrapSetup to configure an ActorSystem. |
Create(Action<PhobosConfigBuilder>)
Creates a new instance of the PhobosSetup using a PhobosConfigBuilder.
Declaration
public static ActorSystemSetup Create(Action<PhobosConfigBuilder> config)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<PhobosConfigBuilder> | config | A function that will configure a new PhobosConfigBuilder instance. |
Returns
| Type | Description |
|---|---|
| ActorSystemSetup | A new ActorSystemSetup instance, which can be combined with types such as BootstrapSetup to configure an ActorSystem. |