Class NetworkVirtualFileProvider
public class NetworkVirtualFileProvider : VirtualFileProviderBase, IVirtualFileProvider, IDisposable
- Inheritance
-
NetworkVirtualFileProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
NetworkVirtualFileProvider(SocketMessageLayer, string)
public NetworkVirtualFileProvider(SocketMessageLayer socketMessageLayer, string remoteUrl)
Parameters
socketMessageLayer
SocketMessageLayerremoteUrl
string
Properties
RemoteUrl
public string RemoteUrl { get; }
Property Value
Methods
FileExists(string)
Determines whether the specified path points to an existing file.
public override bool FileExists(string url)
Parameters
url
stringThe path.
Returns
GetAbsolutePath(string)
Gets the absolute path for the specified local path from this provider.
public override string GetAbsolutePath(string path)
Parameters
path
stringThe path local to this instance.
Returns
- string
An absolute path.
OpenStream(string, VirtualFileMode, VirtualFileAccess, VirtualFileShare, StreamFlags)
Opens a Stream from the specified path.
public override Stream OpenStream(string url, VirtualFileMode mode, VirtualFileAccess access, VirtualFileShare share = VirtualFileShare.Read, StreamFlags streamFlags = StreamFlags.None)
Parameters
url
stringmode
VirtualFileModeThe mode.
access
VirtualFileAccessThe access.
share
VirtualFileShareThe process sharing mode.
streamFlags
StreamFlagsThe type of stream needed
Returns
- Stream
The opened stream.
RegisterServer(SocketMessageLayer)
public static void RegisterServer(SocketMessageLayer socketMessageLayer)
Parameters
socketMessageLayer
SocketMessageLayer