/// <summary>
        /// Returns the operation result ID - the last segment of
        /// the location header - from the headers collection.
        /// </summary>
        /// <param name="headers">Headers collection.</param>
        /// <returns>Operation result ID.</returns>
        public static string GetOperationResultId(this HttpResponseHeaders headers)
        {
            var asyncHeader = headers.GetLocationHeader();

            return(asyncHeader.Segments.Last());
        }