Exemple #1
0
 /// <summary>
 /// Gets the post body for sending a request.
 /// </summary>
 /// <param name="operations">The list of operations.</param>
 /// <returns>The POST body, for using in the web request.</returns>
 protected string GetPostBody(IEnumerable<Operation> operations)
 {
     BatchJobMutateRequest request = new BatchJobMutateRequest() {
     operations = operations.ToArray()
       };
       return SerializationUtilities.SerializeAsXmlText(request);
 }
        /// <summary>
        /// Gets the post body for sending a request.
        /// </summary>
        /// <param name="operations">The list of operations.</param>
        /// <returns>The POST body, for using in the web request.</returns>
        private string GetPostBody(Operation[] operations)
        {
            BatchJobMutateRequest request = new BatchJobMutateRequest()
            {
                operations = operations.ToArray()
            };

            return(SerializationUtilities.SerializeAsXmlText(request));
        }