Skip to content

Commit

Permalink
Marked old test harness configuration as obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
phatboyg committed May 23, 2023
1 parent 5a9f3d2 commit 1d6fc8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ static void RegisterSagaTestHarnesses(IServiceCollection services)
/// <summary>
/// Add the In-Memory test harness to the container, and configure it using the callback specified.
/// </summary>
[Obsolete(
"This method is deprecated, use AddMassTransitTestHarness instead. For more information, see https://masstransit.io/documentation/concepts/testing")]
public static IServiceCollection AddMassTransitInMemoryTestHarness(this IServiceCollection services,
Action<IBusRegistrationConfigurator>? configure = null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public void ConfigureJobServiceEndpoints(IRegistrationContext context = null)
void UseInMemoryOutbox(IReceiveEndpointConfigurator configurator)
{
if (context == null)
#pragma warning disable CS0618
configurator.UseInMemoryOutbox();
#pragma warning restore CS0618
else
configurator.UseInMemoryOutbox(context);
}
Expand Down

0 comments on commit 1d6fc8f

Please sign in to comment.