/// <summary> /// Update entity in EntityDefinitions /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='metadataId'> /// key: MetadataId /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this IEntitydefinitions operations, string metadataId, MicrosoftDynamicsCRMEntityMetadata body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(metadataId, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Update entity in EntityDefinitions /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='metadataId'> /// key: MetadataId of EntityMetadata /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateWithHttpMessages(this IEntitydefinitions operations, string metadataId, MicrosoftDynamicsCRMEntityMetadata body, Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateWithHttpMessagesAsync(metadataId, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }