in Windows Azure Shared Cache:
suppose I do the following:
try
{
mCache.Remove(key);
Trace.WriteLine("removed successfully from Azure Shared Cache");
}
catch (DataCacheException e)
{
WorkerRole.log.Info(e.ToString());
}
is it right to say that if the code reached to the Trace.WriteLine
command, then the operation completed successfully? (otherwise, it would be throwing DataCacheException
.
I know I can register to the event CacheOperationCompleted
, but is my code can be a good alternative to test operation success? (for Put/Remove methods).
thanks