Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8521

.Net Driver 2.2 Getting started is not up-to-date - showing a reference to GridFSOptions instead of GridFSBucketOptions

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: drivers
    • Labels:

      On the documentation page for the C# driver, the getting started page is not up to date with the correct method options.

      Current documentation
      IMongoDatabase database;
      
      var bucket = new GridFSBucket(database, new GridFSOptions
      {
          BucketName = "videos",
          ChunkSizeBytes = 1048576, // 1MB
          WriteConcern = WriteConcern.Majority,
          ReadPreference = ReadPeference.Secondary
      });
      

      However, the driver expects a GridFSBucketOptions.

            Assignee:
            Unassigned Unassigned
            Reporter:
            tomer.yakir@mongodb.com Tomer Yakir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 21 weeks, 6 days ago