C# Class Microsoft.AspNet.SignalR.Stress.RunBase

Inheritance: IRun
ファイルを表示 Open project: SignalR/SignalR

Public Methods

Method Description
Dispose ( ) : void
Initialize ( ) : void

Step 1: Initialize the run. For example, initialize the performance counters.

Record ( ) : void

Step 4: Now let us record the sampling data we just collected for this run, and aggregate the results if necessary.

Run ( ) : void

This is the starting point.

RunBase ( RunData runData ) : System
RunTest ( ) : void

Step 2: Run the test by scheduling multiple background threads to send the messages to the server.

Sample ( ) : void

Step 3: Collect samples data at certain sampling rate ( configurable ) while the test is still running but after certain warm up time.

Protected Methods

Method Description
CreateReceiver ( int connectionIndex ) : IDisposable

Sets up the receivers for the messages. For example, it can set up the client connection and HubProxies so that in the hub cases, this can receives messages from the server. In the low level case, it can set up the subscribers for the messagebus.

Dispose ( bool disposing ) : void
GetContractName ( ) : string
GetPerformanceCounters ( IPerformanceCounterManager counterManager ) : IPerformanceCounter[]
InitializePerformanceCounters ( ) : void

Called by the Initialize method to initialize a default set of perf counters

RecordAggregates ( string key, long values ) : void

Aggregate the sample data by sorting the input array and dispaly the Median/Average/Stddev for a particular measurement

Send ( int senderIndex, string source ) : Task

Sends the messages from client to the server or inject message into connection or the message bus.

Private Methods

Method Description
Sender ( object state ) : void

Method Details

CreateReceiver() protected abstract method

Sets up the receivers for the messages. For example, it can set up the client connection and HubProxies so that in the hub cases, this can receives messages from the server. In the low level case, it can set up the subscribers for the messagebus.
protected abstract CreateReceiver ( int connectionIndex ) : IDisposable
connectionIndex int
return IDisposable

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetContractName() protected method

protected GetContractName ( ) : string
return string

GetPerformanceCounters() protected method

protected GetPerformanceCounters ( IPerformanceCounterManager counterManager ) : IPerformanceCounter[]
counterManager IPerformanceCounterManager
return IPerformanceCounter[]

Initialize() public method

Step 1: Initialize the run. For example, initialize the performance counters.
public Initialize ( ) : void
return void

InitializePerformanceCounters() protected method

Called by the Initialize method to initialize a default set of perf counters
protected InitializePerformanceCounters ( ) : void
return void

Record() public method

Step 4: Now let us record the sampling data we just collected for this run, and aggregate the results if necessary.
public Record ( ) : void
return void

RecordAggregates() protected method

Aggregate the sample data by sorting the input array and dispaly the Median/Average/Stddev for a particular measurement
protected RecordAggregates ( string key, long values ) : void
key string
values long
return void

Run() public method

This is the starting point.
public Run ( ) : void
return void

RunBase() public method

public RunBase ( RunData runData ) : System
runData RunData
return System

RunTest() public method

Step 2: Run the test by scheduling multiple background threads to send the messages to the server.
public RunTest ( ) : void
return void

Sample() public method

Step 3: Collect samples data at certain sampling rate ( configurable ) while the test is still running but after certain warm up time.
public Sample ( ) : void
return void

Send() protected abstract method

Sends the messages from client to the server or inject message into connection or the message bus.
protected abstract Send ( int senderIndex, string source ) : Task
senderIndex int
source string
return Task