你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MeshService class

表示 MeshService 的类。

构造函数

MeshService(ServiceFabricClientContext)

创建 MeshService。

方法

get(string, string, RequestOptionsBase)

获取有关具有给定名称的服务资源的信息。 信息包括服务的说明和其他属性。

get(string, string, RequestOptionsBase, ServiceCallback<ServiceResourceDescription>)
get(string, string, ServiceCallback<ServiceResourceDescription>)
list(string, RequestOptionsBase)

获取有关应用程序资源的所有服务的信息。 信息包括服务的说明和其他属性。

list(string, RequestOptionsBase, ServiceCallback<PagedServiceResourceDescriptionList>)
list(string, ServiceCallback<PagedServiceResourceDescriptionList>)

构造函数详细信息

MeshService(ServiceFabricClientContext)

创建 MeshService。

new MeshService(client: ServiceFabricClientContext)

参数

client
ServiceFabricClientContext

对服务客户端的引用。

方法详细信息

get(string, string, RequestOptionsBase)

获取有关具有给定名称的服务资源的信息。 信息包括服务的说明和其他属性。

function get(applicationResourceName: string, serviceResourceName: string, options?: RequestOptionsBase): Promise<MeshServiceGetResponse>

参数

applicationResourceName

string

应用程序的标识。

serviceResourceName

string

服务的标识。

options
RequestOptionsBase

可选参数

返回

承诺<Models.MeshServiceGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<ServiceResourceDescription>)

function get(applicationResourceName: string, serviceResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ServiceResourceDescription>)

参数

applicationResourceName

string

应用程序的标识。

serviceResourceName

string

服务的标识。

options
RequestOptionsBase

可选参数

get(string, string, ServiceCallback<ServiceResourceDescription>)

function get(applicationResourceName: string, serviceResourceName: string, callback: ServiceCallback<ServiceResourceDescription>)

参数

applicationResourceName

string

应用程序的标识。

serviceResourceName

string

服务的标识。

list(string, RequestOptionsBase)

获取有关应用程序资源的所有服务的信息。 信息包括服务的说明和其他属性。

function list(applicationResourceName: string, options?: RequestOptionsBase): Promise<MeshServiceListResponse>

参数

applicationResourceName

string

应用程序的标识。

options
RequestOptionsBase

可选参数

返回

承诺<Models.MeshServiceListResponse>

list(string, RequestOptionsBase, ServiceCallback<PagedServiceResourceDescriptionList>)

function list(applicationResourceName: string, options: RequestOptionsBase, callback: ServiceCallback<PagedServiceResourceDescriptionList>)

参数

applicationResourceName

string

应用程序的标识。

options
RequestOptionsBase

可选参数

list(string, ServiceCallback<PagedServiceResourceDescriptionList>)

function list(applicationResourceName: string, callback: ServiceCallback<PagedServiceResourceDescriptionList>)

参数

applicationResourceName

string

应用程序的标识。