I have a wrapper class for IMongoCollection<T>
Collection.
I expose a function for AsQueryable()
:
public virtual IQueryable<T> AsQueryable()
{
return Collection.AsQueryable();
}
I need to intercept the execution of queries (start and end of the query) e.g. to catch errors and general logging or log long queries execution times.
How can I achieve that?