-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoAddCommand - Replacement for NonWorking .Object API #40
Conversation
/// <param name="arg">Args</param> | ||
/// <param name="options">Options</param> | ||
/// <returns>Response</returns> | ||
public async Task<ICollection<IpfsFile>> DoAddCommand( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The UploadAsync
methods handles multipart form data for a given command. We shouldn't need to create a new method for this, especially not one this specific in a class this general.
Instead of this, we should just fix the existing FileSystem.AddDirectoryAsync
method.
/// IpfsFile | ||
/// </summary> | ||
[DataContract] | ||
public class IpfsFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this type was created for the DoAddCommand
method created above, but we already have this in ipfs-net-core
as IFileSystemLink
and IMerkleLink
, with a FileSystemLink
implementation in this repo.
@@ -0,0 +1,5 @@ | |||
include .env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to include a makefile. The underlying commands are already as simple as can be, and our CI handles publishing updates to nuget.
@@ -0,0 +1,31 @@ | |||
<?xml version="1.0" encoding="utf-8"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to add a nuspec here, and these values are different from our published package.
Significant improvements around the FilestoreApi.AddAsync method have been made as of 0.6.0, and the deprecated |
Details are here - #39