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

Inheritance: IFileService
Afficher le fichier Open project: BlogSharp/Blogsharp

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public CopyFile ( IFile source, string destination ) : void
source IFile
destination string
Résultat void

CopyFile() public méthode

public CopyFile ( string source, string destination ) : void
source string
destination string
Résultat void

CreateFile() public méthode

public CreateFile ( string file ) : IFile
file string
Résultat IFile

CreateFile() public méthode

public CreateFile ( string file, FileMode fileMode ) : IFile
file string
fileMode FileMode
Résultat IFile

CreateFile() public méthode

public CreateFile ( string file, FileMode fileMode, FileAccess fileAccess ) : IFile
file string
fileMode FileMode
fileAccess FileAccess
Résultat IFile

CreateFile() public méthode

public CreateFile ( string file, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : IFile
file string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
Résultat IFile

CreateFile() public méthode

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
Résultat IFile

DeleteFile() public méthode

public DeleteFile ( IFile file ) : void
file IFile
Résultat void

DeleteFile() public méthode

public DeleteFile ( string file ) : void
file string
Résultat void

DirectoryExists() public méthode

public DirectoryExists ( string directory ) : bool
directory string
Résultat bool

FileExists() public méthode

public FileExists ( string file ) : bool
file string
Résultat bool

GetDirectory() public méthode

public GetDirectory ( string directory ) : IDirectory
directory string
Résultat IDirectory

GetFile() public méthode

public GetFile ( string file ) : IFile
file string
Résultat IFile

GetFileAccessFromFileMode() protected méthode

protected GetFileAccessFromFileMode ( FileMode fileMode ) : FileAccess
fileMode FileMode
Résultat FileAccess

GetFileHandle() protected méthode

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

GetFileHandleForInfo() protected méthode

protected GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle ) : SafeFileHandle
source string
tranHandle KtmTransactionHandle
Résultat SafeFileHandle

GetFileHandleForInfo() protected méthode

protected GetFileHandleForInfo ( string source, KtmTransactionHandle tranHandle, NativeMethods &data ) : SafeFileHandle
source string
tranHandle KtmTransactionHandle
data NativeMethods
Résultat SafeFileHandle

GetKtmTransactionHandle() protected méthode

protected GetKtmTransactionHandle ( ) : KtmTransactionHandle
Résultat KtmTransactionHandle

IsInTransaction() protected méthode

protected IsInTransaction ( ) : bool
Résultat bool

MoveFile() public méthode

public MoveFile ( IFile source, string destination ) : void
source IFile
destination string
Résultat void

MoveFile() public méthode

public MoveFile ( string source, string destination ) : void
source string
destination string
Résultat void

OpenFile() public méthode

public OpenFile ( string path, FileMode fileMode, FileAccess access, FileShare fileShare ) : Stream
path string
fileMode FileMode
access FileAccess
fileShare FileShare
Résultat Stream

OpenFileForRead() public méthode

public OpenFileForRead ( IFile file ) : Stream
file IFile
Résultat Stream

OpenFileForRead() public méthode

public OpenFileForRead ( string source ) : Stream
source string
Résultat Stream

OpenFileForWrite() public méthode

public OpenFileForWrite ( IFile file ) : Stream
file IFile
Résultat Stream

OpenFileForWrite() public méthode

public OpenFileForWrite ( string source ) : Stream
source string
Résultat Stream

OpenFileUnManaged() protected méthode

protected OpenFileUnManaged ( string source, FileMode fileMode, FileAccess fileAccess, FileShare fileShare ) : Stream
source string
fileMode FileMode
fileAccess FileAccess
fileShare FileShare
Résultat Stream

SearchDirectory() public méthode

public SearchDirectory ( string directory, string searchPattern, SearchOptions searchOptions, SearchLocation searchLocation ) : IEnumerable
directory string
searchPattern string
searchOptions SearchOptions
searchLocation SearchLocation
Résultat IEnumerable

SortListByTypeAndName() protected méthode

protected SortListByTypeAndName ( List output ) : void
output List
Résultat void

TransactionalFileService() public méthode

public TransactionalFileService ( IProxyFactory factory ) : System
factory IProxyFactory
Résultat System