C# Class J9Updater.FileTransferSvc.ServiceHost

Inheritance: IDisposable
Mostra file Open project: zlphoenix/LearnCSharp Class Usage Examples

Public Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void

建立来自客户端的请求连接

Close ( ) : void
Dispose ( ) : void

执行与释放或重置非托管资源相关的应用程序定义的任务。

ServiceHost ( ) : J9Updater.FileTransferSvc.Ver1
Start ( ) : void

启动服务,打开TCP监听端口

Private Methods

Method Description
ReceiveCallback ( IAsyncResult ar ) : void

接受握手请求的回调方法,进行服务路由匹配

Method Details

AcceptCallback() public method

建立来自客户端的请求连接
public AcceptCallback ( IAsyncResult ar ) : void
ar IAsyncResult
return void

Close() public method

public Close ( ) : void
return void

Dispose() public method

执行与释放或重置非托管资源相关的应用程序定义的任务。
public Dispose ( ) : void
return void

ServiceHost() public method

public ServiceHost ( ) : J9Updater.FileTransferSvc.Ver1
return J9Updater.FileTransferSvc.Ver1

Start() public method

启动服务,打开TCP监听端口
public Start ( ) : void
return void