C# Class Microsoft.Protocols.TestSuites.BranchCache.TestUtility

Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
DoUntilSucceed ( Func func, System.TimeSpan timeout, System.TimeSpan retryInterval ) : bool
DownloadHTTPFile ( string server, string file ) : byte[]
DownloadSMB2File ( string server, string share, string file ) : byte[]
GenerateRandomArray ( int length ) : byte[]

Method Details

DoUntilSucceed() public static method

public static DoUntilSucceed ( Func func, System.TimeSpan timeout, System.TimeSpan retryInterval ) : bool
func Func
timeout System.TimeSpan
retryInterval System.TimeSpan
return bool

DownloadHTTPFile() public static method

public static DownloadHTTPFile ( string server, string file ) : byte[]
server string
file string
return byte[]

DownloadSMB2File() public static method

public static DownloadSMB2File ( string server, string share, string file ) : byte[]
server string
share string
file string
return byte[]

GenerateRandomArray() public static method

public static GenerateRandomArray ( int length ) : byte[]
length int
return byte[]