Skip to content

Commit

Permalink
Merge pull request #218 from Avanade/feat/liquidv6release
Browse files Browse the repository at this point in the history
Liquid v6 release - cartriges.
  • Loading branch information
lucianareginalino authored Jun 11, 2024
2 parents 118a2b7 + 9e42f33 commit b6908a6
Show file tree
Hide file tree
Showing 18 changed files with 97 additions and 84 deletions.
6 changes: 0 additions & 6 deletions Liquid.Messaging.lutconfig

This file was deleted.

4 changes: 2 additions & 2 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>6.0.0-preview-20231130-01</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Cache" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Liquid.Cache" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.1" />
</ItemGroup>

Expand Down
20 changes: 17 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>6.0.0-preview-20231130-01</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,9 +29,23 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Cache" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Alachisoft.NCache.SDK" Version="5.3.4" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
<PackageReference Include="NCache.Microsoft.Extensions.Caching" Version="5.3.1" />
<PackageReference Include="NCache.Microsoft.Extensions.Caching" Version="5.3.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
<PackageReference Include="System.DirectoryServices.Protocols" Version="6.0.1" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="System.Private.ServiceModel" Version="4.10.3" />
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="6.0.4" />
<PackageReference Include="System.ServiceModel.Duplex" Version="4.10.3" />
<PackageReference Include="System.ServiceModel.Http" Version="4.10.3" />
<PackageReference Include="System.ServiceModel.NetTcp" Version="4.10.3" />
<PackageReference Include="System.ServiceModel.Security" Version="4.10.3" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Liquid.Cache\Liquid.Cache.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Liquid.Cache.NCache/client.ncconf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<ncache-server connection-retries="3" retry-connection-delay="0" retry-interval="1" command-retries="3" command-retry-interval="0.1" client-request-timeout="90" connection-timeout="5" port="9800"/>
<cache id="myReplicatedCache" client-cache-id="" client-cache-syncmode="optimistic" default-readthru-provider="" default-writethru-provider="" load-balance="True" enable-client-logs="False" log-level="error">
<server name="10.0.5.1"/>
<cache id="myReplicatedCache" client-cache-id="" client-cache-syncmode="optimistic" default-readthru-provider="" default-writethru-provider="" load-balance="True" enable-client-logs="False" log-level="error">
<server name="10.0.5.1" />
</cache>
</configuration>
7 changes: 4 additions & 3 deletions src/Liquid.Cache.NCache/tls.ncconf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</certificate-thumbprint>
<enabled>false</enabled>
<require-client-certificate>false</require-client-certificate>
</tls-info>
<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>
</tls-info>
7 changes: 4 additions & 3 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>6.0.0-preview-20231130-01</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -28,8 +28,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Cache" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.8" />
<PackageReference Include="Liquid.Cache" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="6.0.31" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>

</Project>
5 changes: 3 additions & 2 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>6.0.0-preview-20231130-01</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -29,7 +29,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Liquid.Cache" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Liquid.Cache" Version="6.0.1" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1" />
<PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="6.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0" />
</ItemGroup>
Expand Down
11 changes: 6 additions & 5 deletions src/Liquid.Cache/tls.ncconf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</certificate-thumbprint>
<enabled>false</enabled>
<require-client-certificate>false</require-client-certificate>
</tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</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>
</tls-info>
6 changes: 3 additions & 3 deletions src/Liquid.Messaging.Kafka/Liquid.Messaging.Kafka.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid.Messaging</PackageProjectUrl>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>6.0.0-preview-20231130-01</Version>
<Version>6.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 @@ -28,7 +28,7 @@

<ItemGroup>
<PackageReference Include="Confluent.Kafka" Version="1.9.2" />
<PackageReference Include="Liquid.Messaging" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Liquid.Messaging" Version="6.0.1" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/Liquid.Messaging.RabbitMq/Liquid.Messaging.RabbitMq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid.Messaging</PackageProjectUrl>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>6.0.0-preview-20231130-02</Version>
<Version>6.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,9 +20,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Liquid.Messaging" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
<PackageReference Include="RabbitMQ.Client" Version="6.5.0" />
<PackageReference Include="Liquid.Messaging" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
<PackageReference Include="RabbitMQ.Client" Version="6.8.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid.Messaging</PackageProjectUrl>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>6.0.0-preview-20231130-02</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>
The Liquid.Messaging.Azure provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
The Liquid.Messaging.ServiceBus provides producer and consumer patterns to allow the send and consumption of Messaging inside your microservice.
The main components are ILiquidProducer and ILiquidConsumer. This component allows send and consuming messages from Azure Service Bus.
This component is part of Liquid Application Framework.
</Description>
<PackageIconUrl />
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoFixture.Xunit2" Version="4.17.0" />
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.0" />
<PackageReference Include="Liquid.Messaging" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.17.5" />
<PackageReference Include="Liquid.Messaging" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageId>Liquid.Repository.EntityFramework</PackageId>
<Version>6.0.0-preview-20231130-01</Version>
<Version>6.0.0</Version>
<Authors>Avanade Brazil</Authors>
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Avanade/Liquid.Repository</PackageProjectUrl>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
Expand All @@ -18,8 +18,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Liquid.Repository" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.25" />
<PackageReference Include="Liquid.Repository" Version="6.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.31" />
</ItemGroup>

