# GrainStreamQueueCheckpointerFactory Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.grainstreamqueuecheckpointerfactory/)

## Create(string) {#create-string-5306e0ae}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.grainstreamqueuecheckpointerfactory/methods/create-string-5306e0ae/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Checkpointers/GrainStreamQueueCheckpointerFactory.cs#L61)

```csharp
[System.Obsolete(Use the overload which accepts a CancellationToken.)]
public Task<IStreamQueueCheckpointer<string>> Create(string partition)
```

Creates a stream checkpointer for the specified partition.

### Parameters

- `partition` (`string`): The partition.

### Returns

The stream checkpointer.

## Create(string, CancellationToken) {#create-string-system-threading-cancellationtoken-dc73371c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.grainstreamqueuecheckpointerfactory/methods/create-string-system-threading-cancellationtoken-dc73371c/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Checkpointers/GrainStreamQueueCheckpointerFactory.cs#L66-L72)

```csharp
public Task<IStreamQueueCheckpointer<string>> Create(string partition, CancellationToken cancellationToken)
```

Creates a stream checkpointer for the specified partition.

### Parameters

- `partition` (`string`): The partition.
- `cancellationToken` (`CancellationToken`): The cancellation token.

### Returns

The stream checkpointer.

## CreateFactory(IServiceProvider, string) {#createfactory-system-iserviceprovider-string-dcdd5377}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.grainstreamqueuecheckpointerfactory/methods/createfactory-system-iserviceprovider-string-dcdd5377/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Checkpointers/GrainStreamQueueCheckpointerFactory.cs#L49-L55)

```csharp
public static IStreamQueueCheckpointerFactory CreateFactory(IServiceProvider services, string providerName)
```

Creates a factory from a service provider.

### Parameters

- `services` (`IServiceProvider`)
- `providerName` (`string`)
