Ejemplo n.º 1
0
        /// <inheritdoc/>
        public override Task <RpcResponse> Notify(WorkerNotificationArgs message, ServerCallContext context)
        {
            var bondMessage = message.ToOpenBond();

            m_masterService.ReceivedWorkerNotificationAsync(bondMessage);
            return(Task.FromResult(new RpcResponse()));
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        public override async Task <RpcResponse> Notify(WorkerNotificationArgs message, ServerCallContext context)
        {
            var bondMessage = message.ToOpenBond();

            var notifyTask = m_masterService.ReceivedWorkerNotificationAsync(bondMessage);

            if (EngineEnvironmentSettings.InlineWorkerXLGHandling)
            {
                await notifyTask;
            }
            else
            {
                notifyTask.Forget();
            }

            return(new RpcResponse());
        }