Esempio n. 1
0
        /// <inheritdoc/>
        public void Apply(IBusBuilder builder)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            if (this.encryptionKey != null)
            {
                builder.SetMessageSerializer(this.GetMessageSerializer);
            }

            if (this.keyResolver != null)
            {
                builder.AddMessageDeserializer(EncryptedMessageSerializer.EncryptedContentType, this.GetMessageDeserializer);
            }
        }
 public void Apply(IBusBuilder builder)
 {
     builder.AddMessageDeserializer(_contentType, _deserializerFactory);
 }
        public void Apply(IBusBuilder builder)
        {
            builder.SetMessageSerializer(CreateSerializer);

            builder.AddMessageDeserializer(EncryptedMessageSerializer.EncryptedContentType, CreateDeserializer);
        }
 public void Apply(IBusBuilder builder)
 {
     builder.AddMessageDeserializer(_contentType, _deserializerFactory);
 }
Esempio n. 5
0
        public void Apply(IBusBuilder builder)
        {
            builder.SetMessageSerializer(CreateSerializer);

            builder.AddMessageDeserializer(EncryptedMessageSerializer.EncryptedContentType, CreateDeserializer);
        }