/// <summary> /// Send data from the provided <see cref="IDataStream"/> to the client. /// </summary> /// <param name="data">Data stream to read the data to be sent</param> /// <param name="cancellation">Cancellation token</param> /// <returns>A <see cref="Task"/> that represents an asynchronous operation.</returns> protected Task WriteData(IDataStream data, CancellationToken cancellation) { return(data.WriteTo(dataStream, cancellation)); }