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