Skip to content
Draft
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ public MongoPersistenceProvider(IMongoDatabase database)

static MongoPersistenceProvider()
{
// Register ObjectSerializer to allow deserialization of WorkflowCore types and user types
// This matches the pattern used in MongoDB tests which resolves serialization issues
BsonSerializer.TryRegisterSerializer(new ObjectSerializer(type =>
ObjectSerializer.DefaultAllowedTypes(type) ||
type.FullName?.StartsWith("WorkflowCore") == true));

ConventionRegistry.Register(
"workflow.conventions",
new ConventionPack
Expand Down