mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
776 B
31 lines
776 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using JetBrains.Annotations;
|
|
using Microsoft.Extensions.FileProviders;
|
|
|
|
namespace Volo.Abp.VirtualFileSystem
|
|
{
|
|
internal class EnumerableDirectoryContents : IDirectoryContents
|
|
{
|
|
private readonly IEnumerable<IFileInfo> _entries;
|
|
|
|
public EnumerableDirectoryContents([NotNull] IEnumerable<IFileInfo> entries)
|
|
{
|
|
Check.NotNull(entries, nameof(entries));
|
|
|
|
_entries = entries;
|
|
}
|
|
|
|
public bool Exists => true;
|
|
|
|
public IEnumerator<IFileInfo> GetEnumerator()
|
|
{
|
|
return _entries.GetEnumerator();
|
|
}
|
|
|
|
IEnumerator IEnumerable.GetEnumerator()
|
|
{
|
|
return _entries.GetEnumerator();
|
|
}
|
|
}
|
|
}
|