-
Notifications
You must be signed in to change notification settings - Fork 2k
/
AzureTableTransactionalStateOptions.cs
33 lines (30 loc) · 1.39 KB
/
AzureTableTransactionalStateOptions.cs
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
using Orleans.Transactions.AzureStorage;
namespace Orleans.Configuration
{
public class AzureTableTransactionalStateOptions : AzureStorageOperationOptions
{
/// <summary>
/// Azure table where transactional grain state will be stored
/// </summary>
public override string TableName { get; set; } = "TransactionalState";
/// <summary>
/// Stage of silo lifecycle where storage should be initialized. Storage must be initialized prior to use.
/// </summary>
public int InitStage { get; set; } = DEFAULT_INIT_STAGE;
public const int DEFAULT_INIT_STAGE = ServiceLifecycleStage.ApplicationServices;
}
/// <summary>
/// Configuration validator for <see cref="AzureTableTransactionalStateOptions"/>.
/// </summary>
public class AzureTableTransactionalStateOptionsValidator : AzureStorageOperationOptionsValidator<AzureTableTransactionalStateOptions>
{
/// <summary>
/// Initializes a new instance of the <see cref="AzureTableTransactionalStateOptionsValidator"/> class.
/// </summary>
/// <param name="options">The option to be validated.</param>
/// <param name="name">The option name to be validated.</param>
public AzureTableTransactionalStateOptionsValidator(AzureTableTransactionalStateOptions options, string name) : base(options, name)
{
}
}
}