private EventMessage Deserialize( EventRecord record) { return(new EventMessage( ToGuid(record.Id), _eventSerializer.Deserialize(XElement.Parse(record.Content)))); }
private IEvent Deserialize(BrokeredMessage message) => _eventSerializer.Deserialize(message.GetBody <XElement>());
private IEvent Deserialize(string message) => _eventSerializer.Deserialize(XElement.Parse(message));