/// <summary> /// Delete the property. The semantics are intended to be lazy, note the use of LoadAsync at the start. /// </summary> /// <param name="turnContext">The turn context.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public async Task DeleteAsync(ITurnContext turnContext, CancellationToken cancellationToken) { await _botState.LoadAsync(turnContext, false, cancellationToken).ConfigureAwait(false); await _botState.DeletePropertyValueAsync(turnContext, Name, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Delete the property. /// </summary> /// <param name="turnContext">The turn context.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public Task DeleteAsync(ITurnContext turnContext, CancellationToken cancellationToken) { return(_botState.DeletePropertyValueAsync(turnContext, Name, cancellationToken)); }
/// <summary> /// Delete the property. /// </summary> /// <param name="turnContext">turn context</param> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> public Task DeleteAsync(ITurnContext turnContext) { return(_botState.DeletePropertyValueAsync(turnContext, Name)); }