Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Liquid.Cache.Memory/Liquid.Cache.Memory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,8 +29,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Liquid.Cache.NCache/Liquid.Cache.NCache.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,8 +29,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Alachisoft.NCache.SDK" Version="5.3.4" />
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Alachisoft.NCache.SDK" Version="5.3.5" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="NCache.Microsoft.Extensions.Caching" Version="5.3.3" />
</ItemGroup>
<ItemGroup>
Expand Down
7 changes: 5 additions & 2 deletions src/Liquid.Cache.NCache/tls.ncconf
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</certificate-thumbprint>
<server-certificate-cn>certificate-name</server-certificate-cn>
<server-certificate-thumbprint>your-thumbprint</server-certificate-thumbprint>
<client-certificate-cn>certificate-name</client-certificate-cn>
<client-certificate-thumbprint>your-thumbprint</client-certificate-thumbprint>
<enable>false</enable>
<enable-client-server-tls>false</enable-client-server-tls>
<use-mutual-tls-for-client-to-server>false</use-mutual-tls-for-client-to-server>
<protocol-version>tls12</protocol-version>
</tls-info>
4 changes: 2 additions & 2 deletions src/Liquid.Cache.Redis/Liquid.Cache.Redis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="8.0.6" />
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
</ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions src/Liquid.Cache.SqlServer/Liquid.Cache.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,11 +29,11 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
<PackageReference Include="Azure.Identity" Version="1.13.2" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.0.2" />
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2021</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProjectGuid>{AD354CF6-C132-4B5D-944D-0DFE21509781}</ProjectGuid>
<IsPackable>true</IsPackable>
Expand All @@ -19,8 +19,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Elastic.Apm.NetCoreAll" Version="1.27.3" />
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Elastic.Apm.NetCoreAll" Version="1.31.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="MediatR" Version="12.3.0" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/Liquid.Dataverse/Liquid.Dataverse.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<Version>8.0.0-rc-01</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<Description>Adapter for Microsoft Dataverse integrations.
Expand All @@ -18,9 +18,9 @@ This component is part of Liquid Application Framework.</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-rc-01" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.71.1" />
<PackageReference Include="Microsoft.PowerPlatform.Dataverse.Client" Version="1.2.5" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.72.0" />
<PackageReference Include="Microsoft.PowerPlatform.Dataverse.Client" Version="1.2.7" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="8.0.1" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Liquid.GenAi.OpenAi/Liquid.GenAi.OpenAi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-rc-01</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -32,7 +32,7 @@

<ItemGroup>
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0-rc-01" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/Liquid.Messaging.Kafka/Liquid.Messaging.Kafka.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-05</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>
The Liquid.Messaging.Kafka provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
Expand All @@ -27,8 +27,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="2.4.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-09" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Confluent.Kafka" Version="2.10.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>
The Liquid.Messaging.RabbitMq provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
Expand All @@ -20,8 +20,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
</ItemGroup>

Expand Down
5 changes: 3 additions & 2 deletions src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public event Func<ConsumerMessageEventArgs<TEntity>, CancellationToken, Task> ConsumeMessageAsync;

///<inheritdoc/>
public event Func<ConsumerErrorEventArgs, Task> ProcessErrorAsync;

Check warning on line 33 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

The event 'RabbitMqConsumer<TEntity>.ProcessErrorAsync' is never used

Check warning on line 33 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

The event 'RabbitMqConsumer<TEntity>.ProcessErrorAsync' is never used

Check warning on line 33 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

The event 'RabbitMqConsumer<TEntity>.ProcessErrorAsync' is never used

/// <summary>
/// Initilize an instance of <see cref="RabbitMqConsumer{TEntity}"/>
Expand All @@ -46,7 +46,7 @@
}

///<inheritdoc/>
public void RegisterMessageHandler()
public async Task RegisterMessageHandler(CancellationToken cancellationToken = default)

