Table of Contents

Class NetworkVirtualFileProvider

Namespace
Stride.Shaders.Compiler.Internals
Assembly
Stride.Engine.dll
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 SocketMessageLayer
remoteUrl string

Properties

RemoteUrl

public string RemoteUrl { get; }

Property Value

string

Methods

FileExists(string)

Determines whether the specified path points to an existing file.

public override bool FileExists(string url)

Parameters

url string

The path.

Returns

bool

GetAbsolutePath(string)

Gets the absolute path for the specified local path from this provider.

public override string GetAbsolutePath(string path)

Parameters

path string

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

url string
mode VirtualFileMode

The mode.

access VirtualFileAccess

The access.

share VirtualFileShare

The process sharing mode.

streamFlags StreamFlags

The type of stream needed

Returns

Stream

The opened stream.

RegisterServer(SocketMessageLayer)

public static void RegisterServer(SocketMessageLayer socketMessageLayer)

Parameters

socketMessageLayer SocketMessageLayer