CqlSharp.Protocol.Frame.PrepareAndInitializeContentAsync C# (CSharp) Method

PrepareAndInitializeContentAsync() private method

Prepares the reader/content and initializes content asynchronous.
private PrepareAndInitializeContentAsync ( ) : Task
return Task
        private async Task PrepareAndInitializeContentAsync()
        {
            //decompress the contents of the frame (implicity loads the entire frame body!)
            if(Flags.HasFlag(FrameFlags.Compression))
                await Reader.DecompressAsync().AutoConfigureAwait();

            //read tracing id if set
            if(Flags.HasFlag(FrameFlags.Tracing))
                TracingId = await Reader.ReadUuidAsync().AutoConfigureAwait();

            await InitializeAsync().AutoConfigureAwait();
        }