Skip to content

Commit 892ea13

Browse files
Jan JahodaJan Jahodagewarren
authored
NegotiateStream - update documentation (#4335)
* NegotiateStream - update documentation * format code * Update xml/System.Net.Security/NegotiateStream.xml Co-authored-by: Genevieve Warren <[email protected]> * Remove example Co-authored-by: Jan Jahoda <[email protected]> Co-authored-by: Genevieve Warren <[email protected]>
1 parent 21e55c3 commit 892ea13

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

samples/snippets/csharp/VS_Snippets_Remoting/NclNegoSyncClient/CS/client.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public static void Main(String[] args)
4848
// Encode the test data into a byte array.
4949
byte[] message = System.Text.Encoding.UTF8.GetBytes("Hello from the client.");
5050
authStream.Write(message, 0, message.Length);
51-
authStream.Flush();
51+
authStream.Flush();
5252
Console.WriteLine("Sent {0} bytes.", message.Length);
53-
}
54-
// Close the client connection.
53+
}
54+
// Close the client connection.
5555
authStream.Close();
5656
Console.WriteLine("Client closed.");
5757
}

xml/System.Net.Security/NegotiateStream.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3073,10 +3073,17 @@ Authentication has not occurred.</exception>
30733073
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" Index="0" FrameworkAlternate="net-5.0;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netcore-3.1;netstandard-2.1" />
30743074
</Parameters>
30753075
<Docs>
3076-
<param name="cancellationToken">To be added.</param>
3077-
<summary>To be added.</summary>
3078-
<returns>To be added.</returns>
3079-
<remarks>To be added.</remarks>
3076+
<param name="cancellationToken">The token to monitor for cancellation requests.</param>
3077+
<summary>Asynchronously writes any buffered data to the underlying device.</summary>
3078+
<returns>A task that represents the asynchronous flush operation.</returns>
3079+
<remarks>
3080+
<format type="text/markdown"><![CDATA[
3081+
3082+
## Remarks
3083+
This method invokes <xref:System.IO.Stream.FlushAsync%2A> on the underlying stream.
3084+
3085+
]]></format>
3086+
</remarks>
30803087
</Docs>
30813088
</Member>
30823089
<Member MemberName="ImpersonationLevel">

0 commit comments

Comments
 (0)