Skip to content

Commit bbc83f4

Browse files
committed
Moving back TaskScheduler but marking it with [Obsolete (false)] which enables soft migration to future versions.
1 parent b0781c8 commit bbc83f4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

projects/client/RabbitMQ.Client/src/client/api/ConnectionFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public TimeSpan ContinuationTimeout
238238
/// Task scheduler connections created by this factory will use when
239239
/// dispatching consumer operations, such as message deliveries.
240240
/// </summary>
241+
[Obsolete("This scheduler is no longer used for dispatching consumer operations and will be removed in the next major version.", false)]
241242
public TaskScheduler TaskScheduler { get; set; } = TaskScheduler.Default;
242243

243244
/// <summary>

projects/client/RabbitMQ.Client/src/client/api/IConnectionFactory.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ public interface IConnectionFactory
128128
/// <returns></returns>
129129
IConnection CreateConnection(IList<string> hostnames, String clientProvidedName);
130130

131+
/// <summary>
132+
/// Advanced option.
133+
///
134+
/// What task scheduler should consumer dispatcher use.
135+
/// </summary>
136+
[Obsolete("This scheduler is no longer used for dispatching consumer operations and will be removed in the next major version.", false)]
137+
TaskScheduler TaskScheduler { get; set; }
138+
131139
/// <summary>
132140
/// Amount of time protocol handshake operations are allowed to take before
133141
/// timing out.

0 commit comments

Comments
 (0)