Struct ReplayAwareInterpolatedStringHandler
- Namespace
- Restate.Sdk
- Assembly
- Restate.Sdk.dll
Interpolated string handler that skips formatting entirely during replay. Avoids boxing and string allocation when the console output would be suppressed.
public ref struct ReplayAwareInterpolatedStringHandler
- Inherited Members
Constructors
ReplayAwareInterpolatedStringHandler(int, int, DurableConsole, out bool)
Called by the compiler for interpolated string arguments. Skips formatting when replaying.
public ReplayAwareInterpolatedStringHandler(int literalLength, int formattedCount, DurableConsole console, out bool handlerIsValid)
Parameters
literalLengthintformattedCountintconsoleDurableConsolehandlerIsValidbool
Methods
AppendFormatted<T>(T)
Appends a formatted value to the handler.
public void AppendFormatted<T>(T value)
Parameters
valueT
Type Parameters
T
AppendFormatted<T>(T, string?)
Appends a formatted value with a format string to the handler.
public void AppendFormatted<T>(T value, string? format)
Parameters
valueTformatstring
Type Parameters
T
AppendLiteral(string)
Appends a literal string to the handler.
public void AppendLiteral(string value)
Parameters
valuestring