You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the type of this property is KeyValuePair<string, Encoding>[] but the Encoding type is problematic. The main problem is that this type contains a ReadOnly<Span> property which the Json source generator cannot handle. This is not so bad in .NET 6 and prior frameworks because we can omit the InboundEmail class from the serialization context and let the Json serializer/deserializer fall back to reflection based serialization.
However, this fallback logic has been removed in .NET7 which means that we have to include InboundEmail in the serialization context. Therefore, the only solution is to remove the Encoding type and replace it with a simple string.
The text was updated successfully, but these errors were encountered:
Currently, the type of this property is
KeyValuePair<string, Encoding>[]
but theEncoding
type is problematic. The main problem is that this type contains aReadOnly<Span>
property which the Json source generator cannot handle. This is not so bad in .NET 6 and prior frameworks because we can omit theInboundEmail
class from the serialization context and let the Json serializer/deserializer fall back to reflection based serialization.However, this fallback logic has been removed in .NET7 which means that we have to include
InboundEmail
in the serialization context. Therefore, the only solution is to remove theEncoding
type and replace it with a simplestring
.The text was updated successfully, but these errors were encountered: