Skip to content
Browse files

Start making not users types internal.

Connection is now internal.
  • Loading branch information...
1 parent 60e3d41 commit c2f6d87fe9d06db5c7d4de975e36eef08a6ee850 @lanwin lanwin committed Jun 12, 2010
View
2 source/MongoDB.Tests/IntegrationTests/Connections/TestConnection.cs
@@ -10,7 +10,7 @@ namespace MongoDB.IntegrationTests.Connections
[TestFixture]
public class TestConnection
{
- protected void WriteBadMessage(Connection conn)
+ private void WriteBadMessage(Connection conn)
{
//Write a bad message to the socket to force mongo to shut down our connection.
var writer = new BinaryWriter(conn.GetStream());
View
17 source/MongoDB/CollectionMetadata.cs
@@ -19,16 +19,17 @@ public class CollectionMetadata
private Document _options;
/// <summary>
- /// Initializes a new instance of the <see cref = "CollectionMetadata" /> class.
+ /// Initializes a new instance of the <see cref="CollectionMetadata"/> class.
/// </summary>
- /// <param name = "configuration">The configuration.</param>
- /// <param name = "databaseName">Name of the database.</param>
- /// <param name = "name">The name.</param>
- /// <param name = "connection">The connection.</param>
- public CollectionMetadata(MongoConfiguration configuration, string databaseName, string name, Connection connection)
+ /// <param name="configuration">The configuration.</param>
+ /// <param name="databaseName">Name of the database.</param>
+ /// <param name="collectionName">The name.</param>
+ /// <param name="connection">The connection.</param>
+ internal CollectionMetadata(MongoConfiguration configuration, string databaseName, string collectionName, Connection connection)
{
- _fullName = databaseName + "." + name;
- _name = name;
+ //Todo: Add public constrcutors for users to call
+ _fullName = databaseName + "." + collectionName;
+ _name = collectionName;
_database = new MongoDatabase(configuration, connection, databaseName);
}
View
2 source/MongoDB/Connections/Connection.cs
@@ -18,7 +18,7 @@ namespace MongoDB.Connections
/// by a new fresh connection.
/// </remarks>
/// </summary>
- public class Connection : IDisposable
+ internal class Connection : IDisposable
{
private readonly IConnectionFactory _factory;
private RawConnection _connection;
View
2 source/MongoDB/Connections/ConnectionFactory.cs
@@ -7,7 +7,7 @@ namespace MongoDB.Connections
/// <summary>
///
/// </summary>
- public static class ConnectionFactory
+ internal static class ConnectionFactory
{
private static readonly TimeSpan MaintenaceWakeup = TimeSpan.FromSeconds(10);
private static readonly Timer MaintenanceTimer = new Timer(o => OnMaintenaceWakeup());
View
10 source/MongoDB/Cursor_1.cs
@@ -33,10 +33,10 @@ public class Cursor<T> : ICursor<T> where T : class
/// <param name="connection">The conn.</param>
/// <param name="databaseName">Name of the database.</param>
/// <param name="collectionName">Name of the collection.</param>
- public Cursor(ISerializationFactory serializationFactory, Connection connection, string databaseName, string collectionName)
+ internal Cursor(ISerializationFactory serializationFactory, Connection connection, string databaseName, string collectionName)
{
+ //Todo: add public constrcutor for users to call
IsModifiable = true;
- //Todo: should be internal
_connection = connection;
_databaseName = databaseName;
FullCollectionName = databaseName + "." + collectionName;
@@ -54,10 +54,10 @@ public Cursor(ISerializationFactory serializationFactory, Connection connection,
/// <param name="limit">The limit.</param>
/// <param name="skip">The skip.</param>
/// <param name="fields">The fields.</param>
- public Cursor(ISerializationFactory serializationFactory, Connection connection, string databaseName, string collectionName, object spec, int limit, int skip, object fields)
+ internal Cursor(ISerializationFactory serializationFactory, Connection connection, string databaseName, string collectionName, object spec, int limit, int skip, object fields)
: this(serializationFactory, connection, databaseName, collectionName)
- {
- //Todo: should be internal
+ {
+ //Todo: add public constrcutor for users to call
if (spec == null)
spec = new Document();
_spec = spec;
View
11 source/MongoDB/DatabaseMetadata.cs
@@ -16,13 +16,14 @@ public class DatabaseMetadata
private readonly string _name;
/// <summary>
- /// Initializes a new instance of the <see cref = "DatabaseMetadata" /> class.
+ /// Initializes a new instance of the <see cref="DatabaseMetadata"/> class.
/// </summary>
- /// <param name = "configuration">The configuration.</param>
- /// <param name = "name">The name.</param>
- /// <param name = "conn">The conn.</param>
- public DatabaseMetadata(MongoConfiguration configuration, string name, Connection conn)
+ /// <param name="configuration">The configuration.</param>
+ /// <param name="name">The name.</param>
+ /// <param name="conn">The conn.</param>
+ internal DatabaseMetadata(MongoConfiguration configuration, string name, Connection conn)
{
+ //Todo: add public constrcutor for users to call
_configuration = configuration;
_connection = conn;
_name = name;
View
4 source/MongoDB/Exceptions/MongoConnectionException.cs
@@ -50,7 +50,7 @@ public MongoConnectionException(string message, string connectionString, MongoSe
/// </summary>
/// <param name="message">The message.</param>
/// <param name="connection">The connection.</param>
- public MongoConnectionException(string message, Connection connection)
+ internal MongoConnectionException(string message, Connection connection)
:this(message,connection,null){}
/// <summary>
@@ -59,7 +59,7 @@ public MongoConnectionException(string message, Connection connection)
/// <param name="message">The message.</param>
/// <param name="connection">The connection.</param>
/// <param name="innerException">The inner exception.</param>
- public MongoConnectionException(string message, Connection connection, Exception innerException)
+ internal MongoConnectionException(string message, Connection connection, Exception innerException)
:base(message,innerException){
if(connection == null)
throw new ArgumentNullException("connection");
View
8 source/MongoDB/MongoCollection_1.cs
@@ -26,11 +26,11 @@ public class MongoCollection<T> : IMongoCollection<T> where T : class
/// <param name="configuration">The configuration.</param>
/// <param name="connection">The connection.</param>
/// <param name="databaseName">Name of the database.</param>
- /// <param name="name">The name.</param>
- public MongoCollection(MongoConfiguration configuration, Connection connection, string databaseName, string name)
+ /// <param name="collectionName">The name.</param>
+ internal MongoCollection(MongoConfiguration configuration, Connection connection, string databaseName, string collectionName)
{
- //Todo: This should be internal
- Name = name;
+ //Todo: add public constructors for users to call
+ Name = collectionName;
DatabaseName = databaseName;
_configuration = configuration;
_connection = connection;
View
3 source/MongoDB/MongoDatabase.cs
@@ -34,6 +34,7 @@ public MongoDatabase(MongoConfiguration configuration)
ConnectionFactory.GetConnection(configuration.ConnectionString),
new MongoConnectionStringBuilder(configuration.ConnectionString).Database)
{
+ //Todo: Add check for null
}
/// <summary>
@@ -42,7 +43,7 @@ public MongoDatabase(MongoConfiguration configuration)
/// <param name="configuration">The configuration.</param>
/// <param name="connection">The conn.</param>
/// <param name="name">The name.</param>
- public MongoDatabase(MongoConfiguration configuration, Connection connection, string name)
+ internal MongoDatabase(MongoConfiguration configuration, Connection connection, string name)
{
if(configuration == null)
throw new ArgumentNullException("configuration");
View
361 source/MongoDB/Obsolete/MongoCollection.cs
@@ -6,363 +6,394 @@
namespace MongoDB
{
/// <summary>
- ///
/// </summary>
public class MongoCollection : IMongoCollection
{
- readonly MongoCollection<Document> _collection;
+ private readonly MongoCollection<Document> _collection;
/// <summary>
- /// Gets the database.
+ /// Initializes a new instance of the <see cref = "MongoCollection&lt;T&gt;" /> class.
+ /// </summary>
+ /// <param name = "configuration">The configuration.</param>
+ /// <param name = "connection">The connection.</param>
+ /// <param name = "databaseName">Name of the database.</param>
+ /// <param name = "name">The name.</param>
+ internal MongoCollection(MongoConfiguration configuration, Connection connection, string databaseName, string name)
+ {
+ //Todo: add public constrcutor for users to call
+ _collection = new MongoCollection<Document>(configuration, connection, databaseName, name);
+ }
+
+ /// <summary>
+ /// Gets the database.
/// </summary>
/// <value>The database.</value>
- public IMongoDatabase Database {
+ public IMongoDatabase Database
+ {
get { return _collection.Database; }
}
/// <summary>
- /// Gets the name.
+ /// Gets the name.
/// </summary>
/// <value>The name.</value>
- public string Name {
+ public string Name
+ {
get { return _collection.Name; }
}
/// <summary>
- /// Gets the name of the database.
+ /// Gets the name of the database.
/// </summary>
/// <value>The name of the database.</value>
- public string DatabaseName {
+ public string DatabaseName
+ {
get { return _collection.DatabaseName; }
}
/// <summary>
- /// Gets the full name.
+ /// Gets the full name.
/// </summary>
/// <value>The full name.</value>
- public string FullName {
+ public string FullName
+ {
get { return _collection.FullName; }
}
/// <summary>
- /// Gets the meta data.
+ /// Gets the meta data.
/// </summary>
/// <value>The meta data.</value>
- public CollectionMetadata MetaData {
- get { return _collection.MetaData; }
- }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="MongoCollection&lt;T&gt;"/> class.
- /// </summary>
- /// <param name="configuration">The configuration.</param>
- /// <param name="connection">The connection.</param>
- /// <param name="databaseName">Name of the database.</param>
- /// <param name="name">The name.</param>
- public MongoCollection(MongoConfiguration configuration, Connection connection, string databaseName, string name)
+ public CollectionMetadata MetaData
{
- _collection = new MongoCollection<Document>(configuration, connection, databaseName, name);
+ get { return _collection.MetaData; }
}
/// <summary>
- /// Finds the one.
+ /// Finds the one.
/// </summary>
- /// <param name="spec">The spec.</param>
+ /// <param name = "spec">The spec.</param>
/// <returns></returns>
- public Document FindOne(Document spec){
+ public Document FindOne(Document spec)
+ {
return _collection.FindOne(spec);
}
/// <summary>
- /// Finds all.
+ /// Finds all.
/// </summary>
/// <returns></returns>
- public ICursor FindAll(){
+ public ICursor FindAll()
+ {
return new Cursor(_collection.FindAll());
}
/// <summary>
- /// Finds the specified where.
+ /// Finds the specified where.
/// </summary>
- /// <param name="where">The where.</param>
+ /// <param name = "where">The where.</param>
/// <returns></returns>
- public ICursor Find(string @where){
+ public ICursor Find(string @where)
+ {
return new Cursor(_collection.Find(@where));
}
/// <summary>
- /// Finds the specified spec.
+ /// Finds the specified spec.
/// </summary>
- /// <param name="spec">The spec.</param>
+ /// <param name = "spec">The spec.</param>
/// <returns></returns>
- public ICursor Find(Document spec){
+ public ICursor Find(Document spec)
+ {
return new Cursor(_collection.Find(spec));
}
/// <summary>
- /// Finds the specified spec.
+ /// Finds the specified spec.
/// </summary>
- /// <param name="spec">The spec.</param>
- /// <param name="limit">The limit.</param>
- /// <param name="skip">The skip.</param>
+ /// <param name = "spec">The spec.</param>
+ /// <param name = "limit">The limit.</param>
+ /// <param name = "skip">The skip.</param>
/// <returns></returns>
- public ICursor Find(Document spec, int limit, int skip){
+ public ICursor Find(Document spec, int limit, int skip)
+ {
return new Cursor(_collection.Find(spec, limit, skip));
}
/// <summary>
- /// Finds the specified spec.
+ /// Finds the specified spec.
/// </summary>
- /// <param name="spec">The spec.</param>
- /// <param name="limit">The limit.</param>
- /// <param name="skip">The skip.</param>
- /// <param name="fields">The fields.</param>
+ /// <param name = "spec">The spec.</param>
+ /// <param name = "limit">The limit.</param>
+ /// <param name = "skip">The skip.</param>
+ /// <param name = "fields">The fields.</param>
/// <returns></returns>
- public ICursor Find(Document spec, int limit, int skip, Document fields){
+ public ICursor Find(Document spec, int limit, int skip, Document fields)
+ {
return new Cursor(_collection.Find(spec, limit, skip, fields));
}
/// <summary>
- /// Executes a query and atomically applies a modifier operation to the first document returning the original document
- /// by default.
+ /// Executes a query and atomically applies a modifier operation to the first document returning the original document
+ /// by default.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="spec"><see cref="Document"/> to find the document.</param>
- /// <returns>A <see cref="Document"/></returns>
- public Document FindAndModify (Document document, Document spec)
+ /// <param name = "document">The document.</param>
+ /// <param name = "spec"><see cref = "Document" /> to find the document.</param>
+ /// <returns>A <see cref = "Document" /></returns>
+ public Document FindAndModify(Document document, Document spec)
{
return _collection.FindAndModify(document, spec);
}
/// <summary>
- /// Executes a query and atomically applies a modifier operation to the first document returning the original document
- /// by default.
+ /// Executes a query and atomically applies a modifier operation to the first document returning the original document
+ /// by default.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="spec"><see cref="Document"/> to find the document.</param>
- /// <param name="sort"><see cref="Document"/> containing the names of columns to sort on with the values being the</param>
- /// <returns>A <see cref="Document"/></returns>
- /// <see cref="IndexOrder"/>
- public Document FindAndModify (Document document, Document spec, Document sort)
+ /// <param name = "document">The document.</param>
+ /// <param name = "spec"><see cref = "Document" /> to find the document.</param>
+ /// <param name = "sort"><see cref = "Document" /> containing the names of columns to sort on with the values being the</param>
+ /// <returns>A <see cref = "Document" /></returns>
+ /// <see cref = "IndexOrder" />
+ public Document FindAndModify(Document document, Document spec, Document sort)
{
return _collection.FindAndModify(document, spec, sort);
}
/// <summary>
- /// Executes a query and atomically applies a modifier operation to the first document returning the original document
- /// by default.
+ /// Executes a query and atomically applies a modifier operation to the first document returning the original document
+ /// by default.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="spec"><see cref="Document"/> to find the document.</param>
- /// <param name="returnNew">if set to <c>true</c> [return new].</param>
- /// <returns>A <see cref="Document"/></returns>
- public Document FindAndModify (Document document, Document spec, bool returnNew)
+ /// <param name = "document">The document.</param>
+ /// <param name = "spec"><see cref = "Document" /> to find the document.</param>
+ /// <param name = "returnNew">if set to <c>true</c> [return new].</param>
+ /// <returns>A <see cref = "Document" /></returns>
+ public Document FindAndModify(Document document, Document spec, bool returnNew)
{
return _collection.FindAndModify(document, spec, returnNew);
}
/// <summary>
- /// Executes a query and atomically applies a modifier operation to the first document returning the original document
- /// by default.
+ /// Executes a query and atomically applies a modifier operation to the first document returning the original document
+ /// by default.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="spec"><see cref="Document"/> to find the document.</param>
- /// <param name="sort"><see cref="Document"/> containing the names of columns to sort on with the values being the
- /// <see cref="IndexOrder"/></param>
- /// <param name="returnNew">if set to <c>true</c> [return new].</param>
- /// <returns>A <see cref="Document"/></returns>
- public Document FindAndModify (Document document, Document spec, Document sort, bool returnNew)
+ /// <param name = "document">The document.</param>
+ /// <param name = "spec"><see cref = "Document" /> to find the document.</param>
+ /// <param name = "sort"><see cref = "Document" /> containing the names of columns to sort on with the values being the
+ /// <see cref = "IndexOrder" /></param>
+ /// <param name = "returnNew">if set to <c>true</c> [return new].</param>
+ /// <returns>A <see cref = "Document" /></returns>
+ public Document FindAndModify(Document document, Document spec, Document sort, bool returnNew)
{
return _collection.FindAndModify(document, spec, sort, returnNew);
}
-
+
/// <summary>
- /// Maps the reduce.
+ /// Maps the reduce.
/// </summary>
/// <returns></returns>
- public MapReduce MapReduce(){
+ public MapReduce MapReduce()
+ {
return _collection.MapReduce();
}
/// <summary>
- /// Counts this instance.
+ /// Counts this instance.
/// </summary>
/// <returns></returns>
- public long Count(){
+ public long Count()
+ {
return _collection.Count();
}
/// <summary>
- /// Counts the specified spec.
+ /// Counts the specified spec.
/// </summary>
- /// <param name="spec">The spec.</param>
+ /// <param name = "spec">The spec.</param>
/// <returns></returns>
- public long Count(Document spec){
+ public long Count(Document spec)
+ {
return _collection.Count(spec);
}
/// <summary>
- /// Inserts the specified doc.
+ /// Inserts the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- public void Insert(Document document){
+ /// <param name = "document">The document.</param>
+ public void Insert(Document document)
+ {
_collection.Insert(document);
}
/// <summary>
- /// Inserts the specified doc.
+ /// Inserts the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Insert(Document document, bool safemode){
+ /// <param name = "document">The document.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Insert(Document document, bool safemode)
+ {
_collection.Insert(document, safemode);
}
/// <summary>
- /// Inserts the specified docs.
+ /// Inserts the specified docs.
/// </summary>
- /// <param name="documents">The docs.</param>
- public void Insert(IEnumerable<Document> documents){
+ /// <param name = "documents">The docs.</param>
+ public void Insert(IEnumerable<Document> documents)
+ {
_collection.Insert(documents);
}
/// <summary>
- /// Inserts the specified docs.
+ /// Inserts the specified docs.
/// </summary>
- /// <param name="documents">The docs.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Insert(IEnumerable<Document> documents, bool safemode){
+ /// <param name = "documents">The docs.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Insert(IEnumerable<Document> documents, bool safemode)
+ {
_collection.Insert(documents, safemode);
}
/// <summary>
- /// Deletes the specified selector.
+ /// Deletes the specified selector.
/// </summary>
- /// <param name="selector">The selector.</param>
+ /// <param name = "selector">The selector.</param>
[Obsolete("Use Remove instead")]
- public void Delete(Document selector){
+ public void Delete(Document selector)
+ {
_collection.Delete(selector);
}
/// <summary>
- /// Removes the specified selector.
+ /// Removes the specified selector.
/// </summary>
- /// <param name="selector">The selector.</param>
- public void Remove(Document selector){
+ /// <param name = "selector">The selector.</param>
+ public void Remove(Document selector)
+ {
_collection.Remove(selector);
}
/// <summary>
- /// Deletes the specified selector.
+ /// Deletes the specified selector.
/// </summary>
- /// <param name="selector">The selector.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
[Obsolete("Use Remove instead")]
- public void Delete(Document selector, bool safemode){
+ public void Delete(Document selector, bool safemode)
+ {
_collection.Delete(selector, safemode);
}
/// <summary>
- /// Removes the specified selector.
+ /// Removes the specified selector.
/// </summary>
- /// <param name="selector">The selector.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Remove(Document selector, bool safemode){
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Remove(Document selector, bool safemode)
+ {
_collection.Remove(selector, safemode);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Update(Document document, bool safemode){
- _collection.Save(document,safemode);
+ /// <param name = "document">The document.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Update(Document document, bool safemode)
+ {
+ _collection.Save(document, safemode);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- public void Update(Document document){
+ /// <param name = "document">The document.</param>
+ public void Update(Document document)
+ {
_collection.Save(document);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- public void Update(Document document, Document selector){
- _collection.Update(document,selector);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ public void Update(Document document, Document selector)
+ {
+ _collection.Update(document, selector);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Update(Document document, Document selector, bool safemode){
- _collection.Update(document,selector,safemode);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Update(Document document, Document selector, bool safemode)
+ {
+ _collection.Update(document, selector, safemode);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- /// <param name="flags">The flags.</param>
- public void Update(Document document, Document selector, UpdateFlags flags){
- _collection.Update(document,selector,flags);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "flags">The flags.</param>
+ public void Update(Document document, Document selector, UpdateFlags flags)
+ {
+ _collection.Update(document, selector, flags);
}
/// <summary>
- /// Updates the specified doc.
+ /// Updates the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- /// <param name="flags">The flags.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Update(Document document, Document selector, UpdateFlags flags, bool safemode){
- _collection.Update(document,selector,flags,safemode);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "flags">The flags.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Update(Document document, Document selector, UpdateFlags flags, bool safemode)
+ {
+ _collection.Update(document, selector, flags, safemode);
}
/// <summary>
- /// Updates all.
+ /// Updates all.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- public void UpdateAll(Document document, Document selector){
- _collection.UpdateAll(document,selector);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ public void UpdateAll(Document document, Document selector)
+ {
+ _collection.UpdateAll(document, selector);
}
/// <summary>
- /// Updates all.
+ /// Updates all.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="selector">The selector.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void UpdateAll(Document document, Document selector, bool safemode){
- _collection.UpdateAll(document,selector,safemode);
+ /// <param name = "document">The document.</param>
+ /// <param name = "selector">The selector.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void UpdateAll(Document document, Document selector, bool safemode)
+ {
+ _collection.UpdateAll(document, selector, safemode);
}
/// <summary>
- /// Saves the specified doc.
+ /// Saves the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- public void Save(Document document){
+ /// <param name = "document">The document.</param>
+ public void Save(Document document)
+ {
_collection.Save(document);
}
/// <summary>
- /// Saves the specified doc.
+ /// Saves the specified doc.
/// </summary>
- /// <param name="document">The document.</param>
- /// <param name="safemode">if set to <c>true</c> [safemode].</param>
- public void Save(Document document, bool safemode){
- _collection.Save(document,safemode);
+ /// <param name = "document">The document.</param>
+ /// <param name = "safemode">if set to <c>true</c> [safemode].</param>
+ public void Save(Document document, bool safemode)
+ {
+ _collection.Save(document, safemode);
}
-
}
-}
+}

0 comments on commit c2f6d87

Please sign in to comment.
Something went wrong with that request. Please try again.