-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathSubscriptionOptions.cs
More file actions
35 lines (31 loc) · 1.09 KB
/
SubscriptionOptions.cs
File metadata and controls
35 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace NServiceBus.Transport.SqlServer
{
using System;
/// <summary>
/// Configures the native pub/sub behavior
/// </summary>
public class SubscriptionOptions
{
/// <summary>
/// Subscription table. All endpoints in a given system need to agree on that name in order for them to be able
/// to subscribe to and publish events.
/// </summary>
public SubscriptionTableName SubscriptionTableName { get; set; } = new SubscriptionTableName("SubscriptionRouting");
/// <summary>
/// Cache subscriptions for a given <see cref="TimeSpan" />. Defaults to 5 seconds.
/// </summary>
public TimeSpan CacheInvalidationPeriod
{
get;
set
{
ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(value, TimeSpan.Zero);
field = value;
}
} = TimeSpan.FromSeconds(5);
/// <summary>
/// Do not cache subscriptions.
/// </summary>
public bool DisableCaching { get; set; } = false;
}
}