C# Класс PBCaGw.Workers.WorkerChain

Stores a processing chain composed of workers
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ChannelCid uint>.ConcurrentDictionary
ChannelSubscriptions uint>.ConcurrentDictionary
Channels ObservableConcurrentBag
ClientEndPoint System.Net.IPEndPoint
Gateway Gateway
IsDisposed bool
IsDisposing bool
LastMessage System.DateTime
ServerEndPoint System.Net.IPEndPoint
Subscriptions uint>.ConcurrentDictionary

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

Метод Описание
Add ( Worker worker ) : void

Adds the next Worker to the chain and register it to the previous Worker to the ReceiveData event.

Dispose ( ) : void

Dispose the current chain.

NbClientConn ( ) : int
NbServerConn ( ) : int
RemoveLast ( ) : void
TcpChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain

Creates a request TCP chain

TcpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain

Creates a response TCP chains

UdpBeaconReceiver ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
UdpChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain

Creates a request UDP chain

UdpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain

Creates a request UDP chain

UseChain ( WorkerChain chain ) : void

Link 2 chains together (a client which is connected to an IOC)

this ( int key ) : Worker

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

Метод Описание
GatewayTenSecJobs ( object sender, EventArgs e ) : void

Cleanup server chains (IOC) which are not used since more than Gateway.IOC_KEEP_ALIVE_CONNECTION

PopulateChain ( Gateway gateway, ChainSide side, IEnumerable workersNeeded, IPEndPoint client, IPEndPoint server ) : WorkerChain

Used to populate the chain based on a list of types

WorkerChain ( ) : System

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

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

Adds the next Worker to the chain and register it to the previous Worker to the ReceiveData event.
public Add ( Worker worker ) : void
worker Worker
Результат void

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

Dispose the current chain.
public Dispose ( ) : void
Результат void

NbClientConn() публичный статический Метод

public static NbClientConn ( ) : int
Результат int

NbServerConn() публичный статический Метод

public static NbServerConn ( ) : int
Результат int

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

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

TcpChain() публичный статический Метод

Creates a request TCP chain
public static TcpChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server System.Net.IPEndPoint
Результат WorkerChain

TcpResponseChain() публичный статический Метод

Creates a response TCP chains
public static TcpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, IPEndPoint server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server System.Net.IPEndPoint
Результат WorkerChain

UdpBeaconReceiver() публичный статический Метод

public static UdpBeaconReceiver ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Результат WorkerChain

UdpChain() публичный статический Метод

Creates a request UDP chain
public static UdpChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Результат WorkerChain

UdpResponseChain() публичный статический Метод

Creates a request UDP chain
public static UdpResponseChain ( Gateway gateway, ChainSide side, IPEndPoint client, List server ) : WorkerChain
gateway Gateway
side ChainSide
client System.Net.IPEndPoint
server List
Результат WorkerChain

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

Link 2 chains together (a client which is connected to an IOC)
public UseChain ( WorkerChain chain ) : void
chain WorkerChain
Результат void

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

public this ( int key ) : Worker
key int
Результат Worker

Описание свойств

ChannelCid публичное свойство

public ConcurrentDictionary ChannelCid
Результат uint>.ConcurrentDictionary

ChannelSubscriptions публичное свойство

public ConcurrentDictionary ChannelSubscriptions
Результат uint>.ConcurrentDictionary

Channels публичное свойство

public ObservableConcurrentBag Channels
Результат ObservableConcurrentBag

ClientEndPoint публичное свойство

public IPEndPoint,System.Net ClientEndPoint
Результат System.Net.IPEndPoint

Gateway публичное свойство

public Gateway Gateway
Результат Gateway

IsDisposed публичное свойство

public bool IsDisposed
Результат bool

IsDisposing публичное свойство

public bool IsDisposing
Результат bool

LastMessage публичное свойство

public DateTime,System LastMessage
Результат System.DateTime

ServerEndPoint публичное свойство

public IPEndPoint,System.Net ServerEndPoint
Результат System.Net.IPEndPoint

Subscriptions публичное свойство

public ConcurrentDictionary Subscriptions
Результат uint>.ConcurrentDictionary