How to set query/connection timeout - dotnet?

I’ve tried the following two methods, but neither seem to actually limit the amount of time a query is allowed to run

var settings = MongoClientSettings.FromConnectionString(connectionString);
settings.MaxConnectionLifeTime = TimeSpan.FromSeconds(5);
settings.SocketTimeout = TimeSpan.FromSeconds(5);

What am I missing here??