Skip to content

Commit

Permalink
Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiseni committed Oct 18, 2024
1 parent 5585293 commit 22ec96a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A simple library that extends MediatR with various publishing strategies.

## Usage

Set the MediatorImplementationType to `ExtendedMediator` in the configuration.
Set the `MediatorImplementationType` to `ExtendedMediator` in the configuration.

```csharp
services.AddMediatR(x =>
Expand All @@ -24,7 +24,7 @@ services.AddMediatR(x =>
});
```

Alternatively, use the `AddExtendedMediatR` extension. This extension will always set the MediatorImplementationType to ExtendedMediator.
Alternatively, use the `AddExtendedMediatR` extension. This extension will set the correct type for you.
```csharp
builder.Services.AddExtendedMediatR(cfg =>
{
Expand All @@ -33,7 +33,7 @@ builder.Services.AddExtendedMediatR(cfg =>
});
```

It provides an additional `Publish` extension to `IMediator`/`IPublisher` that accepts a strategy parameter. You may choose a strategy on the fly.
The library provides an additional `Publish` extension to `IMediator`/`IPublisher` with a strategy parameter. You may choose a strategy on the fly.

```csharp
public class Foo(IPublisher publisher)
Expand Down
6 changes: 3 additions & 3 deletions readme-nuget.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ A simple library that extends MediatR with various publishing strategies.

## Usage

Set the MediatorImplementationType to `ExtendedMediator` in the configuration.
Set the `MediatorImplementationType` to `ExtendedMediator` in the configuration.

```csharp
services.AddMediatR(x =>
Expand All @@ -14,7 +14,7 @@ services.AddMediatR(x =>
});
```

Alternatively, use the `AddExtendedMediatR` extension. This extension will always set the MediatorImplementationType to ExtendedMediator.
Alternatively, use the `AddExtendedMediatR` extension. This extension will set the correct type for you.
```csharp
builder.Services.AddExtendedMediatR(cfg =>
{
Expand All @@ -23,7 +23,7 @@ builder.Services.AddExtendedMediatR(cfg =>
});
```

It provides an additional `Publish` extension to `IMediator`/`IPublisher` that accepts a strategy parameter. You may choose a strategy on the fly.
The library provides an additional `Publish` extension to `IMediator`/`IPublisher` with a strategy parameter. You may choose a strategy on the fly.

```csharp
public class Foo(IPublisher publisher)
Expand Down

0 comments on commit 22ec96a

Please sign in to comment.