NuxeoClient.Client.Delete C# (CSharp) Method

Delete() private method

private Delete ( string endpoint, QueryParams parameters = null, string>.Dictionary additionalHeaders = null, string contentType = ContentType.JSON ) : Task
endpoint string
parameters QueryParams
additionalHeaders string>.Dictionary
contentType string
return Task
        internal async Task<Entity> Delete(string endpoint,
                                           QueryParams parameters = null,
                                           Dictionary<string, string> additionalHeaders = null,
                                           string contentType = ContentType.JSON)
        {
            // TODO: review the DELETE problem
            // On Mac OS and Linux, DELETE requests will be sent as GET, which make it impossible for now
            // to delete documents and drop batches using the REST API.
            // This issue is documented here: https://github.com/dotnet/corefx/issues/4134
            return await RequestJson(endpoint, parameters, null, HttpMethod.Delete, additionalHeaders, contentType);
        }