Skip to content
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

Handle Binding dispose correctly #34

Open
Hekku2 opened this issue Feb 3, 2022 · 0 comments
Open

Handle Binding dispose correctly #34

Hekku2 opened this issue Feb 3, 2022 · 0 comments

Comments

@Hekku2
Copy link
Contributor

Hekku2 commented Feb 3, 2022

If Binding in AzureTopicSubscriber is disposed, it disposes Subject, but doesnt stop the subscription client. Subscription client should also be stopped or otherwise handled to avoid System.ObjectDisposedException when shutting down.

System.ObjectDisposedException: Cannot access a disposed object.
at System.Reactive.Subjects.ReplaySubject1.ReplayBase.CheckDisposed() in /_/Rx.NET/Source/src/System.Reactive/Subjects/ReplaySubject.cs:line 424 at System.Reactive.Subjects.ReplaySubject1.ReplayBase.OnNext(T value) in /_/Rx.NET/Source/src/System.Reactive/Subjects/ReplaySubject.cs:line 255
at Protacon.RxMq.AzureServiceBus.Topic.AzureTopicSubscriber.Binding`1.<>c__DisplayClass1_0.<<-ctor>b__0>d.MoveNext()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant