public void Initialize() { logger.Info("Guest init"); pofDispatcher.RegisterHandler <X2XServiceInvocation>(HandleX2XServiceInvocation); pofDispatcher.RegisterHandler <X2XInvocationResult>(HandleX2XInvocationResult); pofDispatcher.RegisterShutdownHandler(HandleDispatcherShutdown); pofDispatcher.Start(); }
public async Task StartAndAwaitShutdown() { pofDispatcher.Start(); await shutdownLatch.WaitAsync(); }