Skip to content

Commit

Permalink
Remove references to MissingMemberException (#4196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Delaney authored Jun 30, 2020
1 parent 61e4e5d commit 6771134
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libraries/Microsoft.Bot.Builder/BotState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,10 @@ public async Task DeleteAsync(ITurnContext turnContext, CancellationToken cancel
/// Get the property value. The semantics are intended to be lazy, note the use of LoadAsync at the start.
/// </summary>
/// <param name="turnContext">The context object for this turn.</param>
/// <param name="defaultValueFactory">Defines the default value. Invoked when no value been set for the requested state property. If defaultValueFactory is defined as null, the MissingMemberException will be thrown if the underlying property is not set.</param>
/// <param name="defaultValueFactory">Defines the default value.
/// Invoked when no value been set for the requested state property.
/// If defaultValueFactory is defined as null in that case, the method returns null and
/// <see cref="SetAsync(ITurnContext, T, CancellationToken)">SetAsync</see> is not called.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
public async Task<T> GetAsync(ITurnContext turnContext, Func<T> defaultValueFactory, CancellationToken cancellationToken)
Expand Down
1 change: 0 additions & 1 deletion libraries/Microsoft.Bot.Builder/IStatePropertyAccessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public interface IStatePropertyAccessor<T> : IStatePropertyInfo
/// <param name="turnContext">Turn Context.</param>
/// <param name="defaultValueFactory">Function which defines the property value to be returned if no value has been set.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <exception cref="MissingMemberException">The property has no value and no <paramref name="defaultValueFactory"/>.</exception>
/// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns>
Task<T> GetAsync(ITurnContext turnContext, Func<T> defaultValueFactory = null, CancellationToken cancellationToken = default(CancellationToken));

Expand Down

0 comments on commit 6771134

Please sign in to comment.