Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity Class Reference

Activity entity for table storage. More...

Inheritance diagram for Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity:

Public Member Functions

 ActivityEntity ()
 Empty constructor. More...
 
 ActivityEntity (IActivity activity)
 Construct from an IActivity. More...
 
override void ReadEntity (IDictionary< string, EntityProperty > properties, OperationContext operationContext)
 Read entity with distributed activity. More...
 
override IDictionary< string, EntityProperty > WriteEntity (OperationContext operationContext)
 Write out entity with distributed activity. More...
 

Static Public Member Functions

static string GeneratePartitionKey (string channelId, string conversationId)
 Generate a partition key given channelId and conversationId . More...
 
static string GenerateRowKey (DateTime timestamp)
 Generate row key for ascending timestamp . More...
 

Properties

IActivity Activity [get, set]
 Logged activity. More...
 
string From [get, set]
 Channel identifier for sender. More...
 
string Recipient [get, set]
 Channel identifier for receiver. More...
 
double Version [get, set]
 Version number for the underlying activity. More...
 

Detailed Description

Activity entity for table storage.

Definition at line 65 of file TableLogger.cs.

Constructor & Destructor Documentation

Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.ActivityEntity ( )
inline

Empty constructor.

Definition at line 70 of file TableLogger.cs.

Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.ActivityEntity ( IActivity  activity)
inline

Construct from an IActivity.

Parameters
activity

Definition at line 77 of file TableLogger.cs.

Member Function Documentation

static string Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.GeneratePartitionKey ( string  channelId,
string  conversationId 
)
inlinestatic

Generate a partition key given channelId and conversationId .

Parameters
channelIdChannel where activity happened.
conversationIdConversation where activity happened.
Returns
Partition key.

Definition at line 163 of file TableLogger.cs.

static string Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.GenerateRowKey ( DateTime  timestamp)
inlinestatic

Generate row key for ascending timestamp .

Parameters
timestampTimestamp of activity.
Returns

Definition at line 173 of file TableLogger.cs.

override void Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.ReadEntity ( IDictionary< string, EntityProperty >  properties,
OperationContext  operationContext 
)
inline

Read entity with distributed activity.

Parameters
properties
operationContext

Definition at line 137 of file TableLogger.cs.

override IDictionary<string, EntityProperty> Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.WriteEntity ( OperationContext  operationContext)
inline

Write out entity with distributed activity.

Parameters
operationContext
Returns

Definition at line 115 of file TableLogger.cs.

Property Documentation

IActivity Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.Activity
getset

Logged activity.

Definition at line 106 of file TableLogger.cs.

string Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.From
getset

Channel identifier for sender.

Definition at line 95 of file TableLogger.cs.

string Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.Recipient
getset

Channel identifier for receiver.

Definition at line 100 of file TableLogger.cs.

double Microsoft.Bot.Builder.Azure.TableLogger.ActivityEntity.Version
getset

Version number for the underlying activity.

Definition at line 90 of file TableLogger.cs.


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