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

API Proposal: Check Disposed Socket #54

Closed
erictuvesson opened this issue Mar 30, 2020 · 1 comment
Closed

API Proposal: Check Disposed Socket #54

erictuvesson opened this issue Mar 30, 2020 · 1 comment

Comments

@erictuvesson
Copy link

Justification

It would be nice if there was a way to check if a socket is disposed.
Right now I suppose I can check on IsConnected and if connect I expect it is not disposed.

https://github.com/chronoxor/NetCoreServer/blob/master/source/NetCoreServer/TcpSession.cs#L177-L195

API Proposal

Having a boolean property to just check IsDisposed or IsSocketDisposed or just a wrapper over socket, just to give a easy to understand property saying that it is disposed.

@chronoxor
Copy link
Owner

Add into release 3.0.8

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

2 participants