public void WriteDataAsync(AmfWriter writer, object obj)
 {
     writer.WriteMarkerAsync(Amf0TypeMarkers.Xml);
     writer.WriteAmf0XDocumentAsync(obj as XDocument);
 }