This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/ServiceStack.Redis/Messaging Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public class RedisMqServer : IMessageService
61
61
/// <summary>
62
62
/// If you only want to enable priority queue handlers (and threads) for specific msg types
63
63
/// </summary>
64
- public Type [ ] OnlyEnablePriortyQueuesForTypes { get ; set ; }
64
+ public string [ ] PriortyQueuesWhitelist { get ; set ; }
65
65
66
66
/// <summary>
67
67
/// Don't listen on any Priority Queues
@@ -70,7 +70,7 @@ public bool DisableAllPriorityQueues
70
70
{
71
71
set
72
72
{
73
- OnlyEnablePriortyQueuesForTypes = new Type [ 0 ] ;
73
+ PriortyQueuesWhitelist = new string [ 0 ] ;
74
74
}
75
75
}
76
76
@@ -187,8 +187,8 @@ public void Init()
187
187
var queueNames = new QueueNames ( msgType ) ;
188
188
var noOfThreads = handlerThreadCountMap [ msgType ] ;
189
189
190
- if ( OnlyEnablePriortyQueuesForTypes == null
191
- || OnlyEnablePriortyQueuesForTypes . Any ( x => x == msgType ) )
190
+ if ( PriortyQueuesWhitelist == null
191
+ || PriortyQueuesWhitelist . Any ( x => x == msgType . Name ) )
192
192
{
193
193
noOfThreads . Times ( i =>
194
194
workerBuilder . Add ( new MessageHandlerWorker (
You can’t perform that action at this time.
0 commit comments