Skip to content

Commit 212003f

Browse files
Copilotdanielgerlag
andcommitted
Fix ObjectSerializer registration for MongoDB persistence to allow user types
Co-authored-by: danielgerlag <2357007+danielgerlag@users.noreply.github.com>
1 parent 548c8c0 commit 212003f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/samples/WorkflowCore.Sample04/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ private static IServiceProvider ConfigureServices()
3333
//setup dependency injection
3434
IServiceCollection services = new ServiceCollection();
3535
services.AddLogging();
36-
//services.AddWorkflow();
37-
services.AddWorkflow(x => x.UseMongoDB(@"mongodb://localhost:27017", "workflow"));
36+
services.AddWorkflow();
37+
//services.AddWorkflow(x => x.UseMongoDB(@"mongodb://localhost:27017", "workflow"));
3838
//services.AddWorkflow(x => x.UseSqlServer(@"Server=.;Database=WorkflowCore;Trusted_Connection=True;", true, true));
3939
//services.AddWorkflow(x => x.UsePostgreSQL(@"Server=127.0.0.1;Port=5432;Database=workflow;User Id=postgres;", true, true));
4040
//services.AddWorkflow(x => x.UseSqlite(@"Data Source=database.db;", true));

0 commit comments

Comments
 (0)