/// <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);
/// <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);
/// <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);