DocumentDbBotDataStore DocumentDbBotDataStore DocumentDbBotDataStore Constructors

Definition

Overloads

DocumentDbBotDataStore(IDocumentClient, String, String) DocumentDbBotDataStore(IDocumentClient, String, String) DocumentDbBotDataStore(IDocumentClient, String, String)

Creates an instance of the IBotDataStore<T> that uses the Azure DocumentDb.

DocumentDbBotDataStore(Uri, String, String, String) DocumentDbBotDataStore(Uri, String, String, String) DocumentDbBotDataStore(Uri, String, String, String)

Creates an instance of the IBotDataStore<T> that uses the Azure DocumentDb.

DocumentDbBotDataStore(IDocumentClient, String, String) DocumentDbBotDataStore(IDocumentClient, String, String) DocumentDbBotDataStore(IDocumentClient, String, String)

Creates an instance of the IBotDataStore<T> that uses the Azure DocumentDb.

public DocumentDbBotDataStore (Microsoft.Azure.Documents.IDocumentClient documentClient, string databaseId = "botdb", string collectionId = "botcollection");
new Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore : Microsoft.Azure.Documents.IDocumentClient * string * string -> Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore
Public Sub New (documentClient As IDocumentClient, Optional databaseId As String = "botdb", Optional collectionId As String = "botcollection")

Parameters

documentClient
IDocumentClient IDocumentClient IDocumentClient

The DocumentDb client to use.

databaseId
String String String

The name of the DocumentDb database to use.

collectionId
String String String

The name of the DocumentDb collection to use.

DocumentDbBotDataStore(Uri, String, String, String) DocumentDbBotDataStore(Uri, String, String, String) DocumentDbBotDataStore(Uri, String, String, String)

Creates an instance of the IBotDataStore<T> that uses the Azure DocumentDb.

public DocumentDbBotDataStore (Uri serviceEndpoint, string authKey, string databaseId = "botdb", string collectionId = "botcollection");
new Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore : Uri * string * string * string -> Microsoft.Bot.Builder.Azure.DocumentDbBotDataStore
Public Sub New (serviceEndpoint As Uri, authKey As String, Optional databaseId As String = "botdb", Optional collectionId As String = "botcollection")

Parameters

serviceEndpoint
Uri Uri Uri

The service endpoint to use to create the client.

authKey
String String String

The authorization key or resource token to use to create the client.

databaseId
String String String

The name of the DocumentDb database to use.

collectionId
String String String

The name of the DocumentDb collection to use.

Remarks

The service endpoint can be obtained from the Azure Management Portal. If you

        are connecting using one of the Master Keys, these can be obtained along with

        the endpoint from the Azure Management Portal If however you are connecting as

        a specific DocumentDB User, the value passed to authKeyOrResourceToken is the

        ResourceToken obtained from the permission feed for the user.

        Using Direct connectivity, wherever possible, is recommended.

Applies to