Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

Commit f6ff8ad

Browse files
authored
Merge pull request #6 from olegburov/Issue-#3
Fixed Issue #3
2 parents ef5be4b + ab2aee4 commit f6ff8ad

11 files changed

Lines changed: 130 additions & 106 deletions

File tree

src/Sitecore.Azure.Diagnostics.UI/Sitecore.Azure.Diagnostics.UI.csproj

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<SccLocalPath>SAK</SccLocalPath>
2424
<SccAuxPath>SAK</SccAuxPath>
2525
<SccProvider>SAK</SccProvider>
26+
<UseGlobalApplicationHostFile />
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2829
<DebugSymbols>true</DebugSymbols>
@@ -42,43 +43,43 @@
4243
<WarningLevel>4</WarningLevel>
4344
</PropertyGroup>
4445
<ItemGroup>
45-
<Reference Include="Microsoft.Data.Edm, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
46-
<HintPath>..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll</HintPath>
46+
<Reference Include="Microsoft.Azure.KeyVault.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
47+
<HintPath>..\packages\Microsoft.Azure.KeyVault.Core.1.0.0\lib\net40\Microsoft.Azure.KeyVault.Core.dll</HintPath>
4748
<Private>True</Private>
4849
</Reference>
49-
<Reference Include="Microsoft.Data.OData, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
50-
<HintPath>..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll</HintPath>
50+
<Reference Include="Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
51+
<HintPath>..\packages\Microsoft.Data.Edm.5.7.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
5152
<Private>True</Private>
5253
</Reference>
53-
<Reference Include="Microsoft.Data.Services.Client, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
54-
<HintPath>..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll</HintPath>
54+
<Reference Include="Microsoft.Data.OData, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
55+
<HintPath>..\packages\Microsoft.Data.OData.5.7.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
5556
<Private>True</Private>
5657
</Reference>
57-
<Reference Include="Microsoft.WindowsAzure.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58-
<HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.2.0.3\lib\net40\Microsoft.WindowsAzure.Configuration.dll</HintPath>
58+
<Reference Include="Microsoft.Data.Services.Client, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59+
<HintPath>..\packages\Microsoft.Data.Services.Client.5.7.0\lib\net40\Microsoft.Data.Services.Client.dll</HintPath>
5960
<Private>True</Private>
6061
</Reference>
61-
<Reference Include="Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
62-
<SpecificVersion>False</SpecificVersion>
63-
<HintPath>..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
64-
<Private>False</Private>
62+
<Reference Include="Microsoft.WindowsAzure.Storage, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
63+
<HintPath>..\packages\WindowsAzure.Storage.7.1.2\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
64+
<Private>True</Private>
6565
</Reference>
66-
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
67-
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
66+
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
67+
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
6868
<Private>True</Private>
6969
</Reference>
70-
<Reference Include="Sitecore.Client">
71-
<HintPath>..\packages\Sitecore.Client.7.2.3\lib\net45\Sitecore.Client.dll</HintPath>
70+
<Reference Include="Sitecore.Client, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
71+
<HintPath>..\packages\SC.Sitecore.Client.8.1.3.160519\lib\Sitecore.Client.dll</HintPath>
7272
<Private>False</Private>
7373
</Reference>
74-
<Reference Include="Sitecore.Kernel">
75-
<HintPath>..\packages\Sitecore.Kernel.7.2.3\lib\net45\Sitecore.Kernel.dll</HintPath>
74+
<Reference Include="Sitecore.Kernel, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
75+
<HintPath>..\packages\SC.Sitecore.Kernel.8.1.3.160519\lib\Sitecore.Kernel.dll</HintPath>
7676
<Private>False</Private>
7777
</Reference>
7878
<Reference Include="System" />
7979
<Reference Include="System.Core" />
80-
<Reference Include="System.Spatial, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
81-
<HintPath>..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll</HintPath>
80+
<Reference Include="System.Data" />
81+
<Reference Include="System.Spatial, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
82+
<HintPath>..\packages\System.Spatial.5.7.0\lib\net40\System.Spatial.dll</HintPath>
8283
<Private>True</Private>
8384
</Reference>
8485
<Reference Include="System.Web" />
@@ -124,6 +125,13 @@
124125
<ItemGroup>
125126
<None Include="Properties\PublishProfiles\sc72rev140526.pubxml" />
126127
<None Include="Properties\PublishProfiles\sc75rev141003.pubxml" />
128+
<Content Include="Web.config" />
129+
<None Include="Web.Debug.config">
130+
<DependentUpon>Web.config</DependentUpon>
131+
</None>
132+
<None Include="Web.Release.config">
133+
<DependentUpon>Web.config</DependentUpon>
134+
</None>
127135
</ItemGroup>
128136
<ItemGroup />
129137
<PropertyGroup>

