/// <summary>
 /// Gets the options.
 /// </summary>
 /// <value>
 /// The options.
 /// </value>
 public static SqLiteMessageQueueTransportOptions Options(this QueueConfigurationSend configuration)
 {
     if (configuration.AdditionalConfiguration.TryGetSetting("SQLiteMessageQueueTransportOptions", out dynamic options))
     {
         return(options);
     }
     throw new DotNetWorkQueueException("Failed to obtain the options");
 }
Example #2
0
 public static void SetRoute(this QueueConfigurationSend queue, bool enabled)
 {
     queue.AdditionalConfiguration.SetSetting("RedisRouteEnabled", enabled);
 }
Example #3
0
 public static bool?GetMessageRoute(this QueueConfigurationSend queue)
 {
     return(queue.AdditionalConfiguration.TryGetSetting("RedisRouteEnabled", out dynamic value) ? value : null);
 }
Example #4
0
 public static void SetMessageDelay(this QueueConfigurationSend queue, bool enabled)
 {
     queue.AdditionalConfiguration.SetSetting("RedisMessageDelayEnabled", enabled);
 }