# JobShard Constructors

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

## JobShard(string, DateTimeOffset, DateTimeOffset) {#constructor-string-system-datetimeoffset-system-datetimeoffset-7b74fbf5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.jobshard/constructors/constructor-string-system-datetimeoffset-system-datetimeoffset-7b74fbf5/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableJobs/JobShard.cs#L158-L187)

```csharp
protected JobShard(string id, DateTimeOffset startTime, DateTimeOffset endTime)
```

Initializes a new instance of the [JobShard](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.jobs.jobshard/) class.

### Parameters

- `id` (`string`): The unique identifier for this job shard.
- `startTime` (`DateTimeOffset`): The start time of the time range managed by this shard.
- `endTime` (`DateTimeOffset`): The end time of the time range managed by this shard.
