public void WriteDataAsync(AmfWriter writer, object obj) { writer.WriteMarkerAsync(Amf3TypeMarkers.Integer); writer.WriteAmf3IntAsync(Convert.ToInt32(obj)); }