C# Class Base.TService

Inheritance: AService
Exibir arquivo Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
AcceptChannel ( ) : Task
Add ( System.Action action ) : void
ConnectChannel ( string host, int port ) : AChannel
Dispose ( ) : void
GetChannel ( long id ) : AChannel
Remove ( long id ) : void
TService ( ) : System
TService ( string host, int port ) : System

即可做client也可做server

Update ( ) : void

Method Details

AcceptChannel() public method

public AcceptChannel ( ) : Task
return Task

Add() public method

public Add ( System.Action action ) : void
action System.Action
return void

ConnectChannel() public method

public ConnectChannel ( string host, int port ) : AChannel
host string
port int
return AChannel

Dispose() public method

public Dispose ( ) : void
return void

GetChannel() public method

public GetChannel ( long id ) : AChannel
id long
return AChannel

Remove() public method

public Remove ( long id ) : void
id long
return void

TService() public method

public TService ( ) : System
return System

TService() public method

即可做client也可做server
public TService ( string host, int port ) : System
host string
port int
return System

Update() public method

public Update ( ) : void
return void