# IDurableHttpClient.StartOperationAsync(Func&lt;HttpRequestMessage&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.idurablehttpclient/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.idurablehttpclient/methods/)

```csharp
public abstract DurableTask<DurableHttpOperation> StartOperationAsync(Func<HttpRequestMessage> createRequest)
```

Sends the request which starts an operation, as a step of the calling task, and returns the operation.

### Parameters

- `createRequest` (`Func<HttpRequestMessage>`): Creates the request; it runs for each attempt of the step.

### Returns

A durable task which returns the operation, which the start response may already have completed.

### Exceptions

- `System.Net.Http.HttpRequestException`: The response reports neither an operation nor a result, or accepts the request without locating its operation.