src/Sitecore.Azure.Diagnostics.UI/Web.config

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,24 @@
88
<compilation debug="true" targetFramework="4.5" />
99
<httpRuntime targetFramework="4.5" />
1010
</system.web>
11+
<runtime>
12+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
13+
<dependentAssembly>
14+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
15+
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
16+
</dependentAssembly>
17+
<dependentAssembly>
18+
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
19+
<bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" />
20+
</dependentAssembly>
21+
<dependentAssembly>
22+
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
23+
<bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" />
24+
</dependentAssembly>
25+
<dependentAssembly>
26+
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
27+
<bindingRedirect oldVersion="0.0.0.0-5.7.0.0" newVersion="5.7.0.0" />
28+
</dependentAssembly>
29+
</assemblyBinding>
30+
</runtime>
1131
</configuration>
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Microsoft.Data.Edm" version="5.6.2" targetFramework="net45" />
4-
<package id="Microsoft.Data.OData" version="5.6.2" targetFramework="net45" />
5-
<package id="Microsoft.Data.Services.Client" version="5.6.2" targetFramework="net45" />
6-
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.3" targetFramework="net45" />
7-
<package id="Newtonsoft.Json" version="5.0.8" targetFramework="net45" />
8-
<package id="System.Spatial" version="5.6.2" targetFramework="net45" />
9-
<package id="WindowsAzure.Storage" version="4.3.0" targetFramework="net45" />
3+
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net45" />
4+
<package id="Microsoft.Data.Edm" version="5.7.0" targetFramework="net45" />
5+
<package id="Microsoft.Data.OData" version="5.7.0" targetFramework="net45" />
6+
<package id="Microsoft.Data.Services.Client" version="5.7.0" targetFramework="net45" />
7+
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
8+
<package id="SC.Sitecore.Client" version="8.1.3.160519" targetFramework="net45" />
9+
<package id="SC.Sitecore.Kernel" version="8.1.3.160519" targetFramework="net45" />
10+
<package id="System.Spatial" version="5.7.0" targetFramework="net45" />
11+
<package id="WindowsAzure.Storage" version="7.1.2" targetFramework="net45" />
1012
</packages>

src/Sitecore.Azure.Diagnostics.UI/sitecore/Shell/Applications/Reports/LogViewer/LogViewerDetailsForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ protected override void OnLoad(EventArgs e)
5656
var blob = LogStorageManager.GetBlob(blobName);
5757
var data = string.Empty;
5858

59-
if (blob.BlobType == BlobType.BlockBlob)
59+
if (blob.BlobType == BlobType.AppendBlob)
6060
{
61-
data = ((CloudBlockBlob)blob).DownloadText(LogStorageManager.DefaultTextEncoding);
61+
data = ((CloudAppendBlob)blob).DownloadText(LogStorageManager.DefaultTextEncoding);
6262
}
6363

6464
if (string.IsNullOrEmpty(data))

src/Sitecore.Azure.Diagnostics/Appenders/AzureBlobStorageAppender.cs

Lines changed: 13 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class AzureBlobStorageAppender : AppenderSkeleton
3333
public DateTime CurrentDate { get; protected set; }
3434

