elsa-core/src/modules/Elsa.ProtoActor/Extensions/ProtoStringExtensions.cs
Sipke Schoorstra 53dcd11f17
Send HTTP error when workflow faults (#3937)
* Implement workflow fault handling in HTTP context

* Handle faulted workflows across process boundariesl
2023-04-20 20:45:27 +02:00

7 lines
251 B
C#

namespace Elsa.ProtoActor.Extensions;
internal static class ProtoStringExtensions
{
public static string EmptyIfNull(this string? value) => value ?? "";
public static string? NullIfEmpty(this string? value) => value == "" ? default : value;
}