Esempio n. 1
0
        /// <summary>
        /// Sets a value for a custom field on a card.
        /// </summary>
        /// <param name="card">The card on which to set the value.</param>
        /// <param name="value">The vaue to set.</param>
        /// <param name="ct">(Optional) A cancellation token for async processing.</param>
        /// <returns>The custom field instance.</returns>
        public async Task <ICustomField <double?> > SetValueForCard(ICard card, double?value,
                                                                    CancellationToken ct = default(CancellationToken))
        {
            NotNullRule <ICard> .Instance.Validate(null, card);

            NullableHasValueRule <double> .Instance.Validate(null, value);

            return(await _context.SetValueOnCard(card, value, ct));
        }
Esempio n. 2
0
 /// <summary>
 /// Sets a value for a custom field on a card.
 /// </summary>
 /// <param name="card">The card on which to set the value.</param>
 /// <param name="value">The vaue to set.</param>
 /// <param name="ct">(Optional) A cancellation token for async processing.</param>
 /// <returns>The custom field instance.</returns>
 public async Task <ICustomField <double?> > SetValueForCard(ICard card, double?value,
                                                             CancellationToken ct = default(CancellationToken))
 {
     return(await _context.SetValueOnCard(card, value, ct));
 }