Check warning on line 49 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 49 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 49 in src/Liquid.Messaging.RabbitMq/RabbitMqConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
if (ConsumeMessageAsync is null)
{
Expand All @@ -57,7 +57,8 @@

var consumer = new EventingBasicConsumer(_channelModel);

consumer.Received += async (model, deliverEvent) => { await MessageHandler(deliverEvent, new CancellationToken()); };

consumer.Received += async (model, deliverEvent) => { await MessageHandler(deliverEvent, cancellationToken); };

_channelModel.BasicConsume(_settings.Queue, _autoAck, consumer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>
The Liquid.Messaging.ServiceBus provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
Expand All @@ -21,8 +21,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.5" />
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.19.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/Liquid.Messaging.ServiceBus/ServiceBusConsumer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
///<inheritdoc/>
public class ServiceBusConsumer<TEntity> : ILiquidConsumer<TEntity>
{
private ServiceBusProcessor _messageProcessor;

Check warning on line 17 in src/Liquid.Messaging.ServiceBus/ServiceBusConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove the field '_messageProcessor' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)

Check warning on line 17 in src/Liquid.Messaging.ServiceBus/ServiceBusConsumer.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove the field '_messageProcessor' and declare it as a local variable in the relevant methods. (https://rules.sonarsource.com/csharp/RSPEC-1450)

private readonly IServiceBusFactory _factory;

Expand All @@ -38,7 +38,7 @@
}

///<inheritdoc/>
public void RegisterMessageHandler()
public async Task RegisterMessageHandler(CancellationToken cancellationToken = default)
{
if (ConsumeMessageAsync is null)
{
Expand All @@ -52,8 +52,7 @@
_messageProcessor.ProcessMessageAsync += MessageHandler;
_messageProcessor.ProcessErrorAsync += ErrorHandler;

_messageProcessor.StartProcessingAsync().GetAwaiter();

await _messageProcessor.StartProcessingAsync(cancellationToken);
}

/// <summary>
Expand Down Expand Up @@ -90,9 +89,10 @@
/// </summary>
/// <param name="args"><see cref="ConsumerErrorEventArgs"/></param>
/// <exception cref="MessagingConsumerException"></exception>
protected Task ProcessError(ConsumerErrorEventArgs args)
protected static Task ProcessError(ConsumerErrorEventArgs args)
{
throw new MessagingConsumerException(args.Exception);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<PackageId>Liquid.Repository.EntityFramework</PackageId>
<Version>8.0.0-beta-03</Version>
<Version>8.0.0</Version>
<Authors>Avanade Brazil</Authors>
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
Expand All @@ -17,8 +17,8 @@
<NoWarn>1701;1702;1584;1658</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.6" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.15" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\logo.png">
Expand Down
1 change: 0 additions & 1 deletion src/Liquid.Repository.Mongo/Exceptions/MongoException.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Liquid.Core.Exceptions;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;

namespace Liquid.Repository.Mongo.Exceptions
{
Expand All @@ -11,7 +10,7 @@
/// <seealso cref="LiquidException" />
[Serializable]
[ExcludeFromCodeCoverage]
public class MongoException : LiquidException

Check warning on line 13 in src/Liquid.Repository.Mongo/Exceptions/MongoException.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Update this implementation of 'ISerializable' to conform to the recommended serialization pattern. Add a 'protected' constructor 'MongoException(SerializationInfo, StreamingContext)'. (https://rules.sonarsource.com/csharp/RSPEC-3925)
{
///<inheritdoc/>
public MongoException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Liquid.Core.Extensions.DependencyInjection;
using Liquid.Core.Implementations;
using Liquid.Core.Interfaces;
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Settings;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Repository.Mongo/IMongoClientFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Liquid.Core.Settings;
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Settings;
using MongoDB.Driver;

namespace Liquid.Repository.Mongo
Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Repository.Mongo/IMongoDataContext.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Liquid.Core.Interfaces;
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Settings;
using MongoDB.Driver;

namespace Liquid.Repository.Mongo
Expand All @@ -8,7 +8,7 @@
/// Mongo database context interface.
/// </summary>
/// <seealso cref="ILiquidDataContext" />
public interface IMongoDataContext<TEntity> : ILiquidDataContext

Check warning on line 11 in src/Liquid.Repository.Mongo/IMongoDataContext.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

'TEntity' is not used in the interface. (https://rules.sonarsource.com/csharp/RSPEC-2326)
{
/// <summary>
/// Gets configurations set from <typeparamref name="TEntity"/> attribute.
Expand Down Expand Up @@ -36,7 +36,7 @@
IClientSessionHandle ClientSessionHandle { get; }

/// <summary>
/// Sets an instance of <see cref="MongoDatabaseBase"/> into de property Database,

Check warning on line 39 in src/Liquid.Repository.Mongo/IMongoDataContext.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

XML comment has cref attribute 'MongoDatabaseBase' that could not be resolved
/// which is obtained from MongoClient by database name.<see cref="MongoClient.GetDatabase(string, MongoDatabaseSettings)"/>.
/// </summary>
/// <param name="databaseName">The name of database.</param>
Expand Down
8 changes: 4 additions & 4 deletions src/Liquid.Repository.Mongo/Liquid.Repository.Mongo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -25,9 +25,9 @@


<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-06" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="MongoDB.Driver" Version="2.26.0" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="MongoDB.Driver" Version="3.4.0" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/Liquid.Repository.Mongo/MongoClientFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Liquid.Core.Settings;
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Exceptions;
using Liquid.Repository.Mongo.Exceptions;
using Liquid.Repository.Mongo.Settings;
using Microsoft.Extensions.Options;
using MongoDB.Driver;
using System;
Expand Down
5 changes: 2 additions & 3 deletions src/Liquid.Repository.Mongo/MongoDataContext.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Exceptions;
using Microsoft.Extensions.Options;
using Liquid.Repository.Mongo.Exceptions;
using Liquid.Repository.Mongo.Settings;
using MongoDB.Driver;
using System;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/Liquid.Repository.Mongo/MongoRepository.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Liquid.Core.Entities;
using Liquid.Core.Interfaces;
using Liquid.Repository.Mongo.Configuration;
using Liquid.Repository.Mongo.Extensions;
using Liquid.Repository.Mongo.Settings;
using MongoDB.Bson;
using MongoDB.Driver;
using System;
Expand Down Expand Up @@ -50,7 +50,7 @@
{

var collection = MongoDataContext.Database.GetCollection<TEntity>(_settings.CollectionName);
await collection.InsertOneAsync(entity, MongoDataContext?.ClientSessionHandle);

Check warning on line 53 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)

}

Expand All @@ -59,7 +59,7 @@
{
var collection = MongoDataContext.Database.GetCollection<TEntity>(_settings.CollectionName);

var response = await collection.FindAsync(new BsonDocument(), MongoDataContext?.ClientSessionHandle);

Check warning on line 62 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
var returnValue = response.ToEnumerable();

return returnValue;
Expand All @@ -69,8 +69,8 @@
public async Task<TEntity> FindByIdAsync(TIdentifier id)
{
var collection = MongoDataContext.Database.GetCollection<TEntity>(_settings.CollectionName);
var result = await collection.FindAsync(e => e.Id.Equals(id), MongoDataContext?.ClientSessionHandle);

Check warning on line 72 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
var returnValue = result.SingleOrDefault();

Check warning on line 73 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Await SingleOrDefaultAsync instead. (https://rules.sonarsource.com/csharp/RSPEC-6966)

return returnValue;
}
Expand All @@ -79,7 +79,7 @@
public async Task RemoveByIdAsync(TIdentifier id)
{
var collection = MongoDataContext.Database.GetCollection<TEntity>(_settings.CollectionName);
await collection.DeleteOneAsync(e => e.Id.Equals(id), MongoDataContext?.ClientSessionHandle);

Check warning on line 82 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)
}

///<inheritdoc/>
Expand All @@ -87,7 +87,7 @@
{

var collection = MongoDataContext.Database.GetCollection<TEntity>(_settings.CollectionName);
await collection.ReplaceOneAsync(x => x.Id.Equals(entity.Id), entity, new ReplaceOptions { IsUpsert = true }, MongoDataContext?.ClientSessionHandle);

Check warning on line 90 in src/Liquid.Repository.Mongo/MongoRepository.cs

View workflow job for this annotation

GitHub Actions / call-reusable-build-workflow / build

Remove this unnecessary check for null. (https://rules.sonarsource.com/csharp/RSPEC-2589)

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Liquid.Repository.Mongo.Configuration
namespace Liquid.Repository.Mongo.Settings
{
/// <summary>
/// Properties set list of service bus configurations.
Expand Down
4 changes: 2 additions & 2 deletions src/Liquid.Repository.OData/Liquid.Repository.OData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-04</Version>
<Version>8.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -31,7 +31,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Core" Version="8.0.0-beta-07" />
<PackageReference Include="Liquid.Core" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Simple.OData.Client" Version="6.0.1" />
</ItemGroup>
Expand Down
Loading
Loading