# SimpleQueueCacheOptionsValidator Methods

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

## Create(IServiceProvider, string) {#create-system-iserviceprovider-string-cb23c7f2}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/methods/create-system-iserviceprovider-string-cb23c7f2/)

[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.

## ValidateConfiguration {#validateconfiguration-66ce6dc6}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.configuration.simplequeuecacheoptionsvalidator/methods/validateconfiguration-66ce6dc6/)

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

```csharp
public void ValidateConfiguration()
```

Validates system configuration and throws an exception if configuration is not valid.
