-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Update StartListening method desciption #4344
Conversation
The current description might mislead user calling this method unnecessarily, this change will help user understand clearly at the correct way to use this method.
The build has failed for no detectable reason. Closing and reopening to begin new build. |
I've noticed the see cref tag was not properly closed. Let's see if this resolves the build issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @MSGaryWang, for providing this clarification. I have one suggested change to the first sentence of the Remarks section.
@rpetrusha I didn't see your new change at Remark section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, @MSGaryWang. I'm not sure why my original comment disappeared.
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
It is not necessary to call this method to begin listening on a newly initialized channel. | ||
The constructor of TcpServerChannel automatically calls StartListening() so one should not call this method unless <xref:System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StopListening%2A> was previously called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better: "The <xref:System.Runtime.Remoting.Channels.Tcp.TcpServerChannel> constructor automatically calls `StartListening`, so you shouldn't call...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, please go ahead to make the change.
The current description might mislead user calling this method unnecessarily, this change will help user understand clearly at the correct way to use this method.
Title
Update StartListening method description
Summary
Customer might use this API is a wrong way and lead to issues.
Details
Provide usage in details to prevent customer calling it unexpectedly.