Mongodb C# Driver - Why "server.Shutdown();" doesn't exist anymore?

36 views
Skip to first unread message

Matthias Weingärtner

unread,
Mar 30, 2016, 11:23:33 AM3/30/16
to mongodb-user
Hello,

Today i discovered that the c# driver version 2.2.3 doesn't have the Shutdown() method on the MongoServer Object anymore.

Why is this? Is there a work around?

Thanks in Advance!

Craig Wilson

unread,
Mar 30, 2016, 12:12:45 PM3/30/16
to mongodb-user
It was removed because it should never be used from most applications. In the case that a specialized application needs, shutdown is simply a command that can be send using db.RunCommand("{shutdown: 1}").  

Matthias Weingärtner

unread,
Mar 30, 2016, 12:56:58 PM3/30/16
to mongodb-user
Thank you!
Reply all
Reply to author
Forward
0 new messages