Adapts a supplied delegate of type WriteBackDataEventHandler<(Of <(<'TData, TResult>)>)> to DataEventHandler<(Of <(<'T>)>)> which
has a built in logic of writing back the results to space.
Usage:
Subsribe to the DataEventArrived event with the adapter:
IEventListenerContainer.DataEventArrived += new DelegateDataEventArrivedAdapter(myDelegate).OnEvent;
![](../icons/collapse_all.gif)
C# | Visual Basic | Visual C++ | J# |
public class DelegateDataEventArrivedAdapter<TData, TResult> : WriteBackResultDataEventAdapter<TData>, ICloneable
Public Class DelegateDataEventArrivedAdapter(Of TData, TResult) _ Inherits WriteBackResultDataEventAdapter(Of TData) _ Implements ICloneable
generic<typename TData, typename TResult> public ref class DelegateDataEventArrivedAdapter : public WriteBackResultDataEventAdapter<TData>, ICloneable
![](../icons/collapse_all.gif)
- TData
- Type of data object.
- TResult
- Type of result object.
![](../icons/collapse_all.gif)
All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
![]() | DelegateDataEventArrivedAdapter<(Of <(<'TData, TResult>)>)>(WriteBackDataEventHandler<(Of <<'(TData, TResult>)>>)) |
Constructs
|
![]() | DelegateDataEventArrivedAdapter<(Of <(<'TData, TResult>)>)>(WriteBackBatchDataEventHandler<(Of <<'(TData, TResult>)>>)) |
Constructs
|
![]() | Clone()()()() |
Creates a new object that is a copy of the current instance.
The supplied handle containing class needs to implement the ICloneable interface as well.
|
![]() | Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) |
![]() | Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | InvokeBatchListenerMethod(Object, BatchDataEventArgs<(Of <<'(TData>)>>)) |
Invokes the listener method.
(Overrides WriteBackResultDataEventAdapter<(Of <(<'TData>)>)>.InvokeBatchListenerMethod(Object, BatchDataEventArgs<(Of <<'(TData>)>>)).) |
![]() | InvokeListenerMethod(Object, DataEventArgs<(Of <<'(TData>)>>)) |
Invokes the listener method.
(Overrides WriteBackResultDataEventAdapter<(Of <(<'TData>)>)>.InvokeListenerMethod(Object, DataEventArgs<(Of <<'(TData>)>>)).) |
![]() | MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | ToString()()()() |
Returns a String that represents the current Object.
(Inherited from Object.) |
![]() | WriteBackBatchDataEventHandler(Object, BatchDataEventArgs<(Of <<'(TData>)>>)) |
The adapter method, adapts a regular DataEventHandler<(Of <(<'T>)>)> method call to the
supplied method and write backs the results.
(Inherited from WriteBackResultDataEventAdapter<(Of <(<'TData>)>)>.) |
![]() | WriteBackDataEventHandler(Object, DataEventArgs<(Of <<'(TData>)>>)) |
The adapter method, adapts a regular DataEventHandler<(Of <(<'T>)>)> method call to the
supplied method and write backs the results.
(Inherited from WriteBackResultDataEventAdapter<(Of <(<'TData>)>)>.) |
![](../icons/collapse_all.gif)
Object | ||
![]() | WriteBackResultDataEventAdapter<(Of <(<'TData>)>)> | |
![]() | DelegateDataEventArrivedAdapter<(Of <(<'TData, TResult>)>)> |