@@ -458,77 +458,7 @@ public async Task<String> UploadAsync(string command, byte[] data, params string
458458 }
459459 }
460460
461- /// <summary>
462- /// Perform an <see href="https://ipfs.io/docs/api/">IPFS API command</see> returning a string.
463- /// </summary>
464- /// <param name="command">
465- /// The <see href="https://ipfs.io/docs/api/">IPFS API command</see>, such as
466- /// <see href="https://ipfs.io/docs/api/#apiv0filels">"file/ls"</see>.
467- /// </param>
468- /// <param name="arg">
469- /// The optional argument to the command.
470- /// </param>
471- /// <param name="options">
472- /// The optional flags to the command.
473- /// </param>
474- /// <returns>
475- /// A string representation of the command's result.
476- /// </returns>
477- public string DoCommand ( string command , string arg = null , params string [ ] options )
478- {
479- return DoCommandAsync ( command , arg , options ) . Result ;
480- }
481-
482- /// <summary>
483- /// Perform an <see href="https://ipfs.io/docs/api/">IPFS API command</see> returning
484- /// a specific <see cref="Type"/>.
485- /// </summary>
486- /// <typeparam name="T">
487- /// The <see cref="Type"/> of object to return.
488- /// </typeparam>
489- /// <param name="command">
490- /// The <see href="https://ipfs.io/docs/api/">IPFS API command</see>, such as
491- /// <see href="https://ipfs.io/docs/api/#apiv0filels">"file/ls"</see>.
492- /// </param>
493- /// <param name="arg">
494- /// The optional argument to the command.
495- /// </param>
496- /// <param name="options">
497- /// The optional flags to the command.
498- /// </param>
499- /// <returns>
500- /// A <typeparamref name="T"/>.
501- /// </returns>
502- /// <remarks>
503- /// The command's response is converted to <typeparamref name="T"/> using
504- /// <c>JsonConvert</c>.
505- /// </remarks>
506- public T DoCommand < T > ( string command , string arg = null , params string [ ] options )
507- {
508- return DoCommandAsync < T > ( command , arg , options ) . Result ;
509- }
510461
511- /// <summary>
512- /// Perform an <see href="https://ipfs.io/docs/api/">IPFS API command</see> returning a
513- /// <see cref="Stream"/>.
514- /// </summary>
515- /// <param name="command">
516- /// The <see href="https://ipfs.io/docs/api/">IPFS API command</see>, such as
517- /// <see href="https://ipfs.io/docs/api/#apiv0filels">"file/ls"</see>.
518- /// </param>
519- /// <param name="arg">
520- /// The optional argument to the command.
521- /// </param>
522- /// <param name="options">
523- /// The optional flags to the command.
524- /// </param>
525- /// <returns>
526- /// A <see cref="Stream"/> containing the command's result.
527- /// </returns>
528- public Stream Download ( string command , string arg = null , params string [ ] options )
529- {
530- return DownloadAsync ( command , arg , options ) . Result ;
531- }
532462
533463 /// <summary>
534464 ///
0 commit comments