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(); }
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); } } }
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); } } }
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 (); }