I need to set profiling level via Mongo C# Driver.
Client.GetDatabase("test") returns IMongoDatabase interface which resolves to MongoDB.Driver.MongoDatabaseImpl at runtime.
According to MongoDB .NET Driver API Documentation MongoDatase class has a SetProfilingLevel method which I can not cast to at runtime.
BTW I also installed Legacy Driver version 2.0.1 since documentation says that SetProfilingLevel method is in it.