Class PhobosHostingExtensions
Extension methods for use with Akka.Hosting and Phobos
Inherited Members
Namespace: Phobos.Hosting
Assembly: Phobos.Hosting.dll
Syntax
public static class PhobosHostingExtensions
Methods
WithPhobos(AkkaConfigurationBuilder, AkkaRunMode, ITraceFilter)
Adds Phobos to a given ActorSystem.
Declaration
public static AkkaConfigurationBuilder WithPhobos(this AkkaConfigurationBuilder configurationBuilder, AkkaRunMode actorRefProvider, ITraceFilter filter = null)
Parameters
Type | Name | Description |
---|---|---|
AkkaConfigurationBuilder | configurationBuilder | The Akka.Hosting Akka.Hosting.AkkaConfigurationBuilder. |
AkkaRunMode | actorRefProvider | Determines which akka.actor.provider will be used alongside Phobos to start up this ActorSystem. |
ITraceFilter | filter | Optional. An ITraceFilter instance we can use for reducing noise produced during tracing. |
Returns
Type | Description |
---|---|
AkkaConfigurationBuilder | The same instance of the Akka.Hosting.AkkaConfigurationBuilder that was passed in. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
WithPhobos(AkkaConfigurationBuilder, AkkaRunMode, Action<PhobosConfigBuilder>)
Adds Phobos to a given ActorSystem.
Declaration
public static AkkaConfigurationBuilder WithPhobos(this AkkaConfigurationBuilder configurationBuilder, AkkaRunMode actorRefProvider, Action<PhobosConfigBuilder> configuration)
Parameters
Type | Name | Description |
---|---|---|
AkkaConfigurationBuilder | configurationBuilder | The Akka.Hosting Akka.Hosting.AkkaConfigurationBuilder. |
AkkaRunMode | actorRefProvider | Determines which akka.actor.provider will be used alongside Phobos to start up this ActorSystem. |
Action<PhobosConfigBuilder> | configuration | A configuration function for the PhobosConfigBuilder. This must be populated or otherwise Phobos will fail to start. |
Returns
Type | Description |
---|---|
AkkaConfigurationBuilder | The same instance of the Akka.Hosting.AkkaConfigurationBuilder that was passed in. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |