Csharp driver how to cancel query after given time

I wonder if someone could help - using the mongo csharp driver is it possible to cancel an aggregation pipeline query on the server after a given amount of time?

I have found the MaxTime and MaxAwaitTime on AggregateOptions but reading the docs it’s not clear to me if this will cancel the query on the server or simply cancel the connection and allow the query to continue on the server. Could someone clearup what these two settings (MaxTime & MaxAwaitTime) actual do please?