LiteX.HealthChecks.AzureStorage.Queue 1.0.1

AzureQueueStorage health checks package used to check the status of a Azure Queue storage service in ASP.NET Core applications.
    
     Based on new Microsoft Health Checks feature included in ASP.NET Core 2.2.
     LiteXHealthChecks is very small yet powerful and high-performance library used to check the status of a component in the application, such as a backend service, database or some internal state.

Install-Package LiteX.HealthChecks.AzureStorage.Queue -Version 1.0.1
dotnet add package LiteX.HealthChecks.AzureStorage.Queue --version 1.0.1
<PackageReference Include="LiteX.HealthChecks.AzureStorage.Queue" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LiteX.HealthChecks.AzureStorage.Queue --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LiteX HealthChecks Azure Queue storage

AzureQueueStorage health checks package used to check the status of a Azure Queue storage service in ASP.NET Core applications.

LiteXHealthChecks is very small yet powerful and high-performance library used to check the status of a component in the application, such as a backend service, database or some internal state.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.HealthChecks.AzureStorage.Queue
AppSettings
{  
  "Data": {
    "ConnectionStrings": {
      "AzureQueueStorage": "--REPLACE WITH YOUR CONNECTION STRING--"
    }
  }
}
Configure Startup Class
public class Startup
{
    public IConfiguration Configuration { get; }

    public Startup(IConfiguration configuration)
    {
        Configuration = configuration;
    }

    public void ConfigureServices(IServiceCollection services)
    {
        // 1: Use default configuration
        services.AddHealthChecks()
            .AddAzureQueueStorage(Configuration["Data:ConnectionStrings:AzureQueueStorage"]);

        // OR
        // 2: With all optional configuration
        services.AddHealthChecks()
            .AddAzureQueueStorage(
                connectionString: Configuration["Data:ConnectionStrings:AzureQueueStorage"],
                name: "azure-queue-storage",
                failureStatus: HealthStatus.Degraded,
                tags: new string[] { "azure", "storage", "queue", "azure-queue-storage" });
    }

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        app.UseHealthChecks("/health");
    }
}

Sample Usage Example

Sample for other services.

For more helpful information about LiteX HealthChecks, Please click here.

LiteX HealthChecks Azure Queue storage

AzureQueueStorage health checks package used to check the status of a Azure Queue storage service in ASP.NET Core applications.

LiteXHealthChecks is very small yet powerful and high-performance library used to check the status of a component in the application, such as a backend service, database or some internal state.

Basic Usage

Install the package

Install via Nuget.

PM> Install-Package LiteX.HealthChecks.AzureStorage.Queue
AppSettings
{  
  "Data": {
    "ConnectionStrings": {
      "AzureQueueStorage": "--REPLACE WITH YOUR CONNECTION STRING--"
    }
  }
}
Configure Startup Class
public class Startup
{
    public IConfiguration Configuration { get; }

    public Startup(IConfiguration configuration)
    {
        Configuration = configuration;
    }

    public void ConfigureServices(IServiceCollection services)
    {
        // 1: Use default configuration
        services.AddHealthChecks()
            .AddAzureQueueStorage(Configuration["Data:ConnectionStrings:AzureQueueStorage"]);

        // OR
        // 2: With all optional configuration
        services.AddHealthChecks()
            .AddAzureQueueStorage(
                connectionString: Configuration["Data:ConnectionStrings:AzureQueueStorage"],
                name: "azure-queue-storage",
                failureStatus: HealthStatus.Degraded,
                tags: new string[] { "azure", "storage", "queue", "azure-queue-storage" });
    }

    public void Configure(IApplicationBuilder app, IHostingEnvironment env)
    {
        app.UseHealthChecks("/health");
    }
}

Sample Usage Example

Sample for other services.

For more helpful information about LiteX HealthChecks, Please click here.

Release Notes

AzureQueueStorage health check, which can be used to check the status of a Azure Queue storage service in the ASP.NET Core application.
     Update SDK to its latest version.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 1,172 4/9/2019
1.0.0 1,208 1/24/2019