# SimpleQueueCacheOptionsValidator.Create(IServiceProvider, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Streaming/Common/SimpleCache/SimpleQueueCacheOptions.cs#L57-L58)

```csharp
public static IConfigurationValidator Create(IServiceProvider services, string name)
```

Creates a new [SimpleQueueCacheOptionsValidator](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/) instance.

### Parameters

- `services` (`IServiceProvider`): The services.
- `name` (`string`): The provider name.

### Returns

A new [SimpleQueueCacheOptionsValidator](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/) instance.
