Skip to content

Result type not serializable #584

@pada57

Description

@pada57

Hello,

we are using your library heavily which is nice by the way, thanks your work. We ran into issues while using Result types within MassTransit as while serializing and deserializing Result type lead to RUntime exception as there are exceptions raised on Getter property methods like here below.

Why this type is flag as Serializable but raise exceptions on properties get ? did we miss something and can you help as this sounds like common issue

public T Value
{
    get
    {
        if (!IsSuccess)
        {
            throw new ResultFailureException(Error);
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions