/// <summary>
/// Puts the value of a key in dataset. If a new value is assigned to the
/// key, the record is marked as dirty. If the value is null, then the record
/// is marked as deleted. The changed record will be synced with remote
/// storage.
/// </summary>
/// <param name="identityId">Identity identifier.</param>
/// <param name="datasetName">Dataset name.</param>
/// <param name="key">record key.</param>
/// <param name="value">string value. If null, the record is marked as deleted.</param>
public void PutValue(string identityId, string datasetName, string key, string value)
{
lock (sqlite_lock)
{
bool result = PutValueHelper(identityId, datasetName, key, value);
if (!result)
{
_logger.DebugFormat("{0}", @"Cognito Sync - SQLiteStorage - Put Value Failed");
}
else
{
UpdateLastModifiedTimestamp(identityId, datasetName);
}
}
}