3535
/// <summary>
36-
/// The cloud block BLOB for storing log entries.
36+
/// The cloud BLOB for storing log entries.
3737
/// </summary>
38-
private ICloudBlob cloudBlockBlob;
38+
private ICloudBlob cloudBlob;
3939

4040
#endregion
4141

@@ -45,21 +45,21 @@ public class AzureBlobStorageAppender : AppenderSkeleton
4545
/// Gets the BLOB.
4646
/// </summary>
4747
/// <value>
48-
/// The cloud block BLOB.
48+
/// The cloud BLOB.
4949
/// </value>
5050
private ICloudBlob Blob
5151
{
5252
get
5353
{
5454
// Create a new blob if this is the first time it is used.
55-
if (this.cloudBlockBlob == null)
55+
if (this.cloudBlob == null)
5656
{
57-
this.cloudBlockBlob = this.GetNewBlob();
57+
this.cloudBlob = this.GetNewBlob();
5858
}
5959
// Recreate a blob if a container is no longer exists.
60-
else if (!this.cloudBlockBlob.Container.Exists())
60+
else if (!this.cloudBlob.Container.Exists())
6161
{
62-
this.cloudBlockBlob = LogStorageManager.GetBlob(this.cloudBlockBlob.Name);
62+
this.cloudBlob = LogStorageManager.GetBlob(this.cloudBlob.Name);
6363
}
6464
// Create a new blob if the current shouldn't be used.
6565
else
@@ -69,11 +69,11 @@ private ICloudBlob Blob
6969

7070
if (needNewBlob)
7171
{
72-
this.cloudBlockBlob = this.GetNewBlob();
72+
this.cloudBlob = this.GetNewBlob();
7373
}
7474
}
7575

76-
return this.cloudBlockBlob;
76+
return this.cloudBlob;
7777
}
7878
}
7979

@@ -102,44 +102,17 @@ protected override void Append(LoggingEvent loggingEvent)
102102
{
103103
Sitecore.Diagnostics.Assert.ArgumentNotNull(loggingEvent, "loggingEvent");
104104

105-
var blob = this.Blob as CloudBlockBlob;
105+
var blob = this.Blob as CloudAppendBlob;
106106
string message = this.RenderLoggingEvent(loggingEvent);
107107

108-
this.AddMessageToBlock(blob, message);
109-
}
110-
111-
/// <summary>
112-
/// Adds the diagnostic message to block blob.
113-
/// </summary>
114-
/// <param name="blob">The cloud blob.</param>
115-
/// <param name="message">The message.</param>
116-
protected virtual void AddMessageToBlock(CloudBlockBlob blob, string message)
117-
{
118-
Sitecore.Diagnostics.Assert.ArgumentNotNull(blob, "blob");
119-
Sitecore.Diagnostics.Assert.ArgumentNotNull(message, "message");
120-
121-
var blockIds = new List<string>();
122-
123-
if (blob.Exists())
124-
{
125-
blockIds.AddRange(blob.DownloadBlockList().Select(b => b.Name));
126-
}
127-
128-
string blockId = Guid.NewGuid().ToString().Replace("-", string.Empty);
129-
blockIds.Add(blockId);
130-
131-
using (var blockData = new MemoryStream(LogStorageManager.DefaultTextEncoding.GetBytes(message), false))
132-
{
133-
blob.PutBlock(blockId, blockData, null);
134-
blob.PutBlockList(blockIds);
135-
}
136-
}
108+
blob.AppendText(message);
109+
}
137110

