Class ClientConfigExtensions
- Namespace
- Savvyio.Extensions.SimpleQueueService
- Assembly
- Savvyio.Extensions.SimpleQueueService.dll
Extension methods for the ClientConfig base class.
public static class ClientConfigExtensions
- Inheritance
-
ClientConfigExtensions
Methods
IsValid(ClientConfig[])
Evaluates whether the specified configurations> is valid, e.g. if it has a length of 2 and each element is of type AmazonSQSConfig or AmazonSimpleNotificationServiceConfig.
public static bool IsValid(this ClientConfig[] configurations)
Parameters
configurationsClientConfig[]The array of ClientConfig to extend.
Returns
- bool
trueif the specified configurations is valid; otherwise,false.
SimpleNotificationService(ClientConfig[])
Resolves an instance of AmazonSimpleNotificationServiceConfig from the specified configurations.
public static AmazonSimpleNotificationServiceConfig SimpleNotificationService(this ClientConfig[] configurations)
Parameters
configurationsClientConfig[]The array of ClientConfig to extend.
Returns
- AmazonSimpleNotificationServiceConfig
A configured instance of AmazonSimpleNotificationServiceConfig.
SimpleQueueService(ClientConfig[])
Resolves an instance of AmazonSQSConfig from the specified configurations.
public static AmazonSQSConfig SimpleQueueService(this ClientConfig[] configurations)
Parameters
configurationsClientConfig[]The array of ClientConfig to extend.
Returns
- AmazonSQSConfig
A configured instance of AmazonSQSConfig.