Ejemplo n.º 1
0
 public static WorkflowOptions UseMySqlLocking(this WorkflowOptions options, string connectionString)
 {
     options.UseDistributedLockManager(sp => new MySqlLockProvider(connectionString, sp.GetService <ILoggerFactory>()));
     return(options);
 }
 public static WorkflowOptions UseAzureSynchronization(this WorkflowOptions options, string connectionString)
 {
     options.UseQueueProvider(sp => new AzureStorageQueueProvider(connectionString, sp.GetService <ILoggerFactory>()));
     options.UseDistributedLockManager(sp => new AzureLockManager(connectionString, sp.GetService <ILoggerFactory>()));
     return(options);
 }
Ejemplo n.º 3
0
 public static WorkflowOptions UseAwsDynamoLocking(this WorkflowOptions options, AWSCredentials credentials, AmazonDynamoDBConfig config, string tableName)
 {
     options.UseDistributedLockManager(sp => new DynamoLockProvider(credentials, config, tableName, sp.GetService <ILoggerFactory>()));
     return(options);
 }
 public static WorkflowOptions UseRedlock(this WorkflowOptions options, params DnsEndPoint[] endpoints)
 {
     options.UseDistributedLockManager(sp => new RedlockProvider(endpoints));
     return(options);
 }
 public static WorkflowOptions UseZeroMQLocking(this WorkflowOptions options, int port, IEnumerable <string> peers)
 {
     options.UseDistributedLockManager(sp => new ZeroMQLockProvider(port, peers, sp.GetService <ILoggerFactory>()));
     return(options);
 }
 public static WorkflowOptions UseRedlock(this WorkflowOptions options, IConnectionMultiplexer connectionMultiplexer)
 {
     options.UseDistributedLockManager(sp => new RedlockProvider(connectionMultiplexer));
     return(options);
 }