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