feat: add mapping for MediatR.Unit to Google.Protobuf.Empty
Build and Deploy / build (push) Successful in 1m48s

This commit is contained in:
masoodafar-web
2025-12-27 02:38:02 +03:30
parent c7fc30c83e
commit 92aebb42b5
2 changed files with 6 additions and 5 deletions
@@ -60,5 +60,9 @@ public class GeneralMapping : IRegister
config.NewConfig<byte[], Google.Protobuf.ByteString>()
.MapWith(src => Google.Protobuf.ByteString.CopyFrom(src));
// MediatR Unit to Google.Protobuf.Empty
config.NewConfig<MediatR.Unit, Google.Protobuf.WellKnownTypes.Empty>()
.MapWith(_ => new Google.Protobuf.WellKnownTypes.Empty());
}
}