diff --git a/.gitignore b/.gitignore index 6ee3f70..64c48f7 100644 --- a/.gitignore +++ b/.gitignore @@ -162,4 +162,4 @@ src/EPiCode.SqlBlobProvider/NuGet.exe /src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.1.5.0.nupkg /src/EPiCode.SqlBlobProvider/app.config /src/EPiCode.BlobConverter/app.config -/src/.vs/EPiCode.SqlBlobProvider/v15/sqlite3/storage.ide +/src/.vs/ diff --git a/src/EPiCode.BlobConverter/BlobJob.cs b/src/EPiCode.BlobConverter/BlobJob.cs index c11748b..b71d0da 100644 --- a/src/EPiCode.BlobConverter/BlobJob.cs +++ b/src/EPiCode.BlobConverter/BlobJob.cs @@ -10,7 +10,7 @@ namespace EPiCode.BlobConverter [ScheduledPlugIn(DisplayName = "Convert File Blobs", Description = "Converts all file blobs into the currently configured blob type", SortIndex = 10000)] public class BlobJob : EPiServer.Scheduler.ScheduledJobBase { - protected Injected BlobFactory { get; set; } + protected Injected BlobProviderRegistry { get; set; } private int _count; private int _failCount; private StringBuilder _errorText = new StringBuilder(); @@ -40,7 +40,9 @@ public void ProcessFile(string path, string directory) var id = new Uri(string.Format("{0}://{1}/{2}/{3}", Blob.BlobUriScheme, Blob.DefaultProvider, directory, path)); var blob = new FileBlobProvider().GetBlob(id); - BlobFactory.Service.GetBlob(id).Write(blob.OpenRead()); + + var blobProvider = BlobProviderRegistry.Service.GetProvider(id); + blobProvider.GetBlob(id).Write(blob.OpenRead()); _count++; if (_count % 50 == 0) OnStatusChanged(string.Format("Converted {0} blobs.", _count)); diff --git a/src/EPiCode.BlobConverter/EPiCode.BlobConverter.csproj b/src/EPiCode.BlobConverter/EPiCode.BlobConverter.csproj index 46b49f0..75e10f7 100644 --- a/src/EPiCode.BlobConverter/EPiCode.BlobConverter.csproj +++ b/src/EPiCode.BlobConverter/EPiCode.BlobConverter.csproj @@ -39,7 +39,6 @@ - diff --git a/src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.csproj b/src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.csproj index fab4c99..adca219 100644 --- a/src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.csproj +++ b/src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.csproj @@ -45,7 +45,6 @@ - Designer