Skip to content

PingAsyn error using not updated nuget version 0.13Β #160

@Vytek

Description

@Vytek

I have found that what is present on nuget is not updated with the code developed after the release of 22 August 2020. Can I ask you to please create a new nuget release (0.13.1 ?) with the latest updates of September 2019 in order to try an integration?

In fact, the exception reported is relative to PingAsync (issue: #146)

Program Test:

using System;
using System.Threading.Tasks;
using Ipfs.Engine;
using System.IO;
using System.Threading;

namespace ConsoleIPFS
{
    public class Program
    {
        const string passphrase = "this is not a secure pass phrase";
        static readonly IpfsEngine ipfs = new IpfsEngine(passphrase.ToCharArray());

        static void Main(string[] args)
        {
            AnAsyncThread().Wait();
        }

        static async Task AnAsyncThread()
        {
            // Set the repository
            var path = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
            ipfs.Options.Repository.Folder = Path.Combine(path, "myapp-ipfs");

            await ipfs.StartAsync();
            await ipfs.FileSystem.AddTextAsync("Test 1234567890!");

            while (true)
            {
                Thread.Sleep(90000);
            }
        }
    }

Exception:

Eccezione non gestita: System.TypeInitializationException: L'inizializzatore di tipo di 'ConsoleIPFS.Program' ha generato un'eccezione. ---> System.TypeLoadException: Il metodo 'PingAsync' del tipo 'Ipfs.Engine.CoreApi.GenericApi' dell'assembly 'Ipfs.Engine, Version=0.13.0.0, Culture=neutral, PublicKeyToken=null' non ha un'implementazione.
in Ipfs.Engine.IpfsEngine.Init()
in Ipfs.Engine.IpfsEngine..ctor(Char[] passphrase)
in ConsoleIPFS.Program..cctor() in C:\Users\enric\source\repos\ConsoleIPFS\ConsoleIPFS\Program.cs:riga 12
--- Fine della traccia dello stack dell'eccezione interna ---
in ConsoleIPFS.Program.Main(String[] args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions