C-DEngine 5.105

TheCommonUtils..::..DoFireEvent<(Of <(<'T>)>)> Method (Action<(Of <(<'T, Object>)>)>, T, Object, Boolean, Int32)

New in V4.105: Allows to fire a generic event on all supported platforms

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static void DoFireEvent<T>(
	Action<T, Object> action,
	T para,
	Object Para2,
	bool FireAsync,
	int pFireEventTimeout
)
Public Shared Sub DoFireEvent(Of T) ( _
	action As Action(Of T, Object), _
	para As T, _
	Para2 As Object, _
	FireAsync As Boolean, _
	pFireEventTimeout As Integer _
)
public:
generic<typename T>
static void DoFireEvent(
	Action<T, Object^>^ action, 
	T para, 
	Object^ Para2, 
	bool^ FireAsync, 
	int^ pFireEventTimeout
)

Type Parameters

T

Parameters

action
Type: Action<(Of <(<'T, Object>)>)>
Callback to be fired by the Event. First parameter is generic, second is a cookie object
para
Type: T
Parameter of same type as action() first generic parameter
Para2
Type: Object
cookie object to be fired with the callback
FireAsync
Type: Boolean
if true, the event is fired asynch
pFireEventTimeout
Type: Int32
if larger