Set TImeOut for RunCommand

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Blocker - P1
    • None
    • Affects Version/s: 2.4.2
    • Component/s: API, Documentation
    • Environment:
      OS : Windows 7
      .Net : 4.6.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Is there any way to reduce the default command timeout of 30000ms of RunCommand in below code?

      var command = new BsonDocument { { "dbstats", 1 } };
      
      var stats = database.RunCommand<BsonDocument>(command);
      
      Console.WriteLine(stats.ToJson()); // do something with the stats
      

      Thanks in advance.
      Irshad.

            Assignee:
            Robert Stam
            Reporter:
            Ummer Irshad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: