Click or drag to resize
ActorSystemWithExtensionsWithExtensionT, TI Method (ActorSystem)
Registers a type and returns it if one doesn't yet exist

Namespace: Akka.Actor
Assembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntax
public static T WithExtension<T, TI>(
	this ActorSystem system
)
where T : class, IExtension
where TI : IExtensionId

Parameters

system
Type: Akka.ActorActorSystem

[Missing <param name="system"/> documentation for "M:Akka.Actor.ActorSystemWithExtensions.WithExtension``2(Akka.Actor.ActorSystem)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Akka.Actor.ActorSystemWithExtensions.WithExtension``2(Akka.Actor.ActorSystem)"]

TI

[Missing <typeparam name="TI"/> documentation for "M:Akka.Actor.ActorSystemWithExtensions.WithExtension``2(Akka.Actor.ActorSystem)"]

Return Value

Type: T

[Missing <returns> documentation for "M:Akka.Actor.ActorSystemWithExtensions.WithExtension``2(Akka.Actor.ActorSystem)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ActorSystem. 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).
See Also