SenseNet.ContentRepository.Storage.Data.PsStreamManager.Rollback C# (CSharp) Метод

Rollback() публичный статический Метод

public static Rollback ( string path, int versionId, int propertyTypeId ) : void
path string
versionId int
propertyTypeId int
Результат void
        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);
        }