https://github.com/godeltech/godeltech.messaging.azureservicebus
https://github.com/godeltech/godeltech.messaging.azureservicebus
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/godeltech/godeltech.messaging.azureservicebus
- Owner: GodelTech
- License: mit
- Created: 2021-03-23T18:23:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T11:53:03.000Z (5 months ago)
- Last Synced: 2025-04-15T10:56:54.250Z (about 1 month ago)
- Language: C#
- Size: 61.5 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GodelTech.Messaging.AzureServiceBus
Allows to add Azure Service Bus
```c#
services.AddAzureServiceBusSender(
Configuration["AzureServiceBusOptions:ConnectionString"],
options => Configuration.Bind("AzureServiceBusOptions", options)
)
```with `appsettings.json`
```c#
{
"AzureServiceBusOptions": {
"ConnectionString": "Endpoint=sb://{name}.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=YourAccessKey",
"Queues": {
"exampleQueue": "example.servicebus.queue"
}
}
}
```Allows to add Azure Service Bus with Managed Identity
```c#
services.AddAzureServiceBusSender(
Configuration["AzureServiceBusOptions:FullyQualifiedNamespace"],
new ManagedIdentityCredential(),
options => Configuration.Bind("AzureServiceBusOptions", options)
)
```with `appsettings.json`
```c#
{
"AzureServiceBusOptions": {
"FullyQualifiedNamespace": "{name}.servicebus.windows.net",
"Queues": {
"exampleQueue": "example.servicebus.queue"
}
}
}
```