ActorSystemWithExtensionsWithExtensionT, TI Method (ActorSystem) |
Registers a type and returns it if one doesn't yet exist
Namespace: Akka.ActorAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic static T WithExtension<T, TI>(
this ActorSystem system
)
where T : class, IExtension
where TI : IExtensionId
<ExtensionAttribute>
Public Shared Function WithExtension(Of T As {Class, IExtension}, TI As IExtensionId) (
system As ActorSystem
) As T
public:
[ExtensionAttribute]
generic<typename T, typename TI>
where T : ref class, IExtension
where TI : IExtensionId
static T WithExtension(
ActorSystem^ system
)
[<ExtensionAttribute>]
static member WithExtension :
system : ActorSystem -> 'T when 'T : not struct and IExtension when '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