Skip to content

Commit

Permalink
v1.1.0-p pre-release
Browse files Browse the repository at this point in the history
Fix for mongodb guid serialization with v3.0.0
  • Loading branch information
Danny Logsdon committed Nov 6, 2024
1 parent 850e7d5 commit 9ae7979
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 27 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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.AzureDataTables</PackageId>
<Title>ServiceBricks.Logging.AzureDataTables</Title>
Expand Down Expand Up @@ -36,6 +36,6 @@
<ProjectReference Include="..\ServiceBricks.Logging\ServiceBricks.Logging.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Cosmos</PackageId>
<Title>ServiceBricks.Logging.Cosmos</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.EntityFrameworkCore\ServiceBricks.Logging.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.EntityFrameworkCore</PackageId>
<Title>ServiceBricks.Logging.EntityFrameworkCore</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging\ServiceBricks.Logging.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.InMemory</PackageId>
<Title>ServiceBricks.Logging.InMemory</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.EntityFrameworkCore\ServiceBricks.Logging.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</ItemGroup>


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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Microservice</PackageId>
<Title>ServiceBricks.Logging.Microservice</Title>
Expand Down Expand Up @@ -34,7 +34,7 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ServiceBricks.Logging\ServiceBricks.Logging.csproj" PrivateAssets="All">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Bson.Serialization.Serializers;
using MongoDB.Bson.Serialization;
using MongoDB.Bson;

namespace ServiceBricks.Logging.MongoDb
{
Expand Down Expand Up @@ -53,6 +56,8 @@ 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<LogMessage>, LoggingStorageRepository<LogMessage>>();
services.AddScoped<IStorageRepository<WebRequestMessage>, LoggingStorageRepository<WebRequestMessage>>();
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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.MongoDb</PackageId>
<Title>ServiceBricks.Logging.MongoDb</Title>
Expand Down Expand Up @@ -36,6 +36,6 @@
<ProjectReference Include="..\ServiceBricks.Logging\ServiceBricks.Logging.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Postgres</PackageId>
<Title>ServiceBricks.Logging.Postgres</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.EntityFrameworkCore\ServiceBricks.Logging.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.SqlServer</PackageId>
<Title>ServiceBricks.Logging.SqlServer</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.EntityFrameworkCore\ServiceBricks.Logging.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging.Sqlite</PackageId>
<Title>ServiceBricks.Logging.Sqlite</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\ServiceBricks.Logging.EntityFrameworkCore\ServiceBricks.Logging.EntityFrameworkCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Core" Version="1.1.0-p" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/V1/ServiceBricks.Logging/ServiceBricks.Logging.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-o</Version>
<Version>1.1.0-p</Version>
<Description>The open source microservices platform. Visit https://ServiceBricks.com to learn more.</Description>
<PackageId>ServiceBricks.Logging</PackageId>
<Title>ServiceBricks.Logging</Title>
Expand Down Expand Up @@ -33,7 +33,7 @@
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="ServiceBricks" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks" Version="1.1.0-p" />
</ItemGroup>


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

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-p" />
</ItemGroup>

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

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-p" />
</ItemGroup>

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

<ItemGroup>
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-o" />
<PackageReference Include="ServiceBricks.Xunit" Version="1.1.0-p" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ public static class ServiceCollectionExtensions
{
public static IServiceCollection AddCustomWebsite(this IServiceCollection services, IConfiguration Configuration)
{
// Add to module registry
ModuleRegistry.Instance.Register(new WebAppModule());

services.AddControllers();
services.AddRazorPages();
services.AddControllersWithViews().AddRazorRuntimeCompilation();
Expand Down
2 changes: 1 addition & 1 deletion src/V1/Tests/WebAppNet8/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static IHostBuilder CreateHostBuilder(string[] args)
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<StartupCosmos>();
webBuilder.UseStartup<StartupInMemory>();
});
}
}
Expand Down

0 comments on commit 9ae7979

Please sign in to comment.