Example #1
0
 public EntityMutexFactory(IOptions <EntityMutexFactoryOptions> options, IMutexCollector mutexGc)
 {
     _mutexGc     = mutexGc;
     _entityTable = new TableClient(options.Value.ConnectionString, options.Value.Name);
     _entityTable.CreateIfNotExistsAsync().Wait();
     _mutexGc = mutexGc;
 }
Example #2
0
 public EntityMutexFactory(TableClient entityTable, IMutexCollector mutexGc)
 {
     _entityTable = entityTable;
     _entityTable.CreateIfNotExistsAsync().Wait();
     _mutexGc = mutexGc;
 }