Skip to content

Commit

Permalink
Update to 0.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ifgris committed Aug 2, 2024
1 parent 3b6a920 commit 502356e
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ See [Wiki](https://github.com/cgcel/NanoRabbit/wiki/Installation) for more detai
| NanoRabbit | RabbitMQ.Client | .NET |
| :-----------: | :-------------: | :-----------: |
| 0.0.1 ~ 0.1.8 | obsolete | obsolete |
| 0.1.9 | 6.5.0-6.8.1 | 6.0, 7.0, 8.0 |
| 0.1.9, 0.2.0 | 6.5.0-6.8.1 | 6.0, 7.0, 8.0 |

## Document

Expand All @@ -57,6 +57,13 @@ Register a RabbitMQ Producer by calling `RabbitHelper(RabbitConfiguration rabbit
using NanoRabbit;
using NanoRabbit.Connection;

var loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole();
});

var logger = loggerFactory.CreateLogger("RabbitHelper");

var rabbitHelper = new RabbitHelper(rabbitConfig: new RabbitConfiguration
{
HostName = "localhost",
Expand All @@ -70,7 +77,7 @@ var rabbitHelper = new RabbitHelper(rabbitConfig: new RabbitConfiguration
RoutingKey = "foo.key"
}
}
});
}, logger);
```

#### RabbitConsumer
Expand All @@ -93,7 +100,7 @@ var rabbitHelper = new RabbitHelper(rabbitConfig: new RabbitConfiguration
QueueName = "foo-queue"
}
}
});
}, logger);
```

### Simple Publish
Expand Down Expand Up @@ -194,10 +201,10 @@ More *Dependency Injection* Usage at [Wiki](https://github.com/cgcel/NanoRabbit/

## Todo

- [x] Basic Consume & Publish support
- [x] DependencyInjection support
- [x] Logging support
- [x] .NET 7, .NET 8 support
- [x] Basic Consume & Publish
- [x] DependencyInjection
- [x] Logging
- [x] Support .NET latest frameworks
- [ ] Forward messages
- [ ] ASP.NET support
- [ ] TLS support
Expand Down

0 comments on commit 502356e

Please sign in to comment.