root / trunk / Pithos.Network / NoModificationInfo.cs @ 99e6329f
History | View | Annotate | Download (1.1 kB)
1 |
// ----------------------------------------------------------------------- |
---|---|
2 |
// <copyright file="NoModificationInfo.cs" company="Microsoft"> |
3 |
// TODO: Update copyright text. |
4 |
// </copyright> |
5 |
// ----------------------------------------------------------------------- |
6 |
|
7 |
using System.Diagnostics.Contracts; |
8 |
using Pithos.Interfaces; |
9 |
|
10 |
namespace Pithos.Network |
11 |
{ |
12 |
using System; |
13 |
using System.Collections.Generic; |
14 |
using System.Linq; |
15 |
using System.Text; |
16 |
|
17 |
/// <summary> |
18 |
/// A special ObjectInfo that represents a NotModified HTTP Status (304) |
19 |
/// </summary> |
20 |
public class NoModificationInfo:ObjectInfo |
21 |
{ |
22 |
public NoModificationInfo(string account,string container) |
23 |
{ |
24 |
Contract.Requires(!String.IsNullOrWhiteSpace(account)); |
25 |
Contract.Requires(!String.IsNullOrWhiteSpace(container)); |
26 |
|
27 |
Account = account; |
28 |
Container = container; |
29 |
} |
30 |
|
31 |
public NoModificationInfo(string account, string container,string folder) |
32 |
:this(account,container) |
33 |
{ |
34 |
Name = folder + '/'; |
35 |
} |
36 |
} |
37 |
} |