minio / minio-dotnet

MinIO Client SDK for .NET
https://docs.min.io/docs/dotnet-client-quickstart-guide.html
Apache License 2.0
564 stars 225 forks source link

No overload for method 'Subscribe' takes 3 arguments #657

Open chopin1998 opened 2 years ago

chopin1998 commented 2 years ago
    {
    IObservable<Item> observable = minio.ListObjectsAsync(listArgs);
    IDisposable subscription = observable.Subscribe(
            item => bucketList.Add(item.Key),
            ex => Debug.LogError(ex),
            () => Debug.Log("Listed all objects in bucket " + BucketNAME + "\n"));
    }

my code like this, compiler said:

IDisposable IObservable.Subscribe(IObserver observer) No overload for method 'Subscribe' takes 3 arguments [Assembly-CSharp]

chopin1998 commented 2 years ago

it seems that i have to define a class IObserver, then new a object as paramets to (observable.Subscribe)