ExtendedActorSystem..::..WithExtension<(Of <(<'T>)>)> Method (ActorSystem)

Loads the extension and casts it to the expected type if it's already registered

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll)

Syntax


public static T WithExtension<T>(
	this ActorSystem system
)
where T : IExtension, IExtension
<ExtensionAttribute> _
Public Shared Function WithExtension(Of T As {IExtension, IExtension}) ( _
	system As ActorSystem _
) As T
[ExtensionAttribute]
public:
generic<typename T>
where T : IExtension, IExtension
static T WithExtension(
	ActorSystem^ system
)

Type Parameters

T

Parameters

system
Type: Akka.Actor..::..ActorSystem