public EventData Translate(With.Message.IDeregister message) { Deregistered value = _mapper.Map(message); string text = _serializer.Serialize(value); byte[] data = _encoder.Encode(text); return(new EventData(Guid.NewGuid(), typeof(Deregistered).FullName, true, data, new byte[0])); }
public string Serialize(Deregistered message) { return(JsonSerializer.SerializeToString <Deregistered>(message)); }
public string Serialize(Deregistered message) { return JsonSerializer.SerializeToString<Deregistered>(message); }