Beispiel #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 static Guid GetDokumentlagerId(IBasicProperties properties)
 {
     try
     {
         return(ReceivedMessageParser.RequireGuidFromHeader(properties.Headers, DokumentlagerHeaderName));
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         throw;
     }
 }
        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));
        }
 private static bool IsDataInDokumentlager(IBasicProperties properties)
 {
     return(ReceivedMessageParser.GetGuidFromHeader(properties.Headers, DokumentlagerHeaderName) != null);
 }