diff --git a/README.md b/README.md index 56839eb..ba06cef 100644 --- a/README.md +++ b/README.md @@ -34,18 +34,18 @@ builder.Services.AddExtendedMediatR(cfg => }); ``` -The library provides an additional `Publish` extension to `IMediator`/`IPublisher` with a strategy parameter. You may choose a strategy on the fly. +The library provides an additional `Publish` extension that accepts a strategy as a parameter. You may choose a strategy on the fly. ```csharp -public class Foo(IPublisher publisher) +public class Foo(IMediator mediator) { public async Task Run(CancellationToken cancellationToken) { // The built-in behavior - await publisher.Publish(new Ping(), cancellationToken); + await mediator.Publish(new Ping(), cancellationToken); // Publish with specific strategy - await publisher.Publish(new Ping(), PublishStrategy.WhenAll, cancellationToken); + await mediator.Publish(new Ping(), PublishStrategy.WhenAll, cancellationToken); } } ``` diff --git a/readme-nuget.md b/readme-nuget.md index f699516..3665856 100644 --- a/readme-nuget.md +++ b/readme-nuget.md @@ -23,18 +23,18 @@ builder.Services.AddExtendedMediatR(cfg => }); ``` -The library provides an additional `Publish` extension to `IMediator`/`IPublisher` with a strategy parameter. You may choose a strategy on the fly. +The library provides an additional `Publish` extension that accepts a strategy as a parameter. You may choose a strategy on the fly. ```csharp -public class Foo(IPublisher publisher) +public class Foo(IMediator mediator) { public async Task Run(CancellationToken cancellationToken) { // The built-in behavior - await publisher.Publish(new Ping(), cancellationToken); + await mediator.Publish(new Ping(), cancellationToken); // Publish with specific strategy - await publisher.Publish(new Ping(), PublishStrategy.WhenAll, cancellationToken); + await mediator.Publish(new Ping(), PublishStrategy.WhenAll, cancellationToken); } } ```