MCPcopy Create free account
hub / github.com/MITK/MITK / UnRegisterMicroservice

Method UnRegisterMicroservice

Modules/Core/src/Rendering/mitkAnnotation.cpp:349–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void mitk::Annotation::UnRegisterMicroservice()
350{
351 if (m_ServiceRegistration)
352 {
353 try
354 {
355 if (m_ServiceRegistration.IsAvailable())
356 m_ServiceRegistration.Unregister();
357 }
358 catch (...)
359 {
360 // Best-effort cleanup. Reached e.g. when the underlying service was
361 // already torn down at process exit (Unregister throws
362 // std::logic_error("Service is unregistered")). ~Annotation is
363 // implicitly noexcept, so no exception may escape.
364 }
365 }
366 m_ServiceRegistration = 0;
367}
368
369void mitk::Annotation::AnnotationModified()
370{

Callers 1

~AnnotationMethod · 0.95

Calls 2

IsAvailableMethod · 0.80
UnregisterMethod · 0.45

Tested by

no test coverage detected