Aiursoft.AiurObserver.Abstractions 7.0.0

AiurObserver

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.AiurObserver) ManHours

AiurObserver is an async tool to help you broadcast messages to multiple subscribers.

Call Subscribe() to subscribe to an observable. Call BroadcastAsync() to broadcast a message to all subscribers. That's it!

structure

How to install

dotnet add package Aiursoft.AiurObserver

How to use

It's very simple. You can create a class extends AsyncObservable and then you can subscribe to it and broadcast messages to it.

T is the type of the message you want to broadcast.

If you no longer need to subscribe to the observable, you can call UnRegister method to unsubscribe.

Full example:

var totalMessages = 0;
var asyncObservable = new AsyncObservable<int>();
var subscription = asyncObservable.Subscribe(_ =>
{
    totalMessages++;
    return Task.CompletedTask;
});
for (var i = 0; i < 10; i++)
{
    await asyncObservable.BroadcastAsync(2333);
}

Console.WriteLine(totalMessages); // 10
subscription.UnRegister(); // No longer receive messages.

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Showing the top 20 packages that depend on Aiursoft.AiurObserver.Abstractions.

Packages
Aiursoft.AiurObserver
AiurObserver is an async event driven framework.

.NET 7.0

  • No dependencies.

Version Last updated
10.0.0 11/15/2025
9.0.0 3/12/2025
8.0.13 3/19/2025
8.0.12 3/19/2025
8.0.11 3/19/2025
8.0.10 3/19/2025
8.0.9 4/15/2025
8.0.8 3/19/2025
8.0.3 4/10/2025
8.0.2 3/19/2025
8.0.1 5/5/2025
8.0.0 4/7/2025
7.0.26 5/5/2025
7.0.25 3/30/2025
7.0.23 4/5/2025
7.0.21 6/15/2025
7.0.19 5/7/2025
7.0.18 3/14/2025
7.0.12 3/12/2025
7.0.11 4/22/2025
7.0.10 6/15/2025
7.0.9 4/6/2025
7.0.0 4/19/2025