Table of Contents

Interface IRunContext

Namespace
Restate.Sdk
Assembly
Restate.Sdk.dll

Restricted context available inside Run<T>(string, Func<IRunContext, Task<T>>) blocks. Deliberately excludes Restate operations (no Run, Sleep, calls, state, etc.) to prevent nested side effects which would violate the durable execution model.

public interface IRunContext

Properties

CancellationToken

Cancellation token for the current Run operation.

CancellationToken CancellationToken { get; }

Property Value

CancellationToken

Logger

Logger scoped to the current invocation.

ILogger Logger { get; }

Property Value

ILogger