C# examples: add a multi-tenant producer and consumer

Aperta
#4,698 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@huong8373tt-beep ci sta già lavorando.

Dal 2/11/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, rust

Direzione di ricerca

Copy the layout of the MessageEnvelope producer and consumer under examples/csharp/src, and read examples/rust/src/multi-tenant/ for the intended flow. Check how IIggyUsers.CreateUserAsync and the Permissions and StreamPermissions types in foreign/csharp/Iggy_SDK/Contracts/ restrict a user to one stream. Done means dotnet build of examples/csharp/Iggy_SDK.Examples.sln succeeds with both new projects, and both run against a fresh server, with the producer showing a cross-tenant send is refused.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

csharp good first issue
Description

The C# examples have Basic, GettingStarted, MessageEnvelope, MessageHeaders, NewSdk and TcpTls, but no multi-tenant example. Rust, Java and Node have one: each tenant gets its own stream and its own user, limited to that stream, and the example shows that a tenant cannot reach another tenant's stream.

Affected area / component

C# examples

Proposed solution

Add examples/csharp/src/MultiTenant/Iggy_SDK.Examples.MultiTenant.Producer/ and .../Iggy_SDK.Examples.MultiTenant.Consumer/, add both to examples/csharp/Iggy_SDK.Examples.sln, and add a README section in examples/csharp/README.md.

  • Copy the project layout (.csproj, Program.cs, Utils.cs) from the MessageEnvelope pair, and use the helpers in examples/csharp/src/Iggy_SDK.Examples.Shared.
  • The SDK has CreateUserAsync(userName, password, status, permissions) in IIggyUsers, and the Permissions and StreamPermissions types in foreign/csharp/Iggy_SDK/Contracts/.
  • Follow the flow of examples/rust/src/multi-tenant/: the producer creates N tenants (default 3) with a stream and a restricted user each, sends as each tenant and prints that another tenant's stream is refused. The consumer reads a tenant's stream as that tenant.

How to test: dotnet build examples/csharp/Iggy_SDK.Examples.sln builds both projects. Start a fresh server and run both with the dotnet run --project lines added to the README.

Good first issue
  • I think this could be a good first issue for a new contributor
Lingua principale
Rust
Stelle
5.2k
Fork
502
Merge medio
3g 8h
PR unite (30g)
146

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/iggy

Tutte le issue di apache/iggy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.