C# Class BlogSharp.Core.Impl.Services.FileSystem.TransactionalFileService

Inheritance: IFileService
Show file Open project: BlogSharp/Blogsharp

Public Methods

Method Description
CopyFile ( IFile source, string destination ) : void
CopyFile ( string source, string destination ) : void
CreateFile ( string file ) : IFile
CreateFile ( string file, FileMode fileMode ) : IFile
CreateFile ( string file, FileMode fileMode, FileAccess fileAccess ) : IFile
CreateFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : IFile
CreateFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, FileSystemRights fileSystemRights, FileOptions fileOptions, FileSecurity fileSecurity ) : IFile
DeleteFile ( IFile file ) : void
DeleteFile ( string file ) : void
DirectoryExists ( string directory ) : bool
FileExists ( string file ) : bool
GetDirectory ( string directory ) : IDirectory
GetFile ( string file ) : IFile
MoveFile ( IFile source, string destination ) : void
MoveFile ( string source, string destination ) : void
OpenFile ( string path, FileMode fileMode, FileAccess access, FileShare fileShare ) : Stream
OpenFileForRead ( IFile file ) : Stream
OpenFileForRead ( string source ) : Stream
OpenFileForWrite ( IFile file ) : Stream
OpenFileForWrite ( string source ) : Stream
SearchDirectory ( string directory, string searchPattern, SearchOptions searchOptions, SearchLocation searchLocation ) : IEnumerable
TransactionalFileService ( IProxyFactory factory ) : System

Protected Methods

Method Description
GetFileAccessFromFileMode ( FileMode fileMode ) : FileAccess
GetFileHandle ( string source, KtmTransactionHandle tranHandle, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : SafeFileHandle
GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle ) : SafeFileHandle
GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle, NativeMethods &data ) : SafeFileHandle
GetKtmTransactionHandle ( ) : KtmTransactionHandle
IsInTransaction ( ) : bool
OpenFileUnManaged ( string source, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream
SortListByTypeAndName ( List output ) : void

Method Details

CopyFile() public method

public CopyFile ( IFile source, string destination ) : void
source IFile
destination string
return void

CopyFile() public method

public CopyFile ( string source, string destination ) : void
source string
destination string
return void

CreateFile() public method

public CreateFile ( string file ) : IFile
file string
return IFile

CreateFile() public method

public CreateFile ( string file, FileMode fileMode ) : IFile
file string
fileMode FileMode
return IFile

CreateFile() public method

public CreateFile ( string file, FileMode fileMode, FileAccess fileAccess ) : IFile
file string
fileMode FileMode
fileAccess FileAccess
return IFile

CreateFile() public method

public CreateFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : IFile
file string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
return IFile

CreateFile() public method

public CreateFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, FileSystemRights fileSystemRights, FileOptions fileOptions, FileSecurity fileSecurity ) : IFile
file string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
fileSystemRights FileSystemRights
fileOptions FileOptions
fileSecurity System.Security.AccessControl.FileSecurity
return IFile

DeleteFile() public method

public DeleteFile ( IFile file ) : void
file IFile
return void

DeleteFile() public method

public DeleteFile ( string file ) : void
file string
return void

DirectoryExists() public method

public DirectoryExists ( string directory ) : bool
directory string
return bool

FileExists() public method

public FileExists ( string file ) : bool
file string
return bool

GetDirectory() public method

public GetDirectory ( string directory ) : IDirectory
directory string
return IDirectory

GetFile() public method

public GetFile ( string file ) : IFile
file string
return IFile

GetFileAccessFromFileMode() protected method

protected GetFileAccessFromFileMode ( FileMode fileMode ) : FileAccess
fileMode FileMode
return FileAccess

GetFileHandle() protected method

protected GetFileHandle ( string source, KtmTransactionHandle tranHandle, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : SafeFileHandle
source string
tranHandle KtmTransactionHandle
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
return SafeFileHandle

GetFileHandleForInfo() protected method

protected GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle ) : SafeFileHandle
source string
tranHandle KtmTransactionHandle
return SafeFileHandle

GetFileHandleForInfo() protected method

protected GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle, NativeMethods &data ) : SafeFileHandle
source string
tranHandle KtmTransactionHandle
data NativeMethods
return SafeFileHandle

GetKtmTransactionHandle() protected method

protected GetKtmTransactionHandle ( ) : KtmTransactionHandle
return KtmTransactionHandle

IsInTransaction() protected method

protected IsInTransaction ( ) : bool
return bool

MoveFile() public method

public MoveFile ( IFile source, string destination ) : void
source IFile
destination string
return void

MoveFile() public method

public MoveFile ( string source, string destination ) : void
source string
destination string
return void

OpenFile() public method

public OpenFile ( string path, FileMode fileMode, FileAccess access, FileShare fileShare ) : Stream
path string
fileMode FileMode
access FileAccess
fileShare FileShare
return Stream

OpenFileForRead() public method

public OpenFileForRead ( IFile file ) : Stream
file IFile
return Stream

OpenFileForRead() public method

public OpenFileForRead ( string source ) : Stream
source string
return Stream

OpenFileForWrite() public method

public OpenFileForWrite ( IFile file ) : Stream
file IFile
return Stream

OpenFileForWrite() public method

public OpenFileForWrite ( string source ) : Stream
source string
return Stream

OpenFileUnManaged() protected method

protected OpenFileUnManaged ( string source, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream
source string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
return Stream

SearchDirectory() public method

public SearchDirectory ( string directory, string searchPattern, SearchOptions searchOptions, SearchLocation searchLocation ) : IEnumerable
directory string
searchPattern string
searchOptions SearchOptions
searchLocation SearchLocation
return IEnumerable

SortListByTypeAndName() protected method

protected SortListByTypeAndName ( List output ) : void
output List
return void

TransactionalFileService() public method

public TransactionalFileService ( IProxyFactory factory ) : System
factory IProxyFactory
return System