/// <inheritdoc/> public override Task <RpcResponse> Attach(BuildStartData message, ServerCallContext context) { var bondMessage = message.ToOpenBond(); m_workerService.AttachCore(bondMessage); return(Task.FromResult(new RpcResponse())); }
/// <summary> /// Initiates the worker with information about the build and returns data about the worker /// </summary> public override void Attach(Request <BuildStartData, Void> call) { BondServiceHelper.HandleRequest(call, (message) => { var openBondMessage = message.ToOpenBond(); m_workerService.AttachCore(openBondMessage); }); }
/// <inheritdoc/> public override Task <RpcResponse> Attach(BuildStartData message, ServerCallContext context) { var bondMessage = message.ToOpenBond(); GrpcSettings.ParseHeader(context.RequestHeaders, out string sender, out string _, out string _); m_workerService.AttachCore(bondMessage, sender); return(Task.FromResult(new RpcResponse())); }
// Server methods to better emulate the scenarios. // These should emulate what the homonymous methods do in GrpcWorkerServer public void Attach(BuildStartData message) { var bondMessage = message.ToOpenBond(); WorkerService.AttachCore(bondMessage, "OrchestratorName"); }