Class Dfs
Inheritance
System.Object
Dfs
Implements
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 SourceDfs(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 SourceAddAsync(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> |
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> |
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> |
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> |