Show / Hide Table of Contents

    Class Dfs

    Inheritance
    System.Object
    Dfs
    Implements
    IDfs
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Modules.Dfs
    Assembly: Catalyst.Core.Modules.Dfs.dll
    Syntax
    public sealed class Dfs : IDfs

    Constructors

    | Improve this Doc View Source

    Dfs(ICoreApi, IHashProvider, ILogger)

    Declaration
    public Dfs(ICoreApi ipfsAdapter, IHashProvider hashProvider, ILogger logger)
    Parameters
    Type Name Description
    ICoreApi ipfsAdapter
    IHashProvider hashProvider
    ILogger logger

    Methods

    | Improve this Doc View Source

    AddAsync(Stream, String, CancellationToken)

    Declaration
    public Task<Cid> AddAsync(Stream content, string name = "", CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    System.IO.Stream content
    System.String name
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<Cid>
    | Improve this Doc View Source

    AddTextAsync(String, CancellationToken)

    Declaration
    public Task<Cid> AddTextAsync(string content, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    System.String content
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<Cid>
    | Improve this Doc View Source

    ReadAsync(Cid, CancellationToken)

    Declaration
    public Task<Stream> ReadAsync(Cid cid, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    Cid cid
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.IO.Stream>
    | Improve this Doc View Source

    ReadTextAsync(Cid, CancellationToken)

    Declaration
    public Task<string> ReadTextAsync(Cid cid, CancellationToken cancellationToken = default(CancellationToken))
    Parameters
    Type Name Description
    Cid cid
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.String>

    Implements

    IDfs
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network