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)); }
public Task <RpcCallResult <Unit> > AttachAsync(OpenBond.BuildStartData message) { var grpcMessage = message.ToGrpc(); return(m_connectionManager.CallAsync( (callOptions) => m_client.AttachAsync(grpcMessage, options: callOptions), "Attach", waitForConnection: true)); }
public Task <RpcCallResult <Unit> > AttachAsync(OpenBond.BuildStartData message) { var grpcMessage = message.ToGrpc(); return(m_connectionManager.CallAsync( async(callOptions) => { using (await m_attachAcquireAsync(callOptions.CancellationToken)) { return await m_client.AttachAsync(grpcMessage, options: callOptions); } }, "Attach", waitForConnection: true)); }
public async Task <RpcCallResult <Unit> > AttachAsync(OpenBond.BuildStartData message, CancellationToken cancellationToken) { var grpcMessage = message.ToGrpc(); var attachment = await m_connectionManager.CallAsync( async (callOptions) => await m_client.AttachAsync(grpcMessage, options: callOptions), "Attach", cancellationToken, waitForConnection : true); if (attachment.Succeeded) { m_connectionManager.OnAttachmentCompleted(); } return(attachment); }
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); }