Skip to content

Commit

Permalink
NuGet v1.3.0, enumeration and metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristn committed Aug 3, 2019
1 parent bc660eb commit 9d38f24
Show file tree
Hide file tree
Showing 5 changed files with 989 additions and 139 deletions.
12 changes: 6 additions & 6 deletions BlobHelper/BlobHelper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.2.2</Version>
<Version>1.3.0</Version>
<Authors>Joel Christner</Authors>
<Description>BLOB storage wrapper for Microsoft Azure, Amazon S3, Kvpbase, and local filesystem written in C#.</Description>
<Copyright>(c)2019 Joel Christner</Copyright>
<PackageProjectUrl>https://github.com/jchristn/BlobHelper</PackageProjectUrl>
<RepositoryUrl>https://github.com/jchristn/BlobHelper</RepositoryUrl>
<RepositoryType>Github</RepositoryType>
<PackageLicenseUrl>https://github.com/jchristn/BlobHelper/blob/master/LICENSE.TXT</PackageLicenseUrl>
<PackageReleaseNotes>Add missing regions</PackageReleaseNotes>
<PackageReleaseNotes>Enumeration and object metadata.</PackageReleaseNotes>
<PackageIconUrl>https://raw.githubusercontent.com/jchristn/BlobHelper/master/assets/icon.ico</PackageIconUrl>
<PackageTags>blob azure storage s3 object rest</PackageTags>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.3.100.7" />
<PackageReference Include="AWSSDK.Core" Version="3.3.103.18" />
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.3.100.1" />
<PackageReference Include="AWSSDK.S3" Version="3.3.101.5" />
<PackageReference Include="KvpbaseSDK" Version="3.1.5" />
<PackageReference Include="AWSSDK.S3" Version="3.3.104.6" />
<PackageReference Include="KvpbaseSDK" Version="3.1.8" />
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="RestWrapper" Version="1.0.9" />
<PackageReference Include="RestWrapper" Version="2.0.4" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
</ItemGroup>

Expand Down
82 changes: 82 additions & 0 deletions BlobHelper/BlobMetadata.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace BlobHelper
{
/// <summary>
/// Metadata about a BLOB.
/// </summary>
public class BlobMetadata
{
#region Public-Members

/// <summary>
/// Object key.
/// </summary>
public string Key { get; set; }

/// <summary>
/// Content type for the object.
/// </summary>
public string ContentType { get; set; }

/// <summary>
/// Content length of the object.
/// </summary>
public long ContentLength { get; set; }

/// <summary>
/// ETag of the object.
/// </summary>
public string ETag { get; set; }

/// <summary>
/// Timestamp from when the object was created.
/// </summary>
public DateTime Created { get; set; }

#endregion

#region Private-Members

#endregion

#region Constructors-and-Factories

/// <summary>
/// Instantiate the object.
/// </summary>
public BlobMetadata()
{

}

#endregion

#region Public-Methods

/// <summary>
/// Create a human-readable string of the object.
/// </summary>
/// <returns>String.</returns>
public override string ToString()
{
string ret =
"---" + Environment.NewLine +
" Key : " + Key + Environment.NewLine +
" Content Type : " + ContentType + Environment.NewLine +
" Content Length : " + ContentLength + Environment.NewLine +
" ETag : " + ETag + Environment.NewLine +
" Created : " + Created.ToString("yyyy-MM-dd HH:mm:ss") + Environment.NewLine;

return ret;
}

#endregion

#region Private-Methods

#endregion
}
}
Loading

0 comments on commit 9d38f24

Please sign in to comment.