Search Results for

    Show / Hide Table of Contents

    Class LocalStream

    LocalStream is a wrapper for a FileStream which makes a shadow-copy of the file if it is not located on the local server.

    Inheritance
    System.Object
    System.MarshalByRefObject
    System.IO.Stream
    System.IO.FileStream
    Win32Stream
    LocalStream
    Implements
    System.IDisposable
    Inherited Members
    Win32Stream.CreateFile(String, FileAccess, FileMode)
    System.IO.FileStream.GetAccessControl()
    System.IO.FileStream.SetAccessControl(System.Security.AccessControl.FileSecurity)
    System.IO.FileStream.Flush()
    System.IO.FileStream.Flush(System.Boolean)
    System.IO.FileStream.SetLength(System.Int64)
    System.IO.FileStream.Read(System.Byte[], System.Int32, System.Int32)
    System.IO.FileStream.Seek(System.Int64, System.IO.SeekOrigin)
    System.IO.FileStream.Write(System.Byte[], System.Int32, System.Int32)
    System.IO.FileStream.BeginRead(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.FileStream.EndRead(System.IAsyncResult)
    System.IO.FileStream.ReadByte()
    System.IO.FileStream.BeginWrite(System.Byte[], System.Int32, System.Int32, System.AsyncCallback, System.Object)
    System.IO.FileStream.EndWrite(System.IAsyncResult)
    System.IO.FileStream.WriteByte(System.Byte)
    System.IO.FileStream.Lock(System.Int64, System.Int64)
    System.IO.FileStream.Unlock(System.Int64, System.Int64)
    System.IO.FileStream.ReadAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.FileStream.WriteAsync(System.Byte[], System.Int32, System.Int32, System.Threading.CancellationToken)
    System.IO.FileStream.FlushAsync(System.Threading.CancellationToken)
    System.IO.FileStream.CanRead
    System.IO.FileStream.CanWrite
    System.IO.FileStream.CanSeek
    System.IO.FileStream.IsAsync
    System.IO.FileStream.Length
    System.IO.FileStream.Name
    System.IO.FileStream.Position
    System.IO.FileStream.Handle
    System.IO.FileStream.SafeFileHandle
    System.IO.Stream.Null
    System.IO.Stream.CopyToAsync(System.IO.Stream)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32)
    System.IO.Stream.CopyToAsync(System.IO.Stream, System.Int32, System.Threading.CancellationToken)
    System.IO.Stream.CopyTo(System.IO.Stream)
    System.IO.Stream.CopyTo(System.IO.Stream, System.Int32)
    System.IO.Stream.Close()
    System.IO.Stream.Dispose()
    System.IO.Stream.FlushAsync()
    System.IO.Stream.CreateWaitHandle()
    System.IO.Stream.ReadAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.WriteAsync(System.Byte[], System.Int32, System.Int32)
    System.IO.Stream.Synchronized(System.IO.Stream)
    System.IO.Stream.ObjectInvariant()
    System.IO.Stream.CanTimeout
    System.IO.Stream.ReadTimeout
    System.IO.Stream.WriteTimeout
    System.MarshalByRefObject.MemberwiseClone(System.Boolean)
    System.MarshalByRefObject.GetLifetimeService()
    System.MarshalByRefObject.InitializeLifetimeService()
    System.MarshalByRefObject.CreateObjRef(System.Type)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: ImageVault.Core.Lib.IO
    Assembly: ImageVault.Core.dll
    Syntax
    public class LocalStream : Win32Stream, IDisposable
    Remarks

    2014-11-17, INTERNAL\ricwar: Created

    Methods

    Dispose(Boolean)

    Releases the resources used by the LocalStream.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Set to true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    System.IO.FileStream.Dispose(System.Boolean)

    OpenRead(String, String)

    Opens the given file for read-access. Ensures that the file resides on a local hd before opening it.

    Declaration
    public static LocalStream OpenRead(string path, string distinguisher)
    Parameters
    Type Name Description
    System.String path

    The path to the file to open

    System.String distinguisher

    A distinguisher so separate users do not collide.

    Returns
    Type Description
    LocalStream

    Implements

    System.IDisposable
    In This Article
    Back to top (c) Meriworks 2002-2022