Exemplo n.º 1
0
        private void ResetInternalState()
        {
            if (service == null)
            {
                return;
            }

            Debug("Resetting internal state - service is no longer available or not needed");
            service              = null;
            listening            = false;
            cleanup_and_shutdown = false;
            ResetState();
        }
Exemplo n.º 2
0
        private void ResolveIndexerService()
        {
            int attempts = 0;

            while (attempts++ < 4)
            {
                try {
                    Debug("Resolving {0} (attempt {1})", service_interface, attempts);
                    service = Bus.Session.GetObject <ICollectionIndexerService> (indexer_bus_name, service_path);
                    service.Hello();
                    return;
                } catch {
                    service = null;
                    System.Threading.Thread.Sleep(2000);
                }
            }
        }
Exemplo n.º 3
0
        private void ResolveIndexerService()
        {
            int attempts = 0;

            while (attempts++ < 4) {
                try {
                    Debug ("Resolving {0} (attempt {1})", service_interface, attempts);
                    service = Bus.Session.GetObject<ICollectionIndexerService> (indexer_bus_name, service_path);
                    service.Hello ();
                    return;
                } catch {
                    service = null;
                    System.Threading.Thread.Sleep (2000);
                }
            }
        }
Exemplo n.º 4
0
        private void ResetInternalState()
        {
            if (service == null) {
                return;
            }

            Debug ("Resetting internal state - service is no longer available or not needed");
            service = null;
            listening = false;
            cleanup_and_shutdown = false;
            ResetState ();
        }