# DurableOperation.DurableOperation(string, DurableOperationStatus, JsonElement?, DurableOperationError?)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperation/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperation/constructors/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableOperation.cs#L21-L25)

```csharp
public DurableOperation(string Id, DurableOperationStatus Status, JsonElement? Result = null, DurableOperationError? Error = null)
```

Represents an operation's status monitor: the resource which reports a durable task's status and, once it is terminal, its result or error.

### Parameters

- `Id` (`string`): The operation identifier, which addresses the status monitor.
- `Status` (`DurableOperationStatus`): The operation's status.
- `Result` (`JsonElement?`): The task's result, when it succeeded with a value.
- `Error` (`DurableOperationError?`): The task's failure or cancellation, when it failed or was canceled.
