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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • drivers

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 44 weeks, 1 day ago