Ejemplo n.º 1
0
        public void ExtractContainerInformationFromHeaders(IContainerInformationFromHeadersExtractor extractor)
        {
            Guard.AgainstNull(nameof(extractor), extractor);

            extractContainerInformationFromHeaders.Add(extractor);
        }
Ejemplo n.º 2
0
 public TransactionInformationBeforeThePhysicalOutboxBehavior(IPartitionKeyFromHeadersExtractor partitionKeyExtractor, IContainerInformationFromHeadersExtractor containerInformationExtractor)
 {
     this.partitionKeyExtractor         = partitionKeyExtractor;
     this.containerInformationExtractor = containerInformationExtractor;
 }
 /// <summary>
 /// Adds an instance of <see cref="IContainerInformationFromHeadersExtractor"/> to the list of header extractors.
 /// </summary>
 /// <param name="extractor">The custom extractor.</param>
 /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
 public void ExtractContainerInformationFromHeaders(IContainerInformationFromHeadersExtractor extractor) =>
 ContainerInformationExtractor.ExtractContainerInformationFromHeaders(extractor);