ILanguageClientCustomMessage2.AttachForCustomMessageAsync(JsonRpc) 方法

定义

此方法在语言服务器已激活但尚未建立连接的情况下调用。

public:
 System::Threading::Tasks::Task ^ AttachForCustomMessageAsync(StreamJsonRpc::JsonRpc ^ rpc);
public System.Threading.Tasks.Task AttachForCustomMessageAsync (StreamJsonRpc.JsonRpc rpc);
abstract member AttachForCustomMessageAsync : StreamJsonRpc.JsonRpc -> System.Threading.Tasks.Task
Public Function AttachForCustomMessageAsync (rpc As JsonRpc) As Task

参数

rpc
JsonRpc

JsonRpc用于将自定义消息发送到语言服务器的对象。

返回

Task

当语言客户端准备好将自定义消息发送到语言服务器时完成的任务。

适用于