Beispiel #1
0
        /// <inheritdoc/>
        public override void Notify(Request <WorkerNotificationArgs, Void> call)
        {
            BondServiceHelper.HandleRequest(call, (message) =>
            {
                var openBondMessage = message.ToOpenBond();

                m_masterService.ReceivedWorkerNotificationAsync(openBondMessage);
            });
        }
Beispiel #2
0
        /// <inheritdoc/>
        public override void AttachCompleted(Request <AttachCompletionInfo, Void> call)
        {
            BondServiceHelper.HandleRequest(call, (message) =>
            {
                var openBondMessage = message.ToOpenBond();

                m_masterService.AttachCompleted(openBondMessage);
            });
        }
Beispiel #3
0
        /// <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);
            });
        }
Beispiel #4
0
        /// <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);
            });
        }
Beispiel #5
0
 /// <inheritdoc/>
 public override void Heartbeat(Request <RpcMessageBase, Void> call)
 {
     BondServiceHelper.HandleRequest(call, req => { });
 }
Beispiel #6
0
 /// <summary>
 /// Heartbeat
 /// </summary>
 public override void Heartbeat(Request <RpcMessageBase, Void> call)
 {
     m_workerService.SetLastHeartbeatTimestamp();
     BondServiceHelper.HandleRequest(call, req => new Void());
 }