You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
63
external/api-doc-tools/monodoc/Monodoc/storage/NullStorage.cs
vendored
Normal file
63
external/api-doc-tools/monodoc/Monodoc/storage/NullStorage.cs
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
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 ()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user