Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
* Create rule for MongoDb GuidSerializer default rule
  • Loading branch information
Danny Logsdon committed Nov 30, 2024
1 parent 02cc450 commit 391ac24
Show file tree
Hide file tree
Showing 18 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.AzureDataTables</PackageId>
<Title>ServiceBricks.Cache.AzureDataTables</Title>
Expand Down Expand Up @@ -36,6 +36,6 @@
<ProjectReference Include="..\ServiceBricks.Cache\ServiceBricks.Cache.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.Cosmos</PackageId>
<Title>ServiceBricks.Cache.Cosmos</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache.EntityFrameworkCore\ServiceBricks.Cache.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.EntityFrameworkCore</PackageId>
<Title>ServiceBricks.Cache.EntityFrameworkCore</Title>
Expand Down Expand Up @@ -36,6 +36,6 @@
<ProjectReference Include="..\ServiceBricks.Cache\ServiceBricks.Cache.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.InMemory</PackageId>
<Title>ServiceBricks.Cache.InMemory</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache.EntityFrameworkCore\ServiceBricks.Cache.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.Microservice</PackageId>
<Title>ServiceBricks.Cache.Microservice</Title>
Expand Down Expand Up @@ -34,7 +34,7 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ServiceBricks.Cache\ServiceBricks.Cache.csproj" PrivateAssets="All">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using ServiceBricks.Storage.MongoDb;

namespace ServiceBricks.Cache.MongoDb
{
Expand All @@ -24,6 +25,7 @@ public static IServiceCollection AddServiceBricksCacheMongoDb(this IServiceColle

// AI: Add module business rules
CacheMongoDbModuleAddRule.Register(BusinessRuleRegistry.Instance);
MongoDbGuidSerializerStandardRule.Register(BusinessRuleRegistry.Instance);
ModuleSetStartedRule<CacheMongoDbModule>.Register(BusinessRuleRegistry.Instance);

return services;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ public override IResponse ExecuteRule(IBusinessRuleContext context)
var services = e.ServiceCollection;
//var configuration = e.Configuration;

BsonSerializer.RegisterSerializer(new GuidSerializer(GuidRepresentation.Standard));

// AI: Add the storage services for the module for each domain object
services.AddScoped<IStorageRepository<CacheData>, CacheStorageRepository<CacheData>>();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.MongoDb</PackageId>
<Title>ServiceBricks.Cache.MongoDb</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache\ServiceBricks.Cache.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.Postgres</PackageId>
<Title>ServiceBricks.Cache.Postgres</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache.EntityFrameworkCore\ServiceBricks.Cache.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.SqlServer</PackageId>
<Title>ServiceBricks.Cache.SqlServer</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache.EntityFrameworkCore\ServiceBricks.Cache.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache.Sqlite</PackageId>
<Title>ServiceBricks.Cache.Sqlite</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Cache.EntityFrameworkCore\ServiceBricks.Cache.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.2" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/V1/ServiceBricks.Cache/ServiceBricks.Cache.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>1.1.0</Version>
<Version>1.1.2</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Cache</PackageId>
<Title>ServiceBricks.Cache</Title>
Expand Down Expand Up @@ -33,7 +33,7 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks" Version="1.1.0" />
<PackageReference Include="ServiceBricks" Version="1.1.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
Expand Down
5 changes: 2 additions & 3 deletions src/V1/Tests/WebAppNet8/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ServiceBricks;

//using ServiceBricks.Logging;
using ServiceBricks.Logging;

namespace WebApp
{
Expand All @@ -24,7 +23,7 @@ public static IHostBuilder CreateHostBuilder(string[] args)
logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
logging.AddConsole();
logging.AddDebug();
//logging.AddServiceBricksLogging();
logging.AddServiceBricksLogging();
})
.ConfigureWebHostDefaults(webBuilder =>
{
Expand Down
4 changes: 2 additions & 2 deletions src/V1/Tests/WebAppNet8/StartupMongoDb.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ServiceBricks;
using ServiceBricks.Cache.MongoDb;

//using ServiceBricks.Logging.InMemory;
using ServiceBricks.Logging.MongoDb;
using WebApp.Extensions;

namespace WebApp
Expand All @@ -18,7 +18,7 @@ public StartupMongoDb(IConfiguration configuration)
public virtual void ConfigureServices(IServiceCollection services)
{
services.AddServiceBricks(Configuration);
//services.AddServiceBricksLoggingInMemory(Configuration);
services.AddServiceBricksLoggingMongoDb(Configuration);
services.AddServiceBricksCacheMongoDb(Configuration);
ModuleRegistry.Instance.Register(new WebApp.Model.WebAppModule()); // Just for automapper registration
services.AddServiceBricksComplete(Configuration);
Expand Down
3 changes: 2 additions & 1 deletion src/V1/Tests/WebAppNet8/WebAppNet8.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<ItemGroup>
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.10" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
<PackageReference Include="ServiceBricks.Logging.Microservice" Version="1.1.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 391ac24

Please sign in to comment.