Skip to content

Commit

Permalink
"OnEventActivityAsync" method call count changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfattah committed Apr 27, 2022
1 parent 9ea8e13 commit 1d18e1f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,8 @@ public override Task<ResourceResponse> UpdateActivityAsync(ITurnContext turnCont

private class TestActivityHandler : TeamsActivityHandler
{
public int NumberOfOnEventCalls { get; set; } = 0;

public List<string> Record { get; } = new List<string>();

// ConversationUpdate
Expand Down Expand Up @@ -1387,6 +1389,7 @@ protected override Task<TabResponse> OnTeamsTabSubmitAsync(ITurnContext<IInvokeA
protected override Task OnEventActivityAsync(ITurnContext<IEventActivity> turnContext, CancellationToken cancellationToken)
{
Record.Add(MethodBase.GetCurrentMethod().Name);
NumberOfOnEventCalls++;
return base.OnEventActivityAsync(turnContext, cancellationToken);
}

Expand Down

0 comments on commit 1d18e1f

Please sign in to comment.