예제 #1
0
        internal object GetAvailableDiginotes()
        {
            int diginotes = Server.GetAvailableDiginotes(Token);

            AvailableDiginotesUpdated.Invoke(this, diginotes);
            return(diginotes);
        }
예제 #2
0
        private void SetupLoggedInEvents()
        {
            CreateQueue("Diginotes", Token, (model, args) =>
                        AvailableDiginotesUpdated.Invoke(this, (int)Deserialize(args))
                        );

            CreateQueue("PurchaseOrders", Token, (model, args) =>
                        PurchaseOrdersUpdated.Invoke(this, (PurchaseOrder[])Deserialize(args))
                        );

            CreateQueue("SellOrders", Token, (model, args) =>
                        SellOrdersUpdated.Invoke(this, (SellOrder[])Deserialize(args))
                        );

            CreateQueue("Transactions", Token, (model, args) =>
                        TransactionsUpdated.Invoke(this, (Transaction[])Deserialize(args))
                        );
        }