コード例 #1
0
        public Task <RpcCallResult <Unit> > AttachCompletedAsync(OpenBond.AttachCompletionInfo message)
        {
            var grpcMessage = message.ToGrpc();

            return(m_connectionManager.CallAsync(
                       (callOptions) => m_client.AttachCompletedAsync(grpcMessage, options: callOptions),
                       "AttachCompleted",
                       waitForConnection: true));
        }
コード例 #2
0
        public async Task <RpcCallResult <Unit> > AttachCompletedAsync(OpenBond.AttachCompletionInfo message)
        {
            Contract.Assert(m_initialized);

            var grpcMessage          = message.ToGrpc();
            var attachmentCompletion = await m_connectionManager.CallAsync(
                async (callOptions) => await m_client.AttachCompletedAsync(grpcMessage, options: callOptions),
                "AttachCompleted",
                waitForConnection : true);

            if (attachmentCompletion.Succeeded)
            {
                m_connectionManager.OnAttachmentCompleted();
            }

            return(attachmentCompletion);
        }