public function correlationDataFor(MessageInterface $message)
 {
     if (0 === count($this->headerNames)) {
         return array();
     }
     $data = array();
     $metaData = $message->getMetaData();
     foreach ($this->headerNames as $headerName) {
         if ($metaData->has($headerName)) {
             $data[$headerName] = $metaData->get($headerName);
         }
     }
     return $data;
 }
 public function resolveParameterValue(MessageInterface $message)
 {
     return $message->getMetaData();
 }
Exemplo n.º 3
0
 /**
  * 
  * @param \Governor\Framework\Domain\MessageInterface $message
  * @return SerializedObjectInterface
  */
 public function serializeMetaData(MessageInterface $message)
 {
     return $this->serializer->serialize($message->getMetaData());
 }