|
A number of admin related commands were removed as part of the work related to supporting credentials when running with authentication. This was done to keep the number of overloads from growing out of control. It is discussed in the Release Notes for 1.4:
https://github.com/mongodb/mongo-csharp-driver/blob/master/Release%20Notes/Release%20Notes%20v1.4.md
You can make a simple change in your code. Where you might have been using:
var command = ... // code to create command
|
server.RunAdminCommand(command);
|
simply use this instead:
var command = ... // code to create command
|
var adminDatabase = server.GetDatabase("admin"); // provide admin credentials if needed
|
adminDatabase.RunCommand(command);
|
|