Ejemplo n.º 1
0
        private MottattMelding ParseMessage(IBasicProperties properties, ReadOnlyMemory <byte> body)
        {
            var metadata = ReceivedMessageParser.Parse(this.accountId, properties);

            return(new MottattMelding(
                       HasPayload(properties, body),
                       metadata,
                       GetDataProvider(properties, body),
                       this.decrypter,
                       this.fileWriter));
        }
        private MottattMelding ParseMessage(IBasicProperties properties, byte[] body)
        {
            var metadata = ReceivedMessageParser.Parse(_accountId, properties);

            return(new MottattMelding(HasPayload(properties, body), metadata, GetDataProvider(properties, body), _decrypter, _fileWriter));
        }