Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FRACerqueira committed Jan 22, 2022
1 parent c580258 commit ddd1664
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
55 changes: 50 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
# **Welcome to RingBufferPlus**
# <img align="left" width="100" height="100" src="./docs/images/icon.png"># **Welcome to RingBufferPlus**
[![Build](https://github.com/FRACerqueira/RingBufferPlus/workflows/Build/badge.svg)](https://github.com/FRACerqueira/RingBufferPlus/actions/workflows/build.yml)
[![Publish](https://github.com/FRACerqueira/RingBufferPlus/actions/workflows/publish.yml/badge.svg)](https://github.com/FRACerqueira/RingBufferPlus/actions/workflows/publish.yml)
[![Downloads](https://img.shields.io/nuget/dt/RingBufferPlus)](https://www.nuget.org/packages/RingBufferPlus/)
[![NuGet](https://img.shields.io/nuget/v/RingBufferPlus)](https://www.nuget.org/packages/RingBufferPlus/)
[![License](https://img.shields.io/github/license/FRACerqueira/RingBufferPlus)](https://github.com/FRACerqueira/RingBufferPlus/blob/master/LICENSE)

A generic circular buffer (ring buffer) in C# with Auto-Scaler, Health-Check and Report-Metrics.
RingBufferPlus was developed in c# with the **netstandard2.1, .NET 5 AND .NET6 ** target frameworks.

## **Official pages** :
RingBufferPlus was developed in c# with the **netstandard2.1, .NET 5 AND .NET6** target frameworks.

[**Usage**](#usage) | [**Install**](#install) | [**Api**](#apis) | [**Supported Platforms**](#supported-platforms)


#### **[Visit the RingBufferPlus official page for complete documentation](https://fracerqueira.github.io/RingBufferPlus)**

## Examples
The project in the folder **RingBufferPlusRabbit** contains the samples with RabbitMQ(publish).

```
dotnet run --project RingBufferPlusRabbit
```

## Usage

## **RingBufferPlus - Sample Minimum Usage**
[**Top**](#-welcome-to-ringbufferplus)

```csharp
public class MyClass
Expand Down Expand Up @@ -36,6 +53,7 @@ rb.Dispose();
```

## **RingBufferPlus - Sample Complex Usage**
[**Top**](#-welcome-to-ringbufferplus)

```csharp
public class MyClass : IDisposable
Expand Down Expand Up @@ -82,8 +100,8 @@ var build_rb = RingBuffer<MyClass>
.ReportMetrics((metric,ctk) => Console.WriteLine(metric.ErrorCount))
.AutoScaler((RingBufferMetric, CancellationToken) =>
{
return 5;
})
return 5;
})
.Build();

build_rb.AutoScaleCallback += Ring_AutoScaleCallback;
Expand Down Expand Up @@ -116,6 +134,33 @@ private void Ring_AutoScaleCallback(object sender, RingBufferAutoScaleEventArgs

```

## Install
[**Top**](#-welcome-to-ringbufferplus)

RingBufferPlus was developed in c# with the **netstandard2.1, .NET 5 AND .NET6** target frameworks.

```
Install-Package RingBufferPlus [-pre]
```

```
dotnet add package RingBufferPlus [--prerelease]
```

**_Note: [-pre]/[--prerelease] usage for pre-release versions_**

## Apis
[**Top**](#-welcome-to-ringbufferplus)

| Api | Details |
| --- | --- |

## Supported platforms
[**Top**](#-welcome-to-ringbufferplus)

- Windows
- Linux (Ubuntu, etc)

## **License**

This project is licensed under the [MIT License](https://github.com/FRACerqueira/RingBufferPlus/blob/master/LICENSE)
Expand Down
Binary file added docs/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ddd1664

Please sign in to comment.