removing volatile
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>IntegrationTests</RootNamespace>
|
||||
<AssemblyName>IntegrationTests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
|
||||
@@ -253,7 +253,6 @@ namespace MongoDbGenericRepository
|
||||
/// Asynchronously returns a projected document matching the filter condition.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
/// <typeparam name="TProjection">The type representing the model you want to project to.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="projection">The projection expression.</param>
|
||||
@@ -346,7 +345,6 @@ namespace MongoDbGenericRepository
|
||||
/// Asynchronously returns a paginated list of the documents matching the filter condition.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="sortSelector">The property selector.</param>
|
||||
/// <param name="ascending">Order of the sorting.</param>
|
||||
@@ -366,7 +364,6 @@ namespace MongoDbGenericRepository
|
||||
/// Asynchronously returns a paginated list of the documents matching the filter condition.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="sortDefinition">The sort definition.</param>
|
||||
/// <param name="skipNumber">The number of documents you want to skip. Default value is 0.</param>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace MongoDbGenericRepository
|
||||
public abstract partial class BaseMongoRepository : IBaseMongoRepository_Create
|
||||
{
|
||||
private readonly object _initLock = new object();
|
||||
private volatile IMongoDbCreator _mongoDbCreator;
|
||||
private IMongoDbCreator _mongoDbCreator;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDbCreator field.
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace MongoDbGenericRepository
|
||||
{
|
||||
public abstract partial class BaseMongoRepository : IBaseMongoRepository_Delete
|
||||
{
|
||||
private volatile IMongoDbEraser _mongoDbEraser;
|
||||
private IMongoDbEraser _mongoDbEraser;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDbEraser used to delete documents.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
public abstract partial class BaseMongoRepository : IBaseMongoRepository_Index
|
||||
{
|
||||
private volatile IMongoDbIndexHandler _mongoDbIndexHandler;
|
||||
private IMongoDbIndexHandler _mongoDbIndexHandler;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to manage indexes.
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace MongoDbGenericRepository
|
||||
/// </summary>
|
||||
public abstract partial class BaseMongoRepository : IBaseMongoRepository_Update
|
||||
{
|
||||
private volatile IMongoDbUpdater _mongoDbUpdater;
|
||||
private IMongoDbUpdater _mongoDbUpdater;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to update data.
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace MongoDbGenericRepository
|
||||
public abstract partial class BaseMongoRepository<TKey> : IBaseMongoRepository_Create<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
private volatile IMongoDbCreator _mongoDbCreator;
|
||||
private IMongoDbCreator _mongoDbCreator;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to insert data.
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace MongoDbGenericRepository
|
||||
public abstract partial class BaseMongoRepository<TKey>: IBaseMongoRepository_Delete<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
private volatile IMongoDbEraser _mongoDbEraser;
|
||||
private IMongoDbEraser _mongoDbEraser;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to delete data.
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace MongoDbGenericRepository
|
||||
public abstract partial class BaseMongoRepository<TKey> : IBaseMongoRepository_Index<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
private volatile IMongoDbIndexHandler _mongoDbIndexHandler;
|
||||
private IMongoDbIndexHandler _mongoDbIndexHandler;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to manage indexes.
|
||||
|
||||
@@ -390,15 +390,7 @@ namespace MongoDbGenericRepository
|
||||
|
||||
#region Project
|
||||
|
||||
/// <summary>
|
||||
/// Asynchronously returns a projected document matching the filter condition.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDocument">The type representing a Document.</typeparam>
|
||||
/// <typeparam name="TKey">The type of the primary key for a Document.</typeparam>
|
||||
/// <typeparam name="TProjection">The type representing the model you want to project to.</typeparam>
|
||||
/// <param name="filter">A LINQ expression filter.</param>
|
||||
/// <param name="projection">The projection expression.</param>
|
||||
/// <param name="partitionKey">An optional partition key.</param>
|
||||
/// <inheritdoc cref="IReadOnlyMongoRepository"/>
|
||||
public virtual async Task<TProjection> ProjectOneAsync<TDocument, TProjection>(Expression<Func<TDocument, bool>> filter, Expression<Func<TDocument, TProjection>> projection, string partitionKey = null)
|
||||
where TDocument : IDocument<TKey>
|
||||
where TProjection : class
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace MongoDbGenericRepository
|
||||
public abstract partial class BaseMongoRepository<TKey> : IBaseMongoRepository_Update<TKey>
|
||||
where TKey : IEquatable<TKey>
|
||||
{
|
||||
private volatile IMongoDbUpdater _mongoDbUpdater;
|
||||
private IMongoDbUpdater _mongoDbUpdater;
|
||||
|
||||
/// <summary>
|
||||
/// The MongoDb accessor to update data.
|
||||
|
||||
Reference in New Issue
Block a user