Beispiel #1
0
 /// <summary>
 /// Adds an extraction rule that extracts the partition key from a given header represented by <paramref name="headerKey"/>.
 /// </summary>
 /// <param name="headerKey">The header key.</param>
 /// <param name="extractor">The extractor function to extract the header value.</param>
 /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
 public void ExtractPartitionKeyFromHeader(string headerKey, Func <string, PartitionKey> extractor) =>
 PartitionKeyExtractor.ExtractPartitionKeyFromHeader(headerKey, extractor);
Beispiel #2
0
 /// <summary>
 /// Adds an extraction rule that extracts the partition key from a given header represented by <paramref name="headerKey"/>.
 /// </summary>
 /// <param name="headerKey">The header key.</param>
 /// <param name="extractor">The extractor function to extract the header value.</param>
 /// <param name="extractorArgument">The argument passed as state to the <paramref name="extractor"/></param>
 /// <typeparam name="TArg">The argument type.</typeparam>
 /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
 public void ExtractPartitionKeyFromHeader <TArg>(string headerKey, Func <string, TArg, PartitionKey> extractor, TArg extractorArgument) =>
 PartitionKeyExtractor.ExtractPartitionKeyFromHeader(headerKey, extractor, extractorArgument);
Beispiel #3
0
 /// <summary>
 /// Adds an extraction rule that extracts the partition key from a given header represented by <paramref name="headerKey"/>.
 /// </summary>
 /// <param name="headerKey">The header key.</param>
 /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
 public void ExtractPartitionKeyFromHeader(string headerKey) =>
 PartitionKeyExtractor.ExtractPartitionKeyFromHeader(headerKey);