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

Registers a type and returns it if one doesn't yet exist

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

Syntax


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

Type Parameters

T

Parameters

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