Xamarin Public Jenkins (auto-signing) fad71374d0 Imported Upstream version 5.2.0.179
Former-commit-id: a536d4f20e27294d8bbc2184d75f3a22364f7ba1
2017-06-16 11:04:32 +00:00

64 lines
867 B
C#

using System;
using System.IO;
using System.Xml;
using System.Linq;
using System.Collections.Generic;
namespace Monodoc.Storage
{
// A storage that doesn't store
public class NullStorage : IDocStorage
{
public NullStorage ()
{
}
public bool SupportRevision {
get {
return false;
}
}
public IDocRevisionManager RevisionManager {
get {
return null;
}
}
public bool SupportChange {
get {
return true;
}
}
public string Store (string id, string text)
{
return id;
}
public string Store (string id, byte[] data)
{
return id;
}
public string Store (string id, Stream stream)
{
return id;
}
public Stream Retrieve (string id)
{
return null;
}
public IEnumerable<string> GetAvailableIds ()
{
return Enumerable.Empty<string> ();
}
public void Dispose ()
{
}
}
}