public override Uri GetFileSystemObjectUrl(string path, ICloudDirectoryEntry parent)
        {
            // get the filesystem
            var entry = GetFileSystemObject(path, parent);

            // get the download url
            var url = DropBoxStorageProviderService.GetDownloadFileUrlInternal(this._Session, entry);

            // get the right session
            var session = (DropBoxStorageProviderSession) _Session;

            // generate the oauth url
            var svc = new OAuthService();
            url = svc.GetProtectedResourceUrl(url, session.Context, session.SessionToken as DropBoxToken, null, WebRequestMethodsEx.Http.Get);

            // go ahead
            return new Uri(url);
        }
        public override string GetResourceUrl(IStorageProviderSession session, ICloudFileSystemEntry fileSystemEntry, String additionalPath)
        {
            var dbSession = session as DropBoxStorageProviderSession;

            String path = DropBoxResourceIDHelpers.GetResourcePath(fileSystemEntry, additionalPath);
            String url = GetResourceUrlInternal(session, path);

            // generate the oauth url
            var svc = new OAuthService();
            return svc.GetProtectedResourceUrl(url, dbSession.Context, dbSession.SessionToken as DropBoxToken, null, WebRequestMethodsEx.Http.Get);
        }