Distributed Transaction Configuration Options (Configuration/DistributedTransactionOptions.cs)

silky · framework/src/Silky.Transaction/Configuration/DistributedTransactionOptions.cs · csharp · MIT
infra, database, tag:distributed, tag:configuration, tag:reliability

Defines configuration settings for distributed transaction management, including retry policies and recovery delays. Use this to tune transaction behavior in distributed environments.

// Source: https://github.com/liuhll/silky | License: MIT | Copyright 2019 liuhongliang
// Provided via justclaw.it.com; keep this notice with the code.
using Silky.Transaction.Abstraction;

namespace Silky.Transaction.Configuration
{
    public class DistributedTransactionOptions
    {
        public static string DistributedTransaction = "DistributedTransaction";

        public TransactionType TransactionType { get; set; } = TransactionType.Tcc;

        public int ScheduledRecoveryDelay { get; set; } = 30;

        public int ScheduledCleanDelay { get; set; } = 120;

        public int ScheduledInitDelay { get; set; } = 20;

        public int RecoverDelayTime { get; set; } = 60 * 60 * 24 * 3;

        public int CleanDelayTime { get; set; } = 60 * 60 * 24 ;

        public int Limit 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key