/// <summary>
 /// Initializes a new instance of the <see cref="MongoSystemEventLogger"/> class.
 /// </summary>
 /// <param name="configuration">The configuration options.</param>
 public MongoSystemEventLogger(IMongoConfiguration configuration)
 {
     this.Configuration = configuration;
     MongoClient client = new MongoClient(configuration.ToMongoClientSettings());
     this.Server = client.GetServer();
     this.Database = this.Server.GetDatabase(configuration.Database);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MongoWorkflowDataAccess"/> class.
 /// </summary>
 /// <param name="configuration">The configuration options.</param>
 public MongoWorkflowDataAccess(IMongoConfiguration configuration)
 {
     this.Configuration = configuration;
     MongoClient client = new MongoClient(configuration.ToMongoClientSettings());
     this.Server = client.GetServer();
     this.Database = this.Server.GetDatabase(configuration.Database);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MongoDataAccess" /> class.
 /// </summary>
 /// <param name="configuration">The configuration options.</param>
 public MongoDataAccess(IMongoConfiguration configuration)
 {
     this.Configuration = configuration;
     MongoClient client = new MongoClient(configuration.ToMongoClientSettings());
     this.Server = client.GetServer();
     this.Database = this.Server.GetDatabase(configuration.Database);
     this.JsonSettings = new JsonWriterSettings
                         {
                             OutputMode = JsonOutputMode.Strict,
                             Indent = false,
                             NewLineChars = string.Empty
                         };
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MongoDataAccess"/> class.
 /// </summary>
 /// <param name="configuration">The configuration options.</param>
 public MongoDataAccess(IMongoConfiguration configuration)
 {
     MongoClient client = new MongoClient(configuration.ToMongoClientSettings());
     MongoServer server = client.GetServer();
     this.database = server.GetDatabase(configuration.Database);
 }