コード例 #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the mount folder route.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID of the shared folder to mount.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="callbackState">A user provided object that distinguished this send
        /// from other send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginMountFolder(string sharedFolderId,
                                                 sys.AsyncCallback callback,
                                                 object callbackState = null)
        {
            var mountFolderArg = new MountFolderArg(sharedFolderId);

            return this.BeginMountFolder(mountFolderArg, callback, callbackState);
        }
コード例 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the mount folder route.</para>
        /// </summary>
        /// <param name="mountFolderArg">The request parameters.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="state">A user provided object that distinguished this send from other
        /// send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginMountFolder(MountFolderArg mountFolderArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.MountFolderAsync(mountFolderArg);

            return enc.Util.ToApm(task, callback, state);
        }
コード例 #3
0
        /// <summary>
        /// <para>The current user mounts the designated folder.</para>
        /// <para>Mount a shared folder for a user after they have been added as a member. Once
        /// mounted, the shared folder will appear in their Dropbox.</para>
        /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
        /// backwards-incompatible changes.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID of the shared folder to mount.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        /// <exception cref="Dropbox.Api.ApiException{MountFolderError}">Thrown if there is an
        /// error processing the request; This will contain a <see
        /// cref="MountFolderError"/>.</exception>
        public t.Task<BasicSharedFolderMetadata> MountFolderAsync(string sharedFolderId)
        {
            var mountFolderArg = new MountFolderArg(sharedFolderId);

            return this.MountFolderAsync(mountFolderArg);
        }
コード例 #4
0
 /// <summary>
 /// <para>The current user mounts the designated folder.</para>
 /// <para>Mount a shared folder for a user after they have been added as a member. Once
 /// mounted, the shared folder will appear in their Dropbox.</para>
 /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
 /// backwards-incompatible changes.</para>
 /// </summary>
 /// <param name="mountFolderArg">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation. The TResult
 /// parameter contains the response from the server.</returns>
 /// <exception cref="Dropbox.Api.ApiException{MountFolderError}">Thrown if there is an
 /// error processing the request; This will contain a <see
 /// cref="MountFolderError"/>.</exception>
 public t.Task<BasicSharedFolderMetadata> MountFolderAsync(MountFolderArg mountFolderArg)
 {
     return this.Transport.SendRpcRequestAsync<MountFolderArg, BasicSharedFolderMetadata, MountFolderError>(mountFolderArg, "api", "/sharing/mount_folder", MountFolderArg.Encoder, BasicSharedFolderMetadata.Decoder, MountFolderError.Decoder);
 }