public static IGlobalConfiguration <SqlServerStorage> UseMsmqQueues( this IGlobalConfiguration <SqlServerStorage> configuration, string pathPattern, params string[] queues) { var provider = new MsmqJobQueueProvider(pathPattern, queues); configuration.Entry.QueueProviders.Add(provider, queues); return(configuration); }
public static IGlobalConfiguration <SqlServerStorage> UseMsmqQueues( this IGlobalConfiguration <SqlServerStorage> configuration, string pathPattern, params string[] queues) { if (queues.Length == 0) { queues = new[] { EnqueuedState.DefaultQueue }; } var provider = new MsmqJobQueueProvider(pathPattern, queues); configuration.Entry.QueueProviders.Add(provider, queues); return(configuration); }