Click or drag to resize
Akka.NETFailureDetectorLoaderLoadFailureDetector Method
Loads an instantiates a given FailureDetector implementation. The class to be loaded must have a constructor that accepts a Config and an EventStream parameter. Will throw ConfigurationException if the implementation cannot be loaded.

Namespace:  Akka.Remote
Assembly:  Akka.Remote (in Akka.Remote.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static FailureDetector LoadFailureDetector(
	this IActorContext context,
	string fqcn,
	Config config
)

Parameters

context
Type: Akka.ActorIActorContext
The ActorContext used to resolve an ActorSystem for this FailureDetector instance.
fqcn
Type: SystemString
The fully-qualified .NET assembly name of the FailureDetector implementation class to be loaded.
config
Type: Akka.ConfigurationConfig
Configuration that will be passed to the implementation.

Return Value

Type: FailureDetector
A configured instance of the given FailureDetector implementation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IActorContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ConfigurationException This exception is thrown when the given fqcn could not be resolved.
See Also