|
|
Hi all,
How can I get a notification about state changes? For example, i am adding some data, after that i want to get a notification, that the data was added.
|
|
Coordinator
Mar 6, 2012 at 6:49 PM
|
The easiest way is to write your own wrapper around the client lib and add your specific notify code
Kind regards,
Roni Schuetz
Sent from mobile
From: ksv510
Hi all,
How can I get a notification about state changes? For example, i am adding some data, after that i want to get a notification, that the data was added.
|
|
|
|
Can you show me some example or tell me about some starting ponit?
|
|
Coordinator
Mar 7, 2012 at 2:17 PM
|
/// <summary>
/// The simple method how to add data to the cache.
/// </summary>
/// <param name="key">The key.</param>
/// <param name="value">The value.</param>
public static
void CacheAdd(string key,
object value)
{
// e.g. here you can add a pre-add event over an delegate or so
IndexusDistributionCache.SharedCache.Add(key, value);
// e.g. here you can add a post-add event over an delegate or so
}
that is what i meant by using a wrapper .. hope that clarifies it.
regards,
Roni
On Wed, Mar 7, 2012 at 2:04 PM, ksv510 <notifications@codeplex.com> wrote:
From: ksv510
Can you show me some example or tell me about some starting ponit?
--
Kind regards,
Roni Schuetz
speed up your .net app's - http://www.sharedcache.com/
|
|
|
|
It can be done in this way. But I have to notificate all other nodes that data was changed.
Thanks for your answer.
|
|
Coordinator
Mar 7, 2012 at 4:24 PM
|
thats def. a different topic and is not supported .. the system was not designed to support client notifications.
|
|