Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public ConnectionManager(AvventoAPI _avventoApi, ReceiveHandlerImplementation rhi, SessionManager session)
 {
     this.rhi         = rhi;
     this._avventoApi = _avventoApi;
     this.session     = session;
 }