Skip to content

Commit

Permalink
Fixed warning in converter for v11
Browse files Browse the repository at this point in the history
  • Loading branch information
evest committed Dec 5, 2017
1 parent a560f44 commit b2ad9f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
6 changes: 4 additions & 2 deletions src/EPiCode.BlobConverter/BlobJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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> BlobFactory { get; set; }
protected Injected<IBlobProviderRegistry> BlobProviderRegistry { get; set; }
private int _count;
private int _failCount;
private StringBuilder _errorText = new StringBuilder();
Expand Down Expand Up @@ -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));
Expand Down
1 change: 0 additions & 1 deletion src/EPiCode.BlobConverter/EPiCode.BlobConverter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="EPiCode.BlobConverter.nuspec" />
<None Include="packages.config" />
</ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion src/EPiCode.SqlBlobProvider/EPiCode.SqlBlobProvider.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<Compile Include="FileHelper.cs" />
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="EPiCode.SqlBlobProvider.nuspec">
<SubType>Designer</SubType>
</None>
Expand Down

0 comments on commit b2ad9f1

Please sign in to comment.