Skip to content

Instantly share code, notes, and snippets.

@kaushikraj
kaushikraj / flipflop.cs
Created February 2, 2014 16:39
C# implementation of inserting documents in mongodb with replicaset. The code inserts 100 documents and recovers from insert failure. (similar code to python's implementation at https://gist.github.com/mongolab-org/5347810)
using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Threading;
using System.IO;
namespace ConsoleApplication1
{
public class Stamp