C# Class collaborator.CICollaborator

Datei anzeigen Open project: hddevteam/luckyci

Public Methods

Method Description
CICollaborator ( ) : System
ConnectRabbitMQ ( ) : void

代码连接RabbitMQ

HandleMessage ( ) : void

处理消息事件,统一放到此函数里面,此函数放到OnStart中,减少服务启动时的时间。

SaveInfoToDataBase ( ProjectInfo projectInfo, string dbPath, string logPath ) : bool

将数据存储到mongoDB中,并且输出Log信息

Protected Methods

Method Description
Dispose ( bool disposing ) : void

清理所有正在使用的资源。

OnStart ( string args ) : void
OnStop ( ) : void

Private Methods

Method Description
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要修改 使用代码编辑器修改此方法的内容。

Method Details

CICollaborator() public method

public CICollaborator ( ) : System
return System

ConnectRabbitMQ() public method

代码连接RabbitMQ
public ConnectRabbitMQ ( ) : void
return void

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

HandleMessage() public method

处理消息事件,统一放到此函数里面,此函数放到OnStart中,减少服务启动时的时间。
public HandleMessage ( ) : void
return void

OnStart() protected method

protected OnStart ( string args ) : void
args string
return void

OnStop() protected method

protected OnStop ( ) : void
return void

SaveInfoToDataBase() public method

将数据存储到mongoDB中,并且输出Log信息
public SaveInfoToDataBase ( ProjectInfo projectInfo, string dbPath, string logPath ) : bool
projectInfo ProjectInfo 从Rabbit取回的信息
dbPath string mongoDB数据库的路径
logPath string Log日志的文件路径
return bool