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
socketMessageLayerSocketMessageLayerremoteUrlstring
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
urlstringThe path.
Returns
GetAbsolutePath(string)
Gets the absolute path for the specified local path from this provider.
public override string GetAbsolutePath(string path)
Parameters
pathstringThe 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
urlstringmodeVirtualFileModeThe mode.
accessVirtualFileAccessThe access.
shareVirtualFileShareThe process sharing mode.
streamFlagsStreamFlagsThe type of stream needed
Returns
- Stream
The opened stream.
RegisterServer(SocketMessageLayer)
public static void RegisterServer(SocketMessageLayer socketMessageLayer)
Parameters
socketMessageLayerSocketMessageLayer