Beispiel #1
0
 /// <summary>
 /// Prevents a default instance of the <see cref="AzureBlobAssetRepository"/> class from being created.
 /// </summary>
 /// <param name="connectionString">The connection string.</param>
 /// <param name="assetEntityFactory">The asset entity factory.</param>
 private AzureBlobAssetRepository(string connectionString, IAssetEntityFactory assetEntityFactory)
 {
     this._entityFactory    = assetEntityFactory;
     this._connectionString = connectionString;
     this.ChangeTracker     = this.CreateChangeTracker();
 }
 public FileSystemBlobAssetRepository(string storagePath, IAssetEntityFactory assetEntityFactory)
 {
     _storagePath   = storagePath;
     _entityFactory = assetEntityFactory;
     ChangeTracker  = CreateChangeTracker();
 }
Beispiel #3
0
 public AzureBlobAssetRepository(IAssetEntityFactory assetEntityFactory)
     : this(ConnectionHelper.GetConnectionString(AssetConfiguration.Instance.Connection.StorageConnectionStringName), assetEntityFactory)
 {
 }
Beispiel #4
0
 public FileSystemBlobAssetRepository(IAssetEntityFactory assetEntityFactory)
     : this(AssetConfiguration.Instance.Connection.StorageFolder, assetEntityFactory)
 {
 }