Microsoft.Bot.Builder.History.IActivitySource Interface Reference

Interface for getting activities from some source. More...

Public Member Functions

IEnumerable< IActivityActivities (string channelId, string conversationId, DateTime oldest=default(DateTime))
 Produce an enumeration over conversation. More...
 
Task WalkActivitiesAsync (Func< IActivity, Task > function, string channelId=null, string conversationId=null, DateTime oldest=default(DateTime), CancellationToken cancel=default(CancellationToken))
 Walk over recorded activities and call a function on them. More...
 

Detailed Description

Interface for getting activities from some source.

Definition at line 45 of file IActivitySource.cs.

Member Function Documentation

IEnumerable<IActivity> Microsoft.Bot.Builder.History.IActivitySource.Activities ( string  channelId,
string  conversationId,
DateTime  oldest = default(DateTime) 
)

Produce an enumeration over conversation.

Parameters
channelIdChannel where conversation happened.
conversationIdConversation within the channel.
oldestEarliest time to include.
Returns
Enumeration over the recorded activities.

Activities are ordered by channel, then conversation, then time ascending.

Task Microsoft.Bot.Builder.History.IActivitySource.WalkActivitiesAsync ( Func< IActivity, Task >  function,
string  channelId = null,
string  conversationId = null,
DateTime  oldest = default(DateTime),
CancellationToken  cancel = default(CancellationToken) 
)

Walk over recorded activities and call a function on them.

Parameters
functionFunction to apply to each actitivty.
channelIdChannelId to filter on or null for no filter.
conversationIdConversationId to filter on or null for no filter.
oldestOldest timestamp to include.
cancelCancellation token.
Returns

Activities are ordered by channel, then conversation, then time ascending.


The documentation for this interface was generated from the following file: