IActivitySource.WalkActivitiesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Walk over recorded activities and call a function on them.
public System.Threading.Tasks.Task WalkActivitiesAsync (Func<Microsoft.Bot.Connector.IActivity,System.Threading.Tasks.Task> function, string channelId = default, string conversationId = default, DateTime oldest = default, System.Threading.CancellationToken cancel = default);
abstract member WalkActivitiesAsync : Func<Microsoft.Bot.Connector.IActivity, System.Threading.Tasks.Task> * string * string * DateTime * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WalkActivitiesAsync (function As Func(Of IActivity, Task), Optional channelId As String = Nothing, Optional conversationId As String = Nothing, Optional oldest As DateTime = Nothing, Optional cancel As CancellationToken = Nothing) As Task
Parameters
- channelId
- String
ChannelId to filter on or null for no filter.
- conversationId
- String
ConversationId to filter on or null for no filter.
- oldest
- DateTime
Oldest timestamp to include.
- cancel
- CancellationToken
Cancellation token.
Returns
Remarks
Activities are ordered by channel, then conversation, then time ascending.