Esempio n. 1
0
        static public void preStart()
        {
            // Start local storage
            localStorage.start();

            FriendList.loadContacts();
        }
Esempio n. 2
0
        static public void start()
        {
            if (running)
            {
                return;
            }
            running = true;

            // Generate presence list
            PresenceList.init(IxianHandler.publicIP, 0, 'C');

            // Start local storage
            localStorage.start();

            // Start the network queue
            NetworkQueue.start();

            // Prepare the stream processor
            StreamProcessor.initialize();

            // Start the keepalive thread
            PresenceList.startKeepAlive();

            // Start the transfer manager
            TransferManager.start();

            // Start TIV
            tiv.start();

            customAppManager.start();

            startCounter++;

            // Setup a timer to handle routine updates
            mainLoopTimer          = new System.Timers.Timer(2500);
            mainLoopTimer.Elapsed += new ElapsedEventHandler(onUpdate);
            mainLoopTimer.Start();

            // Set the identifier tag
            string tag = Base58Check.Base58CheckEncoding.EncodePlain(IxianHandler.getWalletStorage().getPrimaryAddress());

            DependencyService.Get <IPushService>().setTag(tag);
        }