This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Singleton for MongoDB connection (just a sample - for an idea) | |
/// </summary> | |
public class ConnectionInformation | |
{ | |
#region fields | |
private static ConnectionInformation instance; | |
private static object syncLock = new object(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using System; | |
using System.Threading; | |
using System.IO; | |
namespace ConsoleApplication1 | |
{ | |
public class Stamp |