Ejemplo n.º 1
0
        public virtual Lightstreamer.DotNet.Client.SubscribedTableKey SubscribeTable(ExtendedTableInfo table, IExtendedTableListener listener)
        {
            Lightstreamer.DotNet.Client.SubscribedTableKey key;
            ServerManager connManager = this.ConnManager;
            ITableManager manager2    = new ExtendedTableManager(table, listener);

            try
            {
                key = connManager.SubscrTable(manager2, true);
            }
            catch (PhaseException)
            {
                throw new SubscrException("Connection closed");
            }
            return(key);
        }
Ejemplo n.º 2
0
 public virtual void DoUpdate(Lightstreamer.DotNet.Client.ServerUpdateEvent values)
 {
     if (values.ItemCode != 1)
     {
         throw new PushServerException(2);
     }
     if (this.enclosingInstance.managerWithListener != null)
     {
         this.enclosingInstance.managerWithListener.ProcessUpdate(values, this.itemIndex + 1, this.itemIndex);
     }
     else if (this.enclosingInstance.extListener != null)
     {
         ExtendedTableManager.ProcessUpdate(values, this.itemIndex, this.enclosingInstance.table, this.enclosingInstance.extListener);
     }
     else
     {
         VirtualTableManager.ProcessFastUpdate(values, this.itemIndex, this.enclosingInstance.table, this.enclosingInstance.fastListener);
     }
 }
Ejemplo n.º 3
0
 public virtual SubscribedTableKey SubscribeTable(ExtendedTableInfo table, IExtendedTableListener listener)
 {
     SubscribedTableKey key;
     ServerManager connManager = this.ConnManager;
     ITableManager manager2 = new ExtendedTableManager(table, listener);
     try
     {
         key = connManager.SubscrTable(manager2, true);
     }
     catch (PhaseException)
     {
         throw new SubscrException("Connection closed");
     }
     return key;
 }