diff --git a/src/V1/ServiceBricks.Logging.AzureDataTables/ServiceBricks.Logging.AzureDataTables.csproj b/src/V1/ServiceBricks.Logging.AzureDataTables/ServiceBricks.Logging.AzureDataTables.csproj index 71e9ff8..9185135 100644 --- a/src/V1/ServiceBricks.Logging.AzureDataTables/ServiceBricks.Logging.AzureDataTables.csproj +++ b/src/V1/ServiceBricks.Logging.AzureDataTables/ServiceBricks.Logging.AzureDataTables.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.AzureDataTables ServiceBricks.Logging.AzureDataTables @@ -36,6 +36,6 @@ - + diff --git a/src/V1/ServiceBricks.Logging.Cosmos/ServiceBricks.Logging.Cosmos.csproj b/src/V1/ServiceBricks.Logging.Cosmos/ServiceBricks.Logging.Cosmos.csproj index 2fcfbe9..44a5e01 100644 --- a/src/V1/ServiceBricks.Logging.Cosmos/ServiceBricks.Logging.Cosmos.csproj +++ b/src/V1/ServiceBricks.Logging.Cosmos/ServiceBricks.Logging.Cosmos.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.Cosmos ServiceBricks.Logging.Cosmos @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.EntityFrameworkCore/ServiceBricks.Logging.EntityFrameworkCore.csproj b/src/V1/ServiceBricks.Logging.EntityFrameworkCore/ServiceBricks.Logging.EntityFrameworkCore.csproj index cc066db..f16a2ec 100644 --- a/src/V1/ServiceBricks.Logging.EntityFrameworkCore/ServiceBricks.Logging.EntityFrameworkCore.csproj +++ b/src/V1/ServiceBricks.Logging.EntityFrameworkCore/ServiceBricks.Logging.EntityFrameworkCore.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.EntityFrameworkCore ServiceBricks.Logging.EntityFrameworkCore @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.InMemory/ServiceBricks.Logging.InMemory.csproj b/src/V1/ServiceBricks.Logging.InMemory/ServiceBricks.Logging.InMemory.csproj index 97f9af3..93d56cd 100644 --- a/src/V1/ServiceBricks.Logging.InMemory/ServiceBricks.Logging.InMemory.csproj +++ b/src/V1/ServiceBricks.Logging.InMemory/ServiceBricks.Logging.InMemory.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.InMemory ServiceBricks.Logging.InMemory @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.Microservice/ServiceBricks.Logging.Microservice.csproj b/src/V1/ServiceBricks.Logging.Microservice/ServiceBricks.Logging.Microservice.csproj index 3cb4328..285bfcf 100644 --- a/src/V1/ServiceBricks.Logging.Microservice/ServiceBricks.Logging.Microservice.csproj +++ b/src/V1/ServiceBricks.Logging.Microservice/ServiceBricks.Logging.Microservice.csproj @@ -1,7 +1,7 @@  - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.Microservice ServiceBricks.Logging.Microservice @@ -34,7 +34,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.MongoDb/Rule/LoggingMongoDbModuleAddRule.cs b/src/V1/ServiceBricks.Logging.MongoDb/Rule/LoggingMongoDbModuleAddRule.cs index 1be8be8..6ae0750 100644 --- a/src/V1/ServiceBricks.Logging.MongoDb/Rule/LoggingMongoDbModuleAddRule.cs +++ b/src/V1/ServiceBricks.Logging.MongoDb/Rule/LoggingMongoDbModuleAddRule.cs @@ -1,4 +1,7 @@ using Microsoft.Extensions.DependencyInjection; +using MongoDB.Bson.Serialization.Serializers; +using MongoDB.Bson.Serialization; +using MongoDB.Bson; namespace ServiceBricks.Logging.MongoDb { @@ -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, LoggingStorageRepository>(); services.AddScoped, LoggingStorageRepository>(); diff --git a/src/V1/ServiceBricks.Logging.MongoDb/ServiceBricks.Logging.MongoDb.csproj b/src/V1/ServiceBricks.Logging.MongoDb/ServiceBricks.Logging.MongoDb.csproj index e5b43f8..b82cca9 100644 --- a/src/V1/ServiceBricks.Logging.MongoDb/ServiceBricks.Logging.MongoDb.csproj +++ b/src/V1/ServiceBricks.Logging.MongoDb/ServiceBricks.Logging.MongoDb.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.MongoDb ServiceBricks.Logging.MongoDb @@ -36,6 +36,6 @@ - + diff --git a/src/V1/ServiceBricks.Logging.Postgres/ServiceBricks.Logging.Postgres.csproj b/src/V1/ServiceBricks.Logging.Postgres/ServiceBricks.Logging.Postgres.csproj index 6b6eb60..1d2423b 100644 --- a/src/V1/ServiceBricks.Logging.Postgres/ServiceBricks.Logging.Postgres.csproj +++ b/src/V1/ServiceBricks.Logging.Postgres/ServiceBricks.Logging.Postgres.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.Postgres ServiceBricks.Logging.Postgres @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.SqlServer/ServiceBricks.Logging.SqlServer.csproj b/src/V1/ServiceBricks.Logging.SqlServer/ServiceBricks.Logging.SqlServer.csproj index e70c071..4dc7f54 100644 --- a/src/V1/ServiceBricks.Logging.SqlServer/ServiceBricks.Logging.SqlServer.csproj +++ b/src/V1/ServiceBricks.Logging.SqlServer/ServiceBricks.Logging.SqlServer.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.SqlServer ServiceBricks.Logging.SqlServer @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging.Sqlite/ServiceBricks.Logging.Sqlite.csproj b/src/V1/ServiceBricks.Logging.Sqlite/ServiceBricks.Logging.Sqlite.csproj index 04aa057..7483b6a 100644 --- a/src/V1/ServiceBricks.Logging.Sqlite/ServiceBricks.Logging.Sqlite.csproj +++ b/src/V1/ServiceBricks.Logging.Sqlite/ServiceBricks.Logging.Sqlite.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging.Sqlite ServiceBricks.Logging.Sqlite @@ -36,7 +36,7 @@ - + diff --git a/src/V1/ServiceBricks.Logging/ServiceBricks.Logging.csproj b/src/V1/ServiceBricks.Logging/ServiceBricks.Logging.csproj index 2fa71ea..1013a91 100644 --- a/src/V1/ServiceBricks.Logging/ServiceBricks.Logging.csproj +++ b/src/V1/ServiceBricks.Logging/ServiceBricks.Logging.csproj @@ -1,7 +1,7 @@ - 1.1.0-o + 1.1.0-p The open source microservices platform. Visit https://ServiceBricks.com to learn more. ServiceBricks.Logging ServiceBricks.Logging @@ -33,7 +33,7 @@ - + diff --git a/src/V1/Tests/ServiceBricks.Logging.XunitNet6/ServiceBricks.Logging.XunitNet6.csproj b/src/V1/Tests/ServiceBricks.Logging.XunitNet6/ServiceBricks.Logging.XunitNet6.csproj index 8b27b74..8c345ee 100644 --- a/src/V1/Tests/ServiceBricks.Logging.XunitNet6/ServiceBricks.Logging.XunitNet6.csproj +++ b/src/V1/Tests/ServiceBricks.Logging.XunitNet6/ServiceBricks.Logging.XunitNet6.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/V1/Tests/ServiceBricks.Logging.XunitNet7/ServiceBricks.Logging.XunitNet7.csproj b/src/V1/Tests/ServiceBricks.Logging.XunitNet7/ServiceBricks.Logging.XunitNet7.csproj index f270205..d663a4e 100644 --- a/src/V1/Tests/ServiceBricks.Logging.XunitNet7/ServiceBricks.Logging.XunitNet7.csproj +++ b/src/V1/Tests/ServiceBricks.Logging.XunitNet7/ServiceBricks.Logging.XunitNet7.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/V1/Tests/ServiceBricks.Logging.XunitNet8/ServiceBricks.Logging.XunitNet8.csproj b/src/V1/Tests/ServiceBricks.Logging.XunitNet8/ServiceBricks.Logging.XunitNet8.csproj index 7f7c6c5..0f823aa 100644 --- a/src/V1/Tests/ServiceBricks.Logging.XunitNet8/ServiceBricks.Logging.XunitNet8.csproj +++ b/src/V1/Tests/ServiceBricks.Logging.XunitNet8/ServiceBricks.Logging.XunitNet8.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/V1/Tests/WebAppNet8/Extensions/ServiceCollectionExtensions.cs b/src/V1/Tests/WebAppNet8/Extensions/ServiceCollectionExtensions.cs index 8452c57..6cd2eed 100644 --- a/src/V1/Tests/WebAppNet8/Extensions/ServiceCollectionExtensions.cs +++ b/src/V1/Tests/WebAppNet8/Extensions/ServiceCollectionExtensions.cs @@ -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(); diff --git a/src/V1/Tests/WebAppNet8/Program.cs b/src/V1/Tests/WebAppNet8/Program.cs index f5f4355..d44007f 100644 --- a/src/V1/Tests/WebAppNet8/Program.cs +++ b/src/V1/Tests/WebAppNet8/Program.cs @@ -27,7 +27,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) }) .ConfigureWebHostDefaults(webBuilder => { - webBuilder.UseStartup(); + webBuilder.UseStartup(); }); } }