Class NetworkVirtualFileProvider
public class NetworkVirtualFileProvider : VirtualFileProviderBase, IVirtualFileProvider, IDisposable- Inheritance
- 
      objectNetworkVirtualFileProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
NetworkVirtualFileProvider(SocketMessageLayer, string)
public NetworkVirtualFileProvider(SocketMessageLayer socketMessageLayer, string remoteUrl)Parameters
- socketMessageLayerSocketMessageLayer
- remoteUrlstring
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
- urlstring
- The path. 
Returns
GetAbsolutePath(string)
Gets the absolute path for the specified local path from this provider.
public override string GetAbsolutePath(string path)Parameters
- pathstring
- The 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
- urlstring
- modeVirtualFileMode
- The mode. 
- accessVirtualFileAccess
- The access. 
- shareVirtualFileShare
- The process sharing mode. 
- streamFlagsStreamFlags
- The type of stream needed 
Returns
- Stream
- The opened stream. 
RegisterServer(SocketMessageLayer)
public static void RegisterServer(SocketMessageLayer socketMessageLayer)Parameters
- socketMessageLayerSocketMessageLayer