public static void Rollback(string path, int versionId, int propertyTypeId)
{
PsUploadSession session;
lock (_sync)
{
var key = GetSessionId(path, versionId, propertyTypeId);
session = Get(key);
if (session == null)
throw new ApplicationException(string.Concat("Connection lost during attachment upload: {0}, Property: {1}", path, ActiveSchema.PropertyTypes.GetItemById(propertyTypeId).Name));
_sessions.Remove(key);
}
DataProvider.Current.DeleteStagingBinaryData(session.BinaryDataId);
}