138111
/// <summary>
139112
/// Gets the new cloud blob for diagnostic messages.
140113
/// </summary>
141114
/// <returns>
142-
/// The cloud block blob.
115+
/// The cloud blob.
143116
/// </returns>
144117
protected virtual ICloudBlob GetNewBlob()
145118
{

src/Sitecore.Azure.Diagnostics/Sitecore.Azure.Diagnostics.csproj

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<SccLocalPath>SAK</SccLocalPath>
2424
<SccAuxPath>SAK</SccAuxPath>
2525
<SccProvider>SAK</SccProvider>
26+
<UseGlobalApplicationHostFile />
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2829
<DebugSymbols>true</DebugSymbols>
@@ -43,46 +44,50 @@
4344
<WarningLevel>4</WarningLevel>
4445
</PropertyGroup>
4546
<ItemGroup>
46-
<Reference Include="Microsoft.Data.Edm, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Microsoft.Data.Edm.5.6.2\lib\net40\Microsoft.Data.Edm.dll</HintPath>
47+
<Reference Include="Microsoft.Azure.KeyVault.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
48+
<HintPath>..\packages\Microsoft.Azure.KeyVault.Core.1.0.0\lib\net40\Microsoft.Azure.KeyVault.Core.dll</HintPath>
4849
<Private>True</Private>
4950
</Reference>
50-
<Reference Include="Microsoft.Data.OData, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
51-
<HintPath>..\packages\Microsoft.Data.OData.5.6.2\lib\net40\Microsoft.Data.OData.dll</HintPath>
51+
<Reference Include="Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
52+
<HintPath>..\packages\Microsoft.Data.Edm.5.7.0\lib\net40\Microsoft.Data.Edm.dll</HintPath>
5253
<Private>True</Private>
5354
</Reference>
54-
<Reference Include="Microsoft.Data.Services.Client, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
55-
<HintPath>..\packages\Microsoft.Data.Services.Client.5.6.2\lib\net40\Microsoft.Data.Services.Client.dll</HintPath>
55+
<Reference Include="Microsoft.Data.OData, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56+
<HintPath>..\packages\Microsoft.Data.OData.5.7.0\lib\net40\Microsoft.Data.OData.dll</HintPath>
5657
<Private>True</Private>
5758
</Reference>
58-
<Reference Include="Microsoft.WindowsAzure.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
59-
<HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.2.0.3\lib\net40\Microsoft.WindowsAzure.Configuration.dll</HintPath>
59+
<Reference Include="Microsoft.Data.Services.Client, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
60+
<HintPath>..\packages\Microsoft.Data.Services.Client.5.7.0\lib\net40\Microsoft.Data.Services.Client.dll</HintPath>
61+
<Private>True</Private>
62+
</Reference>
63+
<Reference Include="Microsoft.WindowsAzure.Configuration, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64+
<HintPath>..\packages\Microsoft.WindowsAzure.ConfigurationManager.3.2.1\lib\net40\Microsoft.WindowsAzure.Configuration.dll</HintPath>
6065
<Private>True</Private>
6166
</Reference>
6267
<Reference Include="Microsoft.WindowsAzure.ServiceRuntime, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
63-
<Reference Include="Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64-
<SpecificVersion>False</SpecificVersion>
65-
<HintPath>..\packages\WindowsAzure.Storage.4.3.0\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
66-
<Private>False</Private>
68+
<Reference Include="Microsoft.WindowsAzure.Storage, Version=7.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
69+
<HintPath>..\packages\WindowsAzure.Storage.7.1.2\lib\net40\Microsoft.WindowsAzure.Storage.dll</HintPath>
70+
<Private>True</Private>
6771
</Reference>
68-
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
69-
<HintPath>..\packages\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
72+
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
73+
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
7074
<Private>True</Private>
7175
</Reference>
72-
<Reference Include="Sitecore.Client">
73-
<HintPath>..\packages\Sitecore.Client.7.2.3\lib\net45\Sitecore.Client.dll</HintPath>
76+
<Reference Include="Sitecore.Client, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
77+
<HintPath>..\packages\SC.Sitecore.Client.8.1.3.160519\lib\Sitecore.Client.dll</HintPath>
7478
<Private>False</Private>
7579
</Reference>
76-
<Reference Include="Sitecore.Kernel">
77-
<HintPath>..\packages\Sitecore.Kernel.7.2.3\lib\net45\Sitecore.Kernel.dll</HintPath>
80+
<Reference Include="Sitecore.Kernel, Version=8.1.0.0, Culture=neutral, processorArchitecture=MSIL">
81+
<HintPath>..\packages\SC.Sitecore.Kernel.8.1.3.160519\lib\Sitecore.Kernel.dll</HintPath>
7882
<Private>False</Private>
7983
</Reference>
80-
<Reference Include="Sitecore.Logging">
81-
<HintPath>..\packages\Sitecore.Logging.7.2.3\lib\net35\Sitecore.Logging.dll</HintPath>
84+
<Reference Include="Sitecore.Logging, Version=1.2.0.30715, Culture=neutral, processorArchitecture=MSIL">
85+
<HintPath>..\packages\SC.Sitecore.Logging.8.1.3.160519\lib\Sitecore.Logging.dll</HintPath>
8286
<Private>False</Private>
8387
</Reference>
84-
<Reference Include="System.Spatial, Version=5.6.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85-
<HintPath>..\packages\System.Spatial.5.6.2\lib\net40\System.Spatial.dll</HintPath>
88+
<Reference Include="System.Data" />
89+
<Reference Include="System.Spatial, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
90+
<HintPath>..\packages\System.Spatial.5.7.0\lib\net40\System.Spatial.dll</HintPath>
8691
<Private>True</Private>
8792
</Reference>
8893
<Reference Include="System.Web.ApplicationServices" />
@@ -160,4 +165,4 @@
160165
<Target Name="AfterBuild">
161166
</Target>
162167
-->
163-
</Project>
168+
</Project>

src/Sitecore.Azure.Diagnostics/Storage/AzureBlobStorageProvider.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Configuration.Provider;
44
using System.Linq;
55
using System.Text;
6-
using Microsoft.WindowsAzure;
6+
using Microsoft.Azure;
77
using Microsoft.WindowsAzure.ServiceRuntime;
88
using Microsoft.WindowsAzure.Storage;
99
using Microsoft.WindowsAzure.Storage.Blob;
@@ -245,8 +245,8 @@ public virtual ICloudBlob CreateBlob(string blobName)
245245
blobName = string.IsNullOrEmpty(webRoleRelativeAddress) ? blobName : string.Format("{0}/{1}", webRoleRelativeAddress, blobName);
246246

247247
ICloudBlob blob = this.CloudBlobContainer.Exists() ?
248-
this.CloudBlobContainer.GetBlockBlobReference(blobName) :
249-
this.GetContainer(this.ContainerName).GetBlockBlobReference(blobName);
248+
this.CloudBlobContainer.GetAppendBlobReference(blobName) :
249+
this.GetContainer(this.ContainerName).GetAppendBlobReference(blobName);
250250

251251
return blob;
252252
}

