/// <summary> /// Add reference to adoxio_events /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='eventId'> /// key: adoxio_eventid /// </param> /// <param name='fieldname'> /// key: fieldname /// </param> /// <param name='odataid'> /// reference value /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddReferenceAsync(this IEvents operations, string eventId, string fieldname, Odataid odataid = default, CancellationToken cancellationToken = default) { (await operations.AddReferenceWithHttpMessagesAsync(eventId, fieldname, odataid, null, cancellationToken).ConfigureAwait(false)).Dispose(); }