in src/Proton/Types/Transactions/TransactionalState.cs [81:119]
public bool Equals(IDeliveryState state)
{
if (state == this)
{
return true;
}
else if (state is null)
{
return false;
}
else if (GetType() != state.GetType())
{
return false;
}
else
{
TransactionalState other = (TransactionalState)state;
if ((other.TxnId is null && TxnId is not null) || (other.Outcome is null && Outcome is not null))
{
return false;
}
else
{
if (TxnId != null && !TxnId.Equals(other.TxnId))
{
return false;
}
else if (Outcome != null && !Outcome.Equals(other.Outcome))
{
return false;
}
else
{
return true;
}
}
}
}