Show / Hide Table of Contents

Class PhobosHostingExtensions

Extension methods for use with Akka.Hosting and Phobos

Inheritance
object
PhobosHostingExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
In this article

Phobos®

APM for Akka.NET Applications

© 2025 Petabridge®

All rights reserved

Product
  • Purchase Phobos
  • Contact Sales
  • Phobos Quick Start Guide
  • Phobos Features
  • API Documentation
  • Release Notes
Resources
  • Akka.NET Documentation
  • Petabridge Blog
  • Akka.NET Support Plans
  • Akka.NET Consulting Services
  • Akka.NET Training
Connect
  • Petabridge Website
  • GitHub
  • Twitter
  • LinkedIn
  • YouTube
  • Contact Us
Privacy Policy
Built with ♥ by Petabridge