Skip to content

Commit

Permalink
fix(DagApi): pinning the data
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed May 13, 2018
1 parent 10d8d91 commit c3c03f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CoreApi/IDagApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public interface IDagApi
/// <param name="multiHash">
/// The <see cref="MultiHash"/> algorithm name used to produce the <see cref="Cid"/>.
/// </param>
/// <param name="pin">
/// If <b>true</b> the <paramref name="data"/> is pinned to local storage and will not be
/// garbage collected. The default is <b>true</b>.
/// </param>
/// <param name="cancel">
/// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
/// </param>
Expand All @@ -43,6 +47,7 @@ Task<Cid> PutAsync(
JObject data,
string contentType = "cbor",
string multiHash = MultiHash.DefaultAlgorithmName,
bool pin = true,
CancellationToken cancel = default(CancellationToken));

/// <summary>
Expand Down

0 comments on commit c3c03f4

Please sign in to comment.