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

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

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