Code samples from WriteAsync .NET