dsuryd / dotNetify

Simple, lightweight, yet powerful way to build real-time web apps.
https://dotnetify.net
Other
1.17k stars 164 forks source link

Adding IAsyncDisposable to ViewModels #319

Open smfields opened 1 year ago

smfields commented 1 year ago

Any possibility of implementing IAsyncDisposable for ViewModels?

I'm using the Dispose method as my main way of detecting a user disconnect as recommend in #151, but I have some async work I need to do during that method. It would be great to have the option of overriding DisposeAsync to handle this.