# IDurableJobFeatureHandler Methods

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

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

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.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-durable-jobs-ijobruncontext-system-threading-cancellatio-b48a9c78}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.idurablejobfeaturehandler/methods/executejobasync-orleans-durable-jobs-ijobruncontext-system-threading-cancellatio-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.
