Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1185

A PCL (or Portable Profile) version of MongoDB.Bson

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON
    • None

    Description

      Hi,

      I was wondering, if a portable profile would be on the cards, and if pull requests would be accepted regarding the same.

      I ran through a quick test for portability, currently only MongoDB.Bson of the latest 2.0.0-beta, and found while, not non-trivial, could be quite comfortably made compatible with Win/WP8.1, Xamarin.IOS and Xamarin.Android.

      If this is a possible future, then perhaps, a checklist could be started here, for the same.

      Things to be done:

      1. Change ConcurrentDictionary, and ConcurrentStack with portable implementations (Preferably, from immutable collections) .
      2. Some of the IdGenerators have to be adapted. (Eg: AscendingGuidGenerator - ProcessId implementations)
      3. IO classes use Serializable Attribute, which is not available. Any practical issues of not using them?
      4. Same as 3, for Exceptions
      5. Some implementations will have to be moved to a separate, platform specific library, say classes that use IPAddress.

      Would like to hear if this a feasible path. Cheers!

      Attachments

        Activity

          People

            Unassigned Unassigned
            prasannavl Prasanna V. Loganathar
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: