/// <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"); }
public static void SetRoute(this QueueConfigurationSend queue, bool enabled) { queue.AdditionalConfiguration.SetSetting("RedisRouteEnabled", enabled); }
public static bool?GetMessageRoute(this QueueConfigurationSend queue) { return(queue.AdditionalConfiguration.TryGetSetting("RedisRouteEnabled", out dynamic value) ? value : null); }
public static void SetMessageDelay(this QueueConfigurationSend queue, bool enabled) { queue.AdditionalConfiguration.SetSetting("RedisMessageDelayEnabled", enabled); }