GlobalBrokeredServiceContainer.ProfferedServiceBroker.IRemoteServiceBroker.CancelServiceRequestAsync 方法

定义

当客户端无法或不会完成与所请求服务的连接时,释放由于先前调用 RequestServiceChannelAsync(ServiceMoniker, ServiceActivationOptions, CancellationToken) 而分配的资源。

System.Threading.Tasks.Task IRemoteServiceBroker.CancelServiceRequestAsync (Guid serviceRequestId);
abstract member Microsoft.ServiceHub.Framework.IRemoteServiceBroker.CancelServiceRequestAsync : Guid -> System.Threading.Tasks.Task
override this.Microsoft.ServiceHub.Framework.IRemoteServiceBroker.CancelServiceRequestAsync : Guid -> System.Threading.Tasks.Task
Function CancelServiceRequestAsync (serviceRequestId As Guid) As Task Implements IRemoteServiceBroker.CancelServiceRequestAsync

参数

serviceRequestId
Guid

连接说明中不会遵循 的值 RequestId

返回

表示取消请求的任务。

实现

适用于