@@ -12,55 +12,10 @@ public partial class TransactionInformationConfiguration
1212 /// <summary>
1313 /// Adds an instance of <see cref="IPartitionKeyFromHeadersExtractor"/> to the list of header extractors.
1414 /// </summary>
15+ /// <param name="extractor">The custom extractor.</param>
1516 /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
1617 public void ExtractPartitionKeyFromHeaders ( IPartitionKeyFromHeadersExtractor extractor ) => PartitionKeyExtractor . ExtractPartitionKeyFromHeaders ( extractor ) ;
1718
18- /// <summary>
19- /// Adds an instance of <see cref="IPartitionKeyFromMessageExtractor"/> to the list of header extractors.
20- /// </summary>
21- /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
22- public void ExtractPartitionKeyFromMessages ( IPartitionKeyFromMessageExtractor extractor ) => PartitionKeyExtractor . ExtractPartitionKeyFromMessages ( extractor ) ;
23-
24- /// <summary>
25- /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
26- /// </summary>
27- /// <param name="extractor">The extraction function.</param>
28- /// <typeparam name="TMessage">The message type to match against.</typeparam>
29- /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
30- public void ExtractPartitionKeyFromMessage < TMessage > ( Func < TMessage , PartitionKey > extractor ) =>
31- PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor ) ;
32-
33- /// <summary>
34- /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
35- /// </summary>
36- /// <param name="extractor">The extraction function.</param>
37- /// <param name="extractorArgument">The argument passed as state to the <paramref name="extractor"/></param>
38- /// <typeparam name="TMessage">The message type to match against.</typeparam>
39- /// <typeparam name="TArg">The argument passed as state to the <paramref name="extractor"/></typeparam>
40- /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
41- public void ExtractPartitionKeyFromMessage < TMessage , TArg > ( Func < TMessage , TArg , PartitionKey > extractor , TArg extractorArgument ) =>
42- PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor , extractorArgument ) ;
43-
44- /// <summary>
45- /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
46- /// </summary>
47- /// <param name="extractor">The extraction function.</param>
48- /// <typeparam name="TMessage">The message type to match against.</typeparam>
49- /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
50- public void ExtractPartitionKeyFromMessage < TMessage > ( Func < TMessage , IReadOnlyDictionary < string , string > , PartitionKey > extractor ) =>
51- PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor ) ;
52-
53- /// <summary>
54- /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
55- /// </summary>
56- /// <param name="extractor">The extraction function.</param>
57- /// <param name="extractorArgument">The argument passed as state to the <paramref name="extractor"/></param>
58- /// <typeparam name="TMessage">The message type to match against.</typeparam>
59- /// <typeparam name="TArg">The argument passed as state to the <paramref name="extractor"/></typeparam>
60- /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
61- public void ExtractPartitionKeyFromMessage < TMessage , TArg > ( Func < TMessage , IReadOnlyDictionary < string , string > , TArg , PartitionKey > extractor , TArg extractorArgument ) =>
62- PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor , extractorArgument ) ;
63-
6419 /// <summary>
6520 /// Adds an extraction rule that extracts the partition key from a given header represented by <paramref name="headerKey"/>.
6621 /// </summary>
@@ -127,6 +82,53 @@ public void ExtractPartitionKeyFromHeader(string headerKey, Func<string, Partiti
12782 public void ExtractPartitionKeyFromHeader < TArg > ( string headerKey , Func < string , TArg , PartitionKey > extractor , TArg extractorArgument ) =>
12883 PartitionKeyExtractor . ExtractPartitionKeyFromHeader ( headerKey , extractor , extractorArgument ) ;
12984
85+ /// <summary>
86+ /// Adds an instance of <see cref="IPartitionKeyFromMessageExtractor"/> to the list of header extractors.
87+ /// </summary>
88+ /// <param name="extractor">The custom extractor.</param>
89+ /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
90+ public void ExtractPartitionKeyFromMessages ( IPartitionKeyFromMessageExtractor extractor ) => PartitionKeyExtractor . ExtractPartitionKeyFromMessages ( extractor ) ;
91+
92+ /// <summary>
93+ /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
94+ /// </summary>
95+ /// <param name="extractor">The extraction function.</param>
96+ /// <typeparam name="TMessage">The message type to match against.</typeparam>
97+ /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
98+ public void ExtractPartitionKeyFromMessage < TMessage > ( Func < TMessage , PartitionKey > extractor ) =>
99+ PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor ) ;
100+
101+ /// <summary>
102+ /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
103+ /// </summary>
104+ /// <param name="extractor">The extraction function.</param>
105+ /// <param name="extractorArgument">The argument passed as state to the <paramref name="extractor"/></param>
106+ /// <typeparam name="TMessage">The message type to match against.</typeparam>
107+ /// <typeparam name="TArg">The argument passed as state to the <paramref name="extractor"/></typeparam>
108+ /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
109+ public void ExtractPartitionKeyFromMessage < TMessage , TArg > ( Func < TMessage , TArg , PartitionKey > extractor , TArg extractorArgument ) =>
110+ PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor , extractorArgument ) ;
111+
112+ /// <summary>
113+ /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
114+ /// </summary>
115+ /// <param name="extractor">The extraction function.</param>
116+ /// <typeparam name="TMessage">The message type to match against.</typeparam>
117+ /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
118+ public void ExtractPartitionKeyFromMessage < TMessage > ( Func < TMessage , IReadOnlyDictionary < string , string > , PartitionKey > extractor ) =>
119+ PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor ) ;
120+
121+ /// <summary>
122+ /// Adds an extraction rule that extracts the partition key from a given message type <typeparamref name="TMessage"/>
123+ /// </summary>
124+ /// <param name="extractor">The extraction function.</param>
125+ /// <param name="extractorArgument">The argument passed as state to the <paramref name="extractor"/></param>
126+ /// <typeparam name="TMessage">The message type to match against.</typeparam>
127+ /// <typeparam name="TArg">The argument passed as state to the <paramref name="extractor"/></typeparam>
128+ /// <remarks>Explicitly added extractors and extraction rules are executed before extractors registered on the container.</remarks>
129+ public void ExtractPartitionKeyFromMessage < TMessage , TArg > ( Func < TMessage , IReadOnlyDictionary < string , string > , TArg , PartitionKey > extractor , TArg extractorArgument ) =>
130+ PartitionKeyExtractor . ExtractPartitionKeyFromMessage ( extractor , extractorArgument ) ;
131+
130132 internal PartitionKeyExtractor PartitionKeyExtractor { get ; } = new PartitionKeyExtractor ( ) ;
131133 }
132134}
0 commit comments