Ejemplo n.º 1
0
 public string MakeOneDrivePath(Item onedriveItem)
 {
     return(onedriveItem == null || IsRoot(onedriveItem)
                ? string.Empty
                : (OneDriveStorage.MakeOneDrivePath(
                       new Regex("^" + OneDriveStorage.RootPath).Replace(onedriveItem.ParentReference.Path, ""),
                       onedriveItem.Name)));
 }
        private OneDriveStorage CreateStorage()
        {
            var onedriveStorage = new OneDriveStorage();

            CheckToken();

            onedriveStorage.Open(_token);
            return(onedriveStorage);
        }
 public StorageDisposableWrapper(OneDriveStorage storage)
 {
     Storage = storage;
 }