@@ -20,7 +20,7 @@ public static class CommandModelBuilderExtensions
2020 /// Registers the <see cref="ICommandContextAccessor"/> with the DI container.
2121 /// </summary>
2222 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
23- public static ICommandModelBuilder WithCommandContext ( this ICommandModelBuilder builder )
23+ public static ICommandModelBuilder AddCommandContext ( this ICommandModelBuilder builder )
2424 {
2525 Ensure . Arg . NotNull ( builder ) ;
2626
@@ -36,7 +36,7 @@ public static ICommandModelBuilder WithCommandContext(this ICommandModelBuilder
3636 /// <param name="lifetime">The lifetime of the handler.</param>
3737 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
3838 /// <exception cref="ArgumentNullException">Argument <paramref name="handlerType"/> is <c>null</c>.</exception>
39- public static ICommandModelBuilder WithHandler (
39+ public static ICommandModelBuilder AddHandler (
4040 this ICommandModelBuilder builder ,
4141 Type handlerType ,
4242 ServiceLifetime lifetime = ServiceLifetime . Transient )
@@ -58,7 +58,7 @@ public static ICommandModelBuilder WithHandler(
5858 /// <param name="defaultLifetime">The default handler lifetime.</param>
5959 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
6060 /// <exception cref="ArgumentNullException">Argument <paramref name="configure"/> is <c>null</c>.</exception>
61- public static ICommandModelBuilder WithHandlersFrom (
61+ public static ICommandModelBuilder AddHandlersFrom (
6262 this ICommandModelBuilder builder ,
6363 Action < IServiceDescriptorReflectionBuilder > configure ,
6464 ServiceLifetime defaultLifetime = ServiceLifetime . Transient )
@@ -85,7 +85,7 @@ public static ICommandModelBuilder WithHandlersFrom(
8585 /// <param name="lifetime">The lifetime of the handler.</param>
8686 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
8787 /// <exception cref="ArgumentNullException">Argument <paramref name="handlerType"/> is <c>null</c>.</exception>
88- public static ICommandModelBuilder WithPreHandler (
88+ public static ICommandModelBuilder AddPreHandler (
8989 this ICommandModelBuilder builder ,
9090 Type handlerType ,
9191 ServiceLifetime lifetime = ServiceLifetime . Transient )
@@ -107,7 +107,7 @@ public static ICommandModelBuilder WithPreHandler(
107107 /// <param name="defaultLifetime">The default handler lifetime.</param>
108108 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
109109 /// <exception cref="ArgumentNullException">Argument <paramref name="configure"/> is <c>null</c>.</exception>
110- public static ICommandModelBuilder WithPreHandlersFrom (
110+ public static ICommandModelBuilder AddPreHandlersFrom (
111111 this ICommandModelBuilder builder ,
112112 Action < IServiceDescriptorReflectionBuilder > configure ,
113113 ServiceLifetime defaultLifetime = ServiceLifetime . Transient )
@@ -134,7 +134,7 @@ public static ICommandModelBuilder WithPreHandlersFrom(
134134 /// <param name="lifetime">The lifetime of the handler.</param>
135135 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
136136 /// <exception cref="ArgumentNullException">Argument <paramref name="handlerType"/> is <c>null</c>.</exception>
137- public static ICommandModelBuilder WithPostHandler (
137+ public static ICommandModelBuilder AddPostHandler (
138138 this ICommandModelBuilder builder ,
139139 Type handlerType ,
140140 ServiceLifetime lifetime = ServiceLifetime . Transient )
@@ -156,7 +156,7 @@ public static ICommandModelBuilder WithPostHandler(
156156 /// <param name="defaultLifetime">The default handler lifetime.</param>
157157 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
158158 /// <exception cref="ArgumentNullException">Argument <paramref name="configure"/> is <c>null</c>.</exception>
159- public static ICommandModelBuilder WithPostHandlersFrom (
159+ public static ICommandModelBuilder AddPostHandlersFrom (
160160 this ICommandModelBuilder builder ,
161161 Action < IServiceDescriptorReflectionBuilder > configure ,
162162 ServiceLifetime defaultLifetime = ServiceLifetime . Transient )
@@ -183,7 +183,7 @@ public static ICommandModelBuilder WithPostHandlersFrom(
183183 /// <param name="lifetime">The lifetime of the handler.</param>
184184 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
185185 /// <exception cref="ArgumentNullException">Argument <paramref name="handlerType"/> is <c>null</c>.</exception>
186- public static ICommandModelBuilder WithBehavior (
186+ public static ICommandModelBuilder AddBehavior (
187187 this ICommandModelBuilder builder ,
188188 Type handlerType ,
189189 ServiceLifetime lifetime = ServiceLifetime . Transient )
@@ -205,7 +205,7 @@ public static ICommandModelBuilder WithBehavior(
205205 /// <param name="defaultLifetime">The default handler lifetime.</param>
206206 /// <returns>The <see cref="ICommandModelBuilder"/>.</returns>
207207 /// <exception cref="ArgumentNullException">Argument <paramref name="configure"/> is <c>null</c>.</exception>
208- public static ICommandModelBuilder WithBehaviorsFrom (
208+ public static ICommandModelBuilder AddBehaviorsFrom (
209209 this ICommandModelBuilder builder ,
210210 Action < IServiceDescriptorReflectionBuilder > configure ,
211211 ServiceLifetime defaultLifetime = ServiceLifetime . Transient )
0 commit comments