Photon Server API

Protected Member Functions | Properties | List of all members
Photon.Hive.Tests.TcpTestsBase Class Reference

The tcp tests base. More...

Inheritance diagram for Photon.Hive.Tests.TcpTestsBase:
Photon.Hive.Tests.TcpPerformanceTests

Protected Member Functions

 TcpTestsBase ()
 Initializes a new instance of the TcpTestsBase class. More...
 
void LogElapsedTime (ILogger logger, string prefix, TimeSpan elapsedTime, long numItems)
 The log elapsed time. More...
 
void WaitForEvent ()
 The wait for event. More...
 
void WaitForInitResponse ()
 The wait for init response. More...
 
void WaitForOperationResponse ()
 The wait for operation response. More...
 

Properties

AutoResetEvent AutoResetEventEvent [get, set]
 Gets or sets AutoResetEventEvent. More...
 
AutoResetEvent AutoResetEventInit [get, set]
 Gets or sets AutoResetEventInit. More...
 
AutoResetEvent AutoResetEventOperation [get, set]
 Gets or sets AutoResetEventOperation. More...
 
int WaitTime [get, set]
 Gets or sets WaitTime. More...
 

Detailed Description

The tcp tests base.

Constructor & Destructor Documentation

◆ TcpTestsBase()

Photon.Hive.Tests.TcpTestsBase.TcpTestsBase ( )
inlineprotected

Initializes a new instance of the TcpTestsBase class.

Member Function Documentation

◆ LogElapsedTime()

void Photon.Hive.Tests.TcpTestsBase.LogElapsedTime ( ILogger  logger,
string  prefix,
TimeSpan  elapsedTime,
long  numItems 
)
inlineprotected

The log elapsed time.

Parameters
loggerThe logger.
prefixThe prefix.
elapsedTimeThe elapsed time.
numItemsThe num items.

◆ WaitForEvent()

void Photon.Hive.Tests.TcpTestsBase.WaitForEvent ( )
inlineprotected

The wait for event.

◆ WaitForInitResponse()

void Photon.Hive.Tests.TcpTestsBase.WaitForInitResponse ( )
inlineprotected

The wait for init response.

◆ WaitForOperationResponse()

void Photon.Hive.Tests.TcpTestsBase.WaitForOperationResponse ( )
inlineprotected

The wait for operation response.

Property Documentation

◆ AutoResetEventEvent

AutoResetEvent Photon.Hive.Tests.TcpTestsBase.AutoResetEventEvent
getsetprotected

Gets or sets AutoResetEventEvent.

◆ AutoResetEventInit

AutoResetEvent Photon.Hive.Tests.TcpTestsBase.AutoResetEventInit
getsetprotected

Gets or sets AutoResetEventInit.

◆ AutoResetEventOperation

AutoResetEvent Photon.Hive.Tests.TcpTestsBase.AutoResetEventOperation
getsetprotected

Gets or sets AutoResetEventOperation.

◆ WaitTime

int Photon.Hive.Tests.TcpTestsBase.WaitTime
getsetprotected

Gets or sets WaitTime.