private IAgent?Authenticate(ServerCallContext context)
        {
            var header = context.RequestHeaders.FirstOrDefault(entry => ProtocolConstants.AgentKeyHeaderName.Equals(entry.Key, StringComparison.OrdinalIgnoreCase));

            if (header == null)
            {
                return(null);
            }

            return(agentManager.Authenticate(header.Value));
        }