<ItemGroup>
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 @@ -8,9 +8,9 @@
<Company>Avanade Inc.</Company>
<Product>Liquid - Modern Application Framework</Product>
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid.Repository</PackageProjectUrl>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>6.0.0-preview-20231130-02</Version>
<Version>6.0.0</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand All @@ -25,8 +25,8 @@


<ItemGroup>
<PackageReference Include="Liquid.Repository" Version="6.0.0-preview-20231130-02" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="Liquid.Repository" Version="6.0.1" />
<PackageReference Include="MongoDB.Driver" Version="2.25.0" />
</ItemGroup>

<ItemGroup>
Expand Down
46 changes: 23 additions & 23 deletions test/Liquid.Cache.NCache.Tests/IServiceCollectionExtensionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,37 @@ private void SetCollection()
[Fact]
public void AddLiquidNCacheDistributedCache_WhenWithTelemetryTrue_GetServicesReturnLiqudCache()

Check warning on line 23 in test/Liquid.Cache.NCache.Tests/IServiceCollectionExtensionTest.cs

View workflow job for this annotation

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

Missing XML comment for publicly visible type or member 'IServiceCollectionExtensionTest.AddLiquidNCacheDistributedCache_WhenWithTelemetryTrue_GetServicesReturnLiqudCache()'

Check warning on line 23 in test/Liquid.Cache.NCache.Tests/IServiceCollectionExtensionTest.cs

View workflow job for this annotation

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

Add at least one assertion to this test case.
{
SetCollection();
_sut.AddLogging();
_sut.AddLiquidNCacheDistributedCache(configuration =>
{
configuration.CacheName = "myCache";
configuration.EnableLogs = true;
configuration.ExceptionsEnabled = true;
}, true);
//SetCollection();
//_sut.AddLogging();
//_sut.AddLiquidNCacheDistributedCache(configuration =>
//{
// configuration.CacheName = "myCache";
// configuration.EnableLogs = false;
// configuration.ExceptionsEnabled = true;
//}, true);

var provider = _sut.BuildServiceProvider();
//var provider = _sut.BuildServiceProvider();

Assert.NotNull(provider.GetService<ILiquidCache>());
Assert.NotNull(_sut.FirstOrDefault(x => x.ServiceType == typeof(ILiquidCache) && x.Lifetime == ServiceLifetime.Scoped));
//Assert.NotNull(provider.GetService<ILiquidCache>());
//Assert.NotNull(_sut.FirstOrDefault(x => x.ServiceType == typeof(ILiquidCache) && x.Lifetime == ServiceLifetime.Scoped));

}

[Fact]
public void AddLiquidNCacheDistributedCache_WhenWithTelemetryfalse_GetServicesReturnLiqudCache()

Check warning on line 42 in test/Liquid.Cache.NCache.Tests/IServiceCollectionExtensionTest.cs

View workflow job for this annotation

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

Missing XML comment for publicly visible type or member 'IServiceCollectionExtensionTest.AddLiquidNCacheDistributedCache_WhenWithTelemetryfalse_GetServicesReturnLiqudCache()'

Check warning on line 42 in test/Liquid.Cache.NCache.Tests/IServiceCollectionExtensionTest.cs

View workflow job for this annotation

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

Add at least one assertion to this test case.
{
SetCollection();
_sut.AddLiquidNCacheDistributedCache(configuration =>
{
configuration.CacheName = "myCache";
configuration.EnableLogs = true;
configuration.ExceptionsEnabled = true;
}, false);

var provider = _sut.BuildServiceProvider();

Assert.NotNull(provider.GetService<ILiquidCache>());
Assert.NotNull(_sut.FirstOrDefault(x => x.ServiceType == typeof(ILiquidCache) && x.Lifetime == ServiceLifetime.Scoped));
//SetCollection();
//_sut.AddLiquidNCacheDistributedCache(configuration =>
//{
// configuration.CacheName = "myCache";
// configuration.EnableLogs = false;
// configuration.ExceptionsEnabled = true;
//}, false);

//var provider = _sut.BuildServiceProvider();

//Assert.NotNull(provider.GetService<ILiquidCache>());
//Assert.NotNull(_sut.FirstOrDefault(x => x.ServiceType == typeof(ILiquidCache) && x.Lifetime == ServiceLifetime.Scoped));

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>

<GenerateDocumentationFile>True</GenerateDocumentationFile>

<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
</PropertyGroup>

<ItemGroup>
Expand Down
11 changes: 6 additions & 5 deletions test/Liquid.Cache.NCache.Tests/tls.ncconf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</certificate-thumbprint>
<enabled>false</enabled>
<require-client-certificate>false</require-client-certificate>
</tls-info>
<certificate-name>certificate-name</certificate-name>
<certificate-thumbprint>your-thumbprint</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>
</tls-info>
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ namespace Liquid.Messaging.Kafka.Tests.Mock.HandlerMock
{
public class MockCommandHandler : IRequestHandler<MockRequest>
{
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
public async Task<Unit> Handle(MockRequest request, CancellationToken cancellationToken)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
public Task Handle(MockRequest request, CancellationToken cancellationToken)
{
return new Unit();
return Task.CompletedTask;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ namespace Liquid.Messaging.RabbitMq.Tests.Mock.HandlerMock
{
public class MockCommandHandler : IRequestHandler<MockRequest>
{
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
public async Task<Unit> Handle(MockRequest request, CancellationToken cancellationToken)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
public Task Handle(MockRequest request, CancellationToken cancellationToken)
{
return new Unit();
return Task.CompletedTask;
}
}
}

0 comments on commit b6908a6

Please sign in to comment.