GigaSpaces XAP.NET Documentation
AddListener<(Of <(<'T>)>)> Method (template, listener, leaseTime)
Class LibraryGigaSpaces.Core.EventsIDataEventSessionAddListener<(Of <<'(T>)>>)(T, EventHandler<(Of <<'(SpaceDataEventArgs<(Of <<'(T>)>>)>)>>), Int64)
Registers the listener to the space using the specified template.
Declaration Syntax
C#Visual BasicVisual C++J#
[ObsoleteAttribute("Since 9.7 - Data event registration with custom lease is deprecated")]
IEventRegistration AddListener<T>(
	T template,
	EventHandler<SpaceDataEventArgs<T>> listener,
	long leaseTime
)
<ObsoleteAttribute("Since 9.7 - Data event registration with custom lease is deprecated")> _
Function AddListener(Of T) ( _
	template As T, _
	listener As EventHandler(Of SpaceDataEventArgs(Of T)), _
	leaseTime As Long _
) As IEventRegistration
[ObsoleteAttribute(L"Since 9.7 - Data event registration with custom lease is deprecated")]
generic<typename T>
IEventRegistration^ AddListener(
	T template, 
	EventHandler<SpaceDataEventArgs<T>^>^ listener, 
	long long leaseTime
)
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
T
Type of object to listen to.
Parameters
template (T)
The template used for matching.
listener (EventHandler<(Of <(<'SpaceDataEventArgs<(Of <(<'T>)>)>>)>)>)
The listener which will handle notifications.
leaseTime (Int64)
The time duration in which the listener will be receiving calls.
Return Value
An event registration token.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 14.0.0.0 (14.0.0.20000)