C# Class CmisSync.Lib.Storage.Database.IMetaDataStorageConvenienceExtender

Meta data storage convenience extender.
显示文件 Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
GetObject ( this storage, IFileSystemInfo info ) : IMappedObject
GetRemoteId ( this storage, IFileSystemInfo info ) : string

Gets the remote identifier by trying to read the Uuid of the given directory. If this fails or returns null, the local path is used to request the remote object id from the storage.

Method Details

GetObject() public static method

public static GetObject ( this storage, IFileSystemInfo info ) : IMappedObject
storage this
info IFileSystemInfo
return IMappedObject

GetRemoteId() public static method

Gets the remote identifier by trying to read the Uuid of the given directory. If this fails or returns null, the local path is used to request the remote object id from the storage.
public static GetRemoteId ( this storage, IFileSystemInfo info ) : string
storage this Meta data storage instance.
info IFileSystemInfo File system item info.
return string