Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
Prepare for release 0.6.2.0; added 'SupportedLock' in CreateProp meth…
Browse files Browse the repository at this point in the history
…ods of class Prop
  • Loading branch information
DecaTec committed Feb 20, 2017
1 parent cc51c8f commit 65b77f1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions NetFx/DecaTec.WebDav.NetFx/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.1.0")]
[assembly: AssemblyFileVersion("0.6.1.0")]
[assembly: AssemblyVersion("0.6.2.0")]
[assembly: AssemblyFileVersion("0.6.2.0")]
2 changes: 2 additions & 0 deletions NetFx/DecaTec.WebDav.NetFx/WebDavHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ public static LockToken GetLockTokenFromWebDavResponseMessage(WebDavResponseMess
{
// Try to get lock token from response header.
IEnumerable<string> lockTokenHeaderValues;

if (responseMessage.Headers.TryGetValues(WebDavRequestHeader.LockTocken, out lockTokenHeaderValues))
{
var lockTokenHeaderValue = lockTokenHeaderValues.FirstOrDefault();

if (lockTokenHeaderValue != null)
return new LockToken(lockTokenHeaderValue);
}
Expand Down
3 changes: 1 addition & 2 deletions Shared/DecaTec.WebDav.Shared/LockToken.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public LockToken(string lockToken)
}

/// <summary>
/// Gets the raw representation of the lock token for serialization purposes.
///
/// Gets the raw representation of the lock token for serialization purposes. ///
/// Use <see cref="ToString"/> to get the formatted representation for use in headers.
/// </summary>
public string RawLockToken { get; }
Expand Down
4 changes: 4 additions & 0 deletions Shared/DecaTec.WebDav.Shared/WebDavArtifacts/Prop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ public static Prop CreatePropWithEmptyProperties(params string[] emptyPropertyNa
case PropNameConstants.ParentName:
prop.ParentName = string.Empty;
break;
case PropNameConstants.SupportedLock:
prop.SupportedLock = new SupportedLock();
break;
case PropNameConstants.QuotaAvailableBytes:
prop.QuotaAvailableBytes = string.Empty;
break;
Expand Down Expand Up @@ -139,6 +142,7 @@ public static Prop CreatePropWithEmptyPropertiesAll()
prop.LastAccessed = string.Empty;
prop.Name = string.Empty;
prop.ParentName = string.Empty;
prop.SupportedLock = new SupportedLock();
prop.QuotaAvailableBytes = string.Empty;
prop.QuotaUsedBytes = string.Empty;
return prop;
Expand Down
4 changes: 2 additions & 2 deletions Uwp/DecaTec.WebDav.Uwp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.1.0")]
[assembly: AssemblyFileVersion("0.6.1.0")]
[assembly: AssemblyVersion("0.6.2.0")]
[assembly: AssemblyFileVersion("0.6.2.0")]

0 comments on commit 65b77f1

Please sign in to comment.