Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit d29fc20

Browse files
committed
Merge pull request #75 from vinaysh-msft/master
Storage Client Library - 4.3.0
2 parents 62c2b90 + 95b3951 commit d29fc20

File tree

82 files changed

+782
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+782
-151
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ UpgradeLog*.XML
110110

111111
# NuGet
112112
AppPackages/
113+
Packages/
113114

114115
# Test Results
115116
TestResults/

CustomDictionary.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
<Word>EntityProperty</Word>
4848
<Word>Etag</Word>
4949
<Word>OData</Word>
50-
<Word>Cors</Word>
51-
<Word>MaxAgeInSeconds</Word>
50+
<Word>Cors</Word>
51+
<Word>MaxAgeInSeconds</Word>
5252
</Recognized>
5353
<Compound>
5454
<Term CompoundAlternate="TableQuery">Tablequery</Term>
@@ -65,6 +65,6 @@
6565
<DiscreteExceptions>
6666
<Term>etag</Term>
6767
<Term>Etag</Term>
68-
</DiscreteExceptions>
68+
</DiscreteExceptions>
6969
</Words>
70-
</Dictionary>
70+
</Dictionary>

Lib/ClassLibraryCommon/Auth/Protocol/SharedKeyAuthenticationHandler.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,16 @@ public void SignRequest(HttpWebRequest request, OperationContext operationContex
6767

6868
if (this.credentials.IsSharedKey)
6969
{
70-
string message = this.canonicalizer.CanonicalizeHttpRequest(request, this.accountName);
71-
Logger.LogVerbose(operationContext, SR.TraceStringToSign, message);
72-
7370
StorageAccountKey accountKey = this.credentials.Key;
74-
string signature = CryptoUtility.ComputeHmac256(accountKey.KeyValue, message);
75-
7671
if (!string.IsNullOrEmpty(accountKey.KeyName))
7772
{
7873
request.Headers.Add(Constants.HeaderConstants.KeyNameHeader, accountKey.KeyName);
7974
}
8075

76+
string message = this.canonicalizer.CanonicalizeHttpRequest(request, this.accountName);
77+
Logger.LogVerbose(operationContext, SR.TraceStringToSign, message);
78+
string signature = CryptoUtility.ComputeHmac256(accountKey.KeyValue, message);
79+
8180
request.Headers.Add(
8281
"Authorization",
8382
string.Format(CultureInfo.InvariantCulture, "{0} {1}:{2}", this.canonicalizer.AuthorizationScheme, this.credentials.AccountName, signature));

Lib/ClassLibraryCommon/Core/Executor/TableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Microsoft.WindowsAzure.Storage.Core.Executor
1919
{
20-
#if WINDOWS_DESKTOP && ! WINDOWS_PHONE
20+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
2121
using Microsoft.WindowsAzure.Storage.Table.DataServices;
2222
using System;
2323
using System.Diagnostics.CodeAnalysis;

Lib/ClassLibraryCommon/Core/Executor/TableExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace Microsoft.WindowsAzure.Storage.Core.Executor
1919
{
20-
#if WINDOWS_DESKTOP && ! WINDOWS_PHONE
20+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
2121
using Microsoft.WindowsAzure.Storage.Core.Util;
2222
using Microsoft.WindowsAzure.Storage.RetryPolicies;
2323
using Microsoft.WindowsAzure.Storage.Shared.Protocol;

Lib/ClassLibraryCommon/Core/Logger.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ namespace Microsoft.WindowsAzure.Storage.Core
2323

2424
internal static partial class Logger
2525
{
26-
#if !WINDOWS_PHONE
26+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
2727
private static TraceSource traceSource = new TraceSource(Constants.LogSourceName);
2828
private static volatile bool isClosed = false;
2929
#endif
3030

31-
#if !WINDOWS_PHONE
31+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
3232
static Logger()
3333
{
3434
AppDomain.CurrentDomain.DomainUnload += new EventHandler(Logger.AppDomainUnloadEvent);
3535
AppDomain.CurrentDomain.ProcessExit += new EventHandler(Logger.ProcessExitEvent);
3636
}
3737
#endif
3838

39-
#if !WINDOWS_PHONE
39+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
4040
private static void Close()
4141
{
4242
Logger.isClosed = true;

Lib/ClassLibraryCommon/Core/Util/AsyncStreamCopier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ private static void ForceAbort(AsyncStreamCopier<T> copier, bool timedOut)
322322
try
323323
{
324324
state.ReqTimedOut = timedOut;
325-
#if !WINDOWS_PHONE
325+
#if WINDOWS_DESKTOP && !WINDOWS_PHONE
326326
state.Req.Abort();
327327
#endif
328328
}
-644 KB
Binary file not shown.
-1.45 MB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)