public AvventoAPI(SessionManager session) { this.InternalEvents = new _InternalEvents(); this.IncomingMessages = new _IncomingMessages(); this.FileDownloads = new _FileDownloads(); rhi = new ReceiveHandlerImplementation(this); this.session = session; connection = new ConnectionManager(this, rhi, session); rhi.Start(); }
public ConnectionManager(AvventoAPI _avventoApi, ReceiveHandlerImplementation rhi, SessionManager session) { this.rhi = rhi; this._avventoApi = _avventoApi; this.session = session; }