Change notification

Topics: Developer Forum
Mar 6, 2012 at 9:40 AM

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.

Mar 6, 2012 at 7: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

On 06.03.2012, at 10:41, "ksv510" <notifications@codeplex.com> wrote:

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.

Mar 7, 2012 at 1:04 PM

Can you show me some example or tell me about some starting ponit?

Mar 7, 2012 at 3: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?

Read the full discussion online.

To add a post to this discussion, reply to this email (SharedCache@discussions.codeplex.com)

To start a new discussion for this project, email SharedCache@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
Kind regards,
Roni Schuetz

speed up your .net app's - http://www.sharedcache.com/
Mar 7, 2012 at 4:40 PM

It can be done in this way. But I have to notificate all other nodes that data was changed.

Thanks for your answer.

Mar 7, 2012 at 5:24 PM

thats def. a different topic and is not supported .. the system was not designed to support client notifications.