C# Класс Microsoft.AspNet.SignalR.Stress.RunBase

Наследование: IRun
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
Sender ( object state ) : void

Описание методов

CreateReceiver() защищенный абстрактный Метод

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
Результат IDisposable

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetContractName() защищенный Метод

protected GetContractName ( ) : string
Результат string

GetPerformanceCounters() защищенный Метод

protected GetPerformanceCounters ( IPerformanceCounterManager counterManager ) : IPerformanceCounter[]
counterManager IPerformanceCounterManager
Результат IPerformanceCounter[]

Initialize() публичный Метод

Step 1: Initialize the run. For example, initialize the performance counters.
public Initialize ( ) : void
Результат void

InitializePerformanceCounters() защищенный Метод

Called by the Initialize method to initialize a default set of perf counters
protected InitializePerformanceCounters ( ) : void
Результат void

Record() публичный Метод

Step 4: Now let us record the sampling data we just collected for this run, and aggregate the results if necessary.
public Record ( ) : void
Результат void

RecordAggregates() защищенный Метод

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
Результат void

Run() публичный Метод

This is the starting point.
public Run ( ) : void
Результат void

RunBase() публичный Метод

public RunBase ( RunData runData ) : System
runData RunData
Результат System

RunTest() публичный Метод

Step 2: Run the test by scheduling multiple background threads to send the messages to the server.
public RunTest ( ) : void
Результат void

Sample() публичный Метод

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
Результат void

Send() защищенный абстрактный Метод

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
Результат Task