Method RegisterClearNotification
RegisterClearNotification(ContinuousQueryClearCallback)
This method registers a custom callback that is fired if dataset of a Continuous Query is cleared.
Declaration
public void RegisterClearNotification(ContinuousQueryClearCallback callback)
Parameters
Type | Name | Description |
---|---|---|
Continuous |
callback | A delegate to register your custom method with |
Examples
The following example shows how to register the notification callback. First, create an CacheClearedCallback.
public static void CacheCleared()
{
...
}
Then, declare your Continuous Query.
ContinuousQuery cQ=new ContinuousQuery(query);
Then, register your Notification Callback.
cQ.RegisterClearNotification(new ContinuousQueryClearCallback(CacheCleared));