FlushAsync() public méthode

public FlushAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
Résultat Task
Exemple #1
0
 public async Task SendItemAsync(BigEndianStream stream, int version)
 {
     if (stream == null)
         throw new ArgumentNullException("stream");
     if (Data != null && !Changed && stream.BufferEnabled)
     {
         await stream.WriteAsync(Data.ToArray(), 0, Data.Count());
     }
     else
         await OnSendAsync(stream, version);
     await stream.FlushAsync();
 }