src/Sitecore.Azure.Diagnostics/Tasks/BlobCleaner.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected ICollection<ICloudBlob> GetCandidateBlobs(CloudBlobContainer container
152152
/// <summary>
153153
/// Gets the BLOB age. The time since last modification.
154154
/// </summary>
155-
/// <param name="blob">The cloud block BLOB.</param>
155+
/// <param name="blob">The cloud BLOB.</param>
156156
/// <returns></returns>
157157
protected TimeSpan GetBlobAge(ICloudBlob blob)
158158
{
@@ -164,7 +164,7 @@ protected TimeSpan GetBlobAge(ICloudBlob blob)
164164
/// <summary>
165165
/// Gets the BLOB time (max of last modified)
166166
/// </summary>
167-
/// <param name="blob">The cloud block BLOB.</param>
167+
/// <param name="blob">The cloud BLOB.</param>
168168
/// <returns></returns>
169169
protected DateTime GetBlobLastModifiedDate(ICloudBlob blob)
170170
{

src/Sitecore.Azure.Diagnostics/Tasks/BlobsCleanupAgent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public virtual void Run()
5656

5757
this.LogInfo("Scheduling.BlobsCleanupAgent: Done.");
5858

59-
TaskCounters.FileCleanups.Increment();
59+
JobsCount.TasksFileCleanups.Increment();
6060
}
6161

6262
/// <summary>

0 commit comments

Comments
 (0)