Inheritance: System.IO.Stream
Ejemplo n.º 1
0
        ///// <summary>
        ///// Add an object to ipfs.
        ///// Adds contents of <path> to ipfs. Use -r to add directories.
        ///// Note that directories are added recursively, to form the ipfs
        ///// MerkleDAG.A smarter partial add with a staging area(like git)
        ///// remains to be implemented
        ///// </summary>
        ///// <param name="path">The path to a file to be added to IPFS</param>
        ///// <param name="recursive">Add directory paths recursively</param>
        ///// <param name="quiet">Write minimal output</param>
        ///// <param name="progress">Stream progress data</param>
        ///// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        ///// <param name="trickle">Use trickle-dag format for dag generation</param>
        ///// <returns></returns>
        //public async Task<IList<MerkleNode>> Add(IEnumerable<Tuple<string,Stream>> files, bool recursive = false, bool quiet = false, bool progress = false, bool wrapWithDirectory = false, bool trickle = false)
        //{
        //    return await Root.Add(files, recursive, quiet, progress, wrapWithDirectory, trickle);
        //}

        /// <summary>
        /// Add an object to ipfs.
        /// Adds contents of <path> to ipfs. Use -r to add directories.
        /// Note that directories are added recursively, to form the ipfs
        /// MerkleDAG.A smarter partial add with a staging area(like git)
        /// remains to be implemented
        /// </summary>
        /// <param name="path">The path to a file to be added to IPFS</param>
        /// <param name="recursive">Add directory paths recursively</param>
        /// <param name="quiet">Write minimal output</param>
        /// <param name="progress">Stream progress data</param>
        /// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        /// <param name="trickle">Use trickle-dag format for dag generation</param>
        /// <param name="cancellationToken">Token allowing you to cancel the request</param>
        /// <returns></returns>
        public async Task <MerkleNode> Add(IpfsStream file, bool recursive = false, bool quiet = false, bool wrapWithDirectory = false, bool trickle = false, CancellationToken cancellationToken = default(CancellationToken))
        {
            return(await Root.Add(file, recursive, quiet, wrapWithDirectory, trickle, cancellationToken));
        }
Ejemplo n.º 2
0
        ///// <summary>
        ///// Add an object to ipfs.
        ///// Adds contents of <path> to ipfs. Use -r to add directories.
        ///// Note that directories are added recursively, to form the ipfs
        ///// MerkleDAG.A smarter partial add with a staging area(like git)
        ///// remains to be implemented
        ///// </summary>
        ///// <param name="path">The path to a file to be added to IPFS</param>
        ///// <param name="recursive">Add directory paths recursively</param>
        ///// <param name="quiet">Write minimal output</param>
        ///// <param name="progress">Stream progress data</param>
        ///// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        ///// <param name="trickle">Use trickle-dag format for dag generation</param>
        ///// <returns></returns>
        //public async Task<IList<MerkleNode>> Add(IEnumerable<Tuple<string,Stream>> files, bool recursive = false, bool quiet = false, bool progress = false, bool wrapWithDirectory = false, bool trickle = false)
        //{
        //    return await Root.Add(files, recursive, quiet, progress, wrapWithDirectory, trickle);
        //}

        /// <summary>
        /// Add an object to ipfs.
        /// Adds contents of <path> to ipfs. Use -r to add directories.
        /// Note that directories are added recursively, to form the ipfs
        /// MerkleDAG.A smarter partial add with a staging area(like git)
        /// remains to be implemented
        /// </summary>
        /// <param name="path">The path to a file to be added to IPFS</param>
        /// <param name="recursive">Add directory paths recursively</param>
        /// <param name="quiet">Write minimal output</param>
        /// <param name="progress">Stream progress data</param>
        /// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        /// <param name="trickle">Use trickle-dag format for dag generation</param>
        /// <returns></returns>
        public async Task <MerkleNode> Add(IpfsStream file, bool recursive = false, bool quiet = false, bool wrapWithDirectory = false, bool trickle = false)
        {
            return(await Root.Add(file, recursive, quiet, wrapWithDirectory, trickle));
        }
Ejemplo n.º 3
0
        ///// <summary>
        ///// Add an object to ipfs.
        ///// Adds contents of <path> to ipfs. Use -r to add directories.
        ///// Note that directories are added recursively, to form the ipfs
        ///// MerkleDAG.A smarter partial add with a staging area(like git)
        ///// remains to be implemented
        ///// </summary>
        ///// <param name="path">The path to a file to be added to IPFS</param>
        ///// <param name="recursive">Add directory paths recursively</param>
        ///// <param name="quiet">Write minimal output</param>
        ///// <param name="progress">Stream progress data</param>
        ///// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        ///// <param name="trickle">Use trickle-dag format for dag generation</param>
        ///// <returns></returns>
        //public async Task<IList<MerkleNode>> Add(IEnumerable<Tuple<string,Stream>> files, bool recursive = false, bool quiet = false, bool progress = false, bool wrapWithDirectory = false, bool trickle = false)
        //{
        //    return await Root.Add(files, recursive, quiet, progress, wrapWithDirectory, trickle);
        //}

        /// <summary>
        /// Add an object to ipfs.
        /// Adds contents of <path> to ipfs. Use -r to add directories.
        /// Note that directories are added recursively, to form the ipfs
        /// MerkleDAG.A smarter partial add with a staging area(like git)
        /// remains to be implemented
        /// </summary>
        /// <param name="path">The path to a file to be added to IPFS</param>
        /// <param name="recursive">Add directory paths recursively</param>
        /// <param name="quiet">Write minimal output</param>
        /// <param name="progress">Stream progress data</param>
        /// <param name="wrapWithDirectory">Wrap files with a directory object</param>
        /// <param name="trickle">Use trickle-dag format for dag generation</param>
        /// <returns></returns>
        public async Task<MerkleNode> Add(IpfsStream file, bool recursive = false, bool quiet = false, bool wrapWithDirectory = false, bool trickle = false)
        {
            return await Root.Add(file, recursive, quiet, wrapWithDirectory, trickle);
        }