public void UpdateStatus(BsonDocument memberStatus)
 {
     switch (memberStatus["state"].ToInt32())
     {
         case 1:
             Type = ReplicaSetMemberType.Primary;
             break;
         case 2:
             Type = ReplicaSetMemberType.Secondary;
             break;
         case 7:
             Type = ReplicaSetMemberType.Arbiter;
             break;
         default:
             Type = ReplicaSetMemberType.Unknown;
             break;
     }
 }
 public void Stop()
 {
     Process.Stop();
     Type = ReplicaSetMemberType.Unknown;
 }