/
Microsoft.Extensions.FileProviders.Abstractions.cs
64 lines (63 loc) · 3.43 KB
/
Microsoft.Extensions.FileProviders.Abstractions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// ------------------------------------------------------------------------------
// Changes to this file must follow the https://aka.ms/api-review process.
// ------------------------------------------------------------------------------
namespace Microsoft.Extensions.FileProviders
{
public partial interface IDirectoryContents : System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo>, System.Collections.IEnumerable
{
bool Exists { get; }
}
public partial interface IFileInfo
{
bool Exists { get; }
bool IsDirectory { get; }
System.DateTimeOffset LastModified { get; }
long Length { get; }
string Name { get; }
string? PhysicalPath { get; }
System.IO.Stream CreateReadStream();
}
public partial interface IFileProvider
{
Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath);
Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath);
Microsoft.Extensions.Primitives.IChangeToken Watch(string filter);
}
public partial class NotFoundDirectoryContents : Microsoft.Extensions.FileProviders.IDirectoryContents, System.Collections.Generic.IEnumerable<Microsoft.Extensions.FileProviders.IFileInfo>, System.Collections.IEnumerable
{
public NotFoundDirectoryContents() { }
public bool Exists { get { throw null; } }
public static Microsoft.Extensions.FileProviders.NotFoundDirectoryContents Singleton { get { throw null; } }
public System.Collections.Generic.IEnumerator<Microsoft.Extensions.FileProviders.IFileInfo> GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
public partial class NotFoundFileInfo : Microsoft.Extensions.FileProviders.IFileInfo
{
public NotFoundFileInfo(string name) { }
public bool Exists { get { throw null; } }
public bool IsDirectory { get { throw null; } }
public System.DateTimeOffset LastModified { get { throw null; } }
public long Length { get { throw null; } }
public string Name { get { throw null; } }
public string? PhysicalPath { get { throw null; } }
[System.Diagnostics.CodeAnalysis.DoesNotReturn]
public System.IO.Stream CreateReadStream() { throw null; }
}
public partial class NullChangeToken : Microsoft.Extensions.Primitives.IChangeToken
{
internal NullChangeToken() { }
public bool ActiveChangeCallbacks { get { throw null; } }
public bool HasChanged { get { throw null; } }
public static Microsoft.Extensions.FileProviders.NullChangeToken Singleton { get { throw null; } }
public System.IDisposable RegisterChangeCallback(System.Action<object?> callback, object? state) { throw null; }
}
public partial class NullFileProvider : Microsoft.Extensions.FileProviders.IFileProvider
{
public NullFileProvider() { }
public Microsoft.Extensions.FileProviders.IDirectoryContents GetDirectoryContents(string subpath) { throw null; }
public Microsoft.Extensions.FileProviders.IFileInfo GetFileInfo(string subpath) { throw null; }
public Microsoft.Extensions.Primitives.IChangeToken Watch(string filter) { throw null; }
}
}