# IDurableJobFeatureHandler Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.idurablejobfeaturehandler/)

## CanHandle(string) {#canhandle-string-4f816c83}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.idurablejobfeaturehandler/methods/canhandle-string-4f816c83/)

```csharp
public abstract bool CanHandle(string jobName)
```

Determines whether this handler handles the supplied durable job.

### Parameters

- `jobName` (`string`): The durable job name.

### Returns

`true` when this handler handles the job name; otherwise, `false`.

## ExecuteJobAsync(IJobRunContext, CancellationToken) {#executejobasync-orleans-durablejobs-ijobruncontext-system-threading-cancellation-b48a9c78}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.idurablejobfeaturehandler/methods/executejobasync-orleans-durablejobs-ijobruncontext-system-threading-cancellation-b48a9c78/)

```csharp
public abstract ValueTask<DurableJobRunResult> ExecuteJobAsync(IJobRunContext context, CancellationToken attemptCancellationToken)
```

Executes a durable job and returns its explicit disposition.

### Parameters

- `context` (`IJobRunContext`): The durable job execution context.
- `attemptCancellationToken` (`CancellationToken`): A token which cooperatively requests cancellation of the current execution attempt. The durable job remains eligible for another attempt.

### Returns

The completed, polling, or failed disposition.
