/// <inheritdoc/> public override void Notify(Request <WorkerNotificationArgs, Void> call) { BondServiceHelper.HandleRequest(call, (message) => { var openBondMessage = message.ToOpenBond(); m_masterService.ReceivedWorkerNotificationAsync(openBondMessage); }); }
/// <inheritdoc/> public override void AttachCompleted(Request <AttachCompletionInfo, Void> call) { BondServiceHelper.HandleRequest(call, (message) => { var openBondMessage = message.ToOpenBond(); m_masterService.AttachCompleted(openBondMessage); }); }
/// <summary> /// Exits the pips from the request /// </summary> public override void ExecutePips(Request <PipBuildRequest, Void> call) { BondServiceHelper.HandleRequest(call, (message) => { var openBondMessage = message.ToOpenBond(); m_workerService.ExecutePipsCore(openBondMessage); }); }
/// <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 void Heartbeat(Request <RpcMessageBase, Void> call) { BondServiceHelper.HandleRequest(call, req => { }); }
/// <summary> /// Heartbeat /// </summary> public override void Heartbeat(Request <RpcMessageBase, Void> call) { m_workerService.SetLastHeartbeatTimestamp(); BondServiceHelper.HandleRequest(call, req => new Void()); }