C# Class Microsoft.Azure.Commands.Common.Authentication.Models.MemoryDataStore

Inheritance: IDataStore
Show file Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
AddCertificate ( X509Certificate2 cert ) : void
CopyFile ( string oldPath, string newPath ) : void
CreateDirectory ( string path ) : void
DeleteDirectory ( string dir ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
EmptyDirectory ( string dirPath ) : void
FileExists ( string path ) : bool
GetCertificate ( string thumbprint ) : X509Certificate2
GetDirectories ( string sourceDirName ) : string[]
GetDirectories ( string startDirectory, string filePattern, SearchOption options ) : string[]
GetFileAttributes ( string path ) : FileAttributes
GetFiles ( string sourceDirName ) : string[]
GetFiles ( string startDirectory, string filePattern, SearchOption options ) : string[]
ReadFileAsBytes ( string path ) : byte[]
ReadFileAsStream ( string path ) : Stream
ReadFileAsText ( string path ) : string
RemoveCertificate ( string thumbprint ) : void
RenameFile ( string oldPath, string newPath ) : void
WriteFile ( string path, byte contents ) : void
WriteFile ( string path, string contents ) : void
WriteFile ( string path, string contents, Encoding encoding ) : void

Private Methods

Method Description
WildcardToRegex ( string wildcard ) : string

Converts unix asterisk based file pattern to regex

Method Details

AddCertificate() public method

public AddCertificate ( X509Certificate2 cert ) : void
cert System.Security.Cryptography.X509Certificates.X509Certificate2
return void

CopyFile() public method

public CopyFile ( string oldPath, string newPath ) : void
oldPath string
newPath string
return void

CreateDirectory() public method

public CreateDirectory ( string path ) : void
path string
return void

DeleteDirectory() public method

public DeleteDirectory ( string dir ) : void
dir string
return void

DeleteFile() public method

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

DirectoryExists() public method

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

EmptyDirectory() public method

public EmptyDirectory ( string dirPath ) : void
dirPath string
return void

FileExists() public method

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

GetCertificate() public method

public GetCertificate ( string thumbprint ) : X509Certificate2
thumbprint string
return System.Security.Cryptography.X509Certificates.X509Certificate2

GetDirectories() public method

public GetDirectories ( string sourceDirName ) : string[]
sourceDirName string
return string[]

GetDirectories() public method

public GetDirectories ( string startDirectory, string filePattern, SearchOption options ) : string[]
startDirectory string
filePattern string
options SearchOption
return string[]

GetFileAttributes() public method

public GetFileAttributes ( string path ) : FileAttributes
path string
return FileAttributes

GetFiles() public method

public GetFiles ( string sourceDirName ) : string[]
sourceDirName string
return string[]

GetFiles() public method

public GetFiles ( string startDirectory, string filePattern, SearchOption options ) : string[]
startDirectory string
filePattern string
options SearchOption
return string[]

ReadFileAsBytes() public method

public ReadFileAsBytes ( string path ) : byte[]
path string
return byte[]

ReadFileAsStream() public method

public ReadFileAsStream ( string path ) : Stream
path string
return Stream

ReadFileAsText() public method

public ReadFileAsText ( string path ) : string
path string
return string

RemoveCertificate() public method

public RemoveCertificate ( string thumbprint ) : void
thumbprint string
return void

RenameFile() public method

public RenameFile ( string oldPath, string newPath ) : void
oldPath string
newPath string
return void

WriteFile() public method

public WriteFile ( string path, byte contents ) : void
path string
contents byte
return void

WriteFile() public method

public WriteFile ( string path, string contents ) : void
path string
contents string
return void

WriteFile() public method

public WriteFile ( string path, string contents, Encoding encoding ) : void
path string
contents string
encoding System.Text.Encoding
return void