IStorageClient interface

方法

initialize((error: any) => void)

初始化 Azure 表客户端

initialize((error: any) => void)

初始化存储客户端

insertOrReplace(string, string, any, boolean, (error: any, etag: any, response: IHttpResponse) => void)

插入或替换表中的实体

insertOrReplace(string, string, any, boolean, (error: any, etag: any, response: IHttpResponse) => void)

在存储区中插入或替换实体

retrieve(string, string, (error: any, entity: IBotEntity, response: IHttpResponse) => void)

从表中检索实体

retrieve(string, string, (error: any, entity: IBotEntity, response: IHttpResponse) => void)

从存储中检索实体

方法详细信息

initialize((error: any) => void)

初始化 Azure 表客户端

function initialize(callback: (error: any) => void)

参数

callback

(error: any) => void

initialize((error: any) => void)

初始化存储客户端

function initialize(callback: (error: any) => void)

参数

callback

(error: any) => void

insertOrReplace(string, string, any, boolean, (error: any, etag: any, response: IHttpResponse) => void)

插入或替换表中的实体

function insertOrReplace(partitionKey: string, rowKey: string, data: any, isCompressed: boolean, callback: (error: any, etag: any, response: IHttpResponse) => void)

参数

partitionKey

string

rowKey

string

data

any

isCompressed

boolean

callback

(error: any, etag: any, response: IHttpResponse) => void

insertOrReplace(string, string, any, boolean, (error: any, etag: any, response: IHttpResponse) => void)

在存储区中插入或替换实体

function insertOrReplace(partitionKey: string, rowKey: string, data: any, isCompressed: boolean, callback: (error: any, etag: any, response: IHttpResponse) => void)

参数

partitionKey

string

rowKey

string

data

any

isCompressed

boolean

callback

(error: any, etag: any, response: IHttpResponse) => void

retrieve(string, string, (error: any, entity: IBotEntity, response: IHttpResponse) => void)

从表中检索实体

function retrieve(partitionKey: string, rowKey: string, callback: (error: any, entity: IBotEntity, response: IHttpResponse) => void)

参数

partitionKey

string

rowKey

string

callback

(error: any, entity: IBotEntity, response: IHttpResponse) => void

retrieve(string, string, (error: any, entity: IBotEntity, response: IHttpResponse) => void)

从存储中检索实体

function retrieve(partitionKey: string, rowKey: string, callback: (error: any, entity: IBotEntity, response: IHttpResponse) => void)

参数

partitionKey

string

rowKey

string

callback

(error: any, entity: IBotEntity, response: IHttpResponse) => void