Microsoft.Bot.Builder.ConnectorEx.ResumptionContext Class Reference

The resumption context that is responsible for loading/persisting the ResumptionData. More...

Public Member Functions

 ResumptionContext (Func< IBotDataBag > makeBotDataBag)
 
async Task< ResumptionDataLoadDataAsync (CancellationToken token)
 Load ResumptionData from botDataBag. More...
 
async Task SaveDataAsync (ResumptionData data, CancellationToken token)
 Save the data in botDataBag. More...
 

Public Attributes

const string RESUMPTION_CONTEXT_KEY = "ResumptionContext"
 The key for ResumptionData in botDataBag. More...
 

Detailed Description

The resumption context that is responsible for loading/persisting the ResumptionData.

Definition at line 33 of file ResumptionContext.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.ConnectorEx.ResumptionContext.ResumptionContext ( Func< IBotDataBag makeBotDataBag)
inline

Definition at line 46 of file ResumptionContext.cs.

Member Function Documentation

async Task<ResumptionData> Microsoft.Bot.Builder.ConnectorEx.ResumptionContext.LoadDataAsync ( CancellationToken  token)
inline

Load ResumptionData from botDataBag.

Parameters
tokenThe cancellation token.

Definition at line 56 of file ResumptionContext.cs.

async Task Microsoft.Bot.Builder.ConnectorEx.ResumptionContext.SaveDataAsync ( ResumptionData  data,
CancellationToken  token 
)
inline

Save the data in botDataBag.

Parameters
dataThe ResumptionData.
tokenThe cancellation token.

Definition at line 68 of file ResumptionContext.cs.

Member Data Documentation

const string Microsoft.Bot.Builder.ConnectorEx.ResumptionContext.RESUMPTION_CONTEXT_KEY = "ResumptionContext"

The key for ResumptionData in botDataBag.

Definition at line 39 of file ResumptionContext.cs.


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