Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
updated the links and code gist
Browse files Browse the repository at this point in the history
  • Loading branch information
imranmomin committed Apr 26, 2017
1 parent 1edc196 commit bbaa535
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Hangfire.AzureDocumentDB

[![Official Site](https://img.shields.io/badge/site-hangfire.io-blue.svg)](http://hangfire.io)
[![Latest version](https://img.shields.io/badge/nuget-v1.0.0-blue.svg)](https://www.nuget.org/packages/Hangfire.AzureDocumentDB)
[![Build status](https://ci.appveyor.com/api/projects/status/8bail001djs64inu?svg=true)](https://ci.appveyor.com/project/imranmomin/hangfire-azuredocumentdb)
[![Latest version](https://img.shields.io/nuget/vpre/Hangfire.AzureDocumentDB.svg)](https://www.nuget.org/packages/Hangfire.AzureDocumentDB)
[![Build status](https://ci.appveyor.com/api/projects/status/uvxh94dhxcokga47?svg=true)](https://ci.appveyor.com/project/imranmomin/hangfire-azuredocumentdb)

This repo will add a [Microsoft Azure DocumentDB](https://azure.microsoft.com/en-ca/services/documentdb) storage support to [Hangfire](http://hangfire.io) - fire-and-forget, delayed and recurring tasks runner for .NET. Scalable and reliable background job runner. Supports multiple servers, CPU and I/O intensive, long-running and short-running jobs.

Expand All @@ -21,24 +21,29 @@ Usage

-------------

Use one the following ways to initialize `AzureDocumentDBStorage`
Use one the following ways to initialize `AzureDocumentDbStorage`

```csharp
GlobalConfiguration.Configuration.UseAzureDocumentDBStorage("<url>", "<authSecret>");
GlobalConfiguration.Configuration.UseAzureDocumentDbStorage("<url>", "<authSecret>", "<databaseName>");

AzureDocumentDB.AzureDocumentDBStorage azureDocumentDBStorage = new AzureDocumentDB.AzureDocumentDBStorage("<url>", "<authSecret>", "<databaseName>");
Hangfire.AzureDocumentDB.AzureDocumentDbStorage azureDocumentDBStorage = new Hangfire.AzureDocumentDB.AzureDocumentDbStorage("<url>", "<authSecret>", "<databaseName>");
GlobalConfiguration.Configuration.UseStorage(azureDocumentDBStorage);
```

```csharp
// customize any options
AzureDocumentDB.AzureDocumentDBStorageOptions azureDocumentDBStorageOptions = new AzureDocumentDB.AzureDocumentDBStorageOptions
Hangfire.AzureDocumentDB.AzureDocumentDbStorageOptions azureDocumentDBStorageOptions = new Hangfire.AzureDocumentDB.AzureDocumentDbStorageOptions
{
Queues = new[] { "default", "critical" },
RequestTimeout = System.TimeSpan.FromSeconds(30),
ExpirationCheckInterval = TimeSpan.FromMinutes(15);
CountersAggregateInterval = TimeSpan.FromMinutes(1);
QueuePollInterval = TimeSpan.FromSeconds(2);
RequestTimeout = TimeSpan.FromSeconds(30),
ExpirationCheckInterval = TimeSpan.FromMinutes(15),
CountersAggregateInterval = TimeSpan.FromMinutes(1),
QueuePollInterval = TimeSpan.FromSeconds(2)
};
AzureDocumentDB.AzureDocumentDBStorage azureDocumentDBStorage = new AzureDocumentDB.AzureDocumentDBStorage("<url>", "<authSecret>", "<databaseName>", azureDocumentDBStorageOptions);

GlobalConfiguration.Configuration.UseAzureDocumentDbStorage("<url>", "<authSecret>", "<databaseName>", azureDocumentDBStorageOptions);

Hangfire.AzureDocumentDB.AzureDocumentDbStorage azureDocumentDBStorage = new Hangfire.AzureDocumentDB.AzureDocumentDbStorage("<url>", "<authSecret>", "<databaseName>", azureDocumentDBStorageOptions);
GlobalConfiguration.Configuration.UseStorage(azureDocumentDBStorage);
```

Expand Down

0 comments on commit bbaa535

Please sign in to comment.