Skip to content

alexlvovich/GetInfra.Standard.Queue

Repository files navigation

Infra.Standard.Queue

Build Status Nuget

General

Infra.Standard.Queue is .NET Standard library designed to add Queue and Publish/Subscribe functionality to .NET project.

Implementation

  • RabbitMQ
  • Azure Service Bus

Running with Azure Service Bus

Tell you DI what implementation you are going to use

services.AddSingleton<IQueueConsumer, AzureSBTopicConsumer>();

Or

services.AddSingleton<IQueuePublisher, AzureSBTopicPublisher>();

Set serialization settings

services.AddSingleton<IJsonSerializer, DefaultJsonSerializer>();

Create following config in appsettings.json. note "name" to be used for the constuctor

 "AzureServiceBus": {
    "name": {
      "Endpoint": "amqps://<your url>",
      "EntityPath": "<Topic>",
      "SasKeyName": "<Policy name>",
      "SasKey": "<SAS Key>",
      "SubscriptionName": ""
    }
  }

About

working with queues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages