Creates an IEventListenerContainer<(Of <(<'TData>)>)> from the supplied listener instance, the listener class should be
marked with the appropriate NotifyEventDrivenAttribute or PollingEventDrivenAttribute attribute.
By default, if the listener class is not marked with an EventDrivenAttribute attribute, a PollingEventListenerContainer<(Of <(<'TData>)>)> will be created
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public static IEventListenerContainer<TData> CreateContainer<TData>( ISpaceProxy spaceProxy, Object attributedListener )
Public Shared Function CreateContainer(Of TData) ( _ spaceProxy As ISpaceProxy, _ attributedListener As Object _ ) As IEventListenerContainer(Of TData)
public: generic<typename TData> static IEventListenerContainer<TData>^ CreateContainer( ISpaceProxy^ spaceProxy, Object^ attributedListener )
Generic Template Parameters
- TData
- Container data type
Parameters
- spaceProxy (ISpaceProxy)
- The space proxy to be used for space events listening operations.
- attributedListener (Object)
- The listener instance that configured the container and listen for events
Return Value