public GetUsersReply GetUsers(GetUsersRequest request) { List <User> users = new List <User>(); lock (this) { users = serverManagement.GetUsers(request.User, request.Url); } if (users.Count > 0) { Console.WriteLine($"Client {request.User.Name} with Id {request.User.Id} request all users at {request.Url}"); GetUsersReply reply = new GetUsersReply(); reply.Users.AddRange(users); return(reply); } else { Console.WriteLine($"Client {request.User.Name} with Id {request.User.Id} FAILED to get all users at {request.Url}"); GetUsersReply reply = new GetUsersReply(); reply.Users.AddRange(users); return(reply); } }