Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/laget-se/laget.azure.enqueuer

Takes the hassle out of enqueueing simple string messages on an Azure Queue...
https://github.com/laget-se/laget.azure.enqueuer

azure nuget queue

Last synced: about 1 month ago
JSON representation

Takes the hassle out of enqueueing simple string messages on an Azure Queue...

Awesome Lists containing this project

README

        

# laget.Azure.Enqueuer
Takes the hassle out of enqueueing simple string messages on an Azure Queue.

Great when you only need to push a simle string, or a dynamic object on a queue, and then forget about it.

![Nuget](https://img.shields.io/nuget/v/laget.Azure.Enqueuer)
![Nuget](https://img.shields.io/nuget/dt/laget.Azure.Enqueuer)

## Usage
```c#
var enqueuer = new laget.Azure.Enqueuer(connectionString);
```

```c#
var enqueuer = new laget.Azure.Enqueuer(connectionString, queueName);
```

```c#
var enqueuer = new laget.Azure.Enqueuer(connectionString, new QueueClientOptions());
```

#### Using-block
```c#
using(var enqueuer = new laget.Azure.Enqueuer(connectionString)) {
}
```

```c#
using(var enqueuer = new laget.Azure.Enqueuer(connectionString, queueName)) {
}
```

```c#
using(var enqueuer = new laget.Azure.Enqueuer(connectionString, new QueueClientOptions())) {
}
```

### Methods
```c#
void Enqueue(dynamic payload);
Task EnqueueAsync(dynamic payload);
void Enqueue(string payload);
Task EnqueueAsync(string payload);
```