public void Put(string resourceKind, SyncDigestEntryInfo info)
{
if (null == resourceKind)
throw new ArgumentNullException("resourceKind");
if (resourceKind == String.Empty)
throw new ArgumentException("Parameter value is empty.", "resourceKind");
if (null == info)
throw new ArgumentNullException("info");
// TODO: Validate entry property values
// We set the priority on 'update'.
lock (lockObj)
{
try
{
_provider.Add(resourceKind, info);
}
catch (StoreException)
{
_provider.Update(resourceKind, info);
}
}
}