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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: drivers
    • Labels:
    • Last comment by Customer:
      true

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tomer.yakir Tomer Yakir
            Participants:
            Last commenter:
            Nathan Leniz Nathan Leniz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              43 weeks, 6 days ago
              Date of 1st Reply: