Agent skill
dotnet-pubsub-lite
Pub-Sub 핵심 패턴 (Channels)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/dotnet-pubsub-lite
SKILL.md
Pub-Sub 핵심
1. Channel 기본
using System.Threading.Channels;
var channel = Channel.CreateUnbounded<Message>();
// Producer
await channel.Writer.WriteAsync(message);
// Consumer
await foreach (var msg in channel.Reader.ReadAllAsync(ct))
{
await HandleMessage(msg);
}
// 완료 신호
channel.Writer.Complete();
2. Bounded Channel
// 배압 제어
var channel = Channel.CreateBounded<Message>(new BoundedChannelOptions(100)
{
FullMode = BoundedChannelFullMode.Wait
});
3. DI 등록
services.AddSingleton(Channel.CreateUnbounded<Message>());
services.AddSingleton(sp => sp.GetRequiredService<Channel<Message>>().Reader);
services.AddSingleton(sp => sp.GetRequiredService<Channel<Message>>().Writer);
4. Channels vs Rx.NET
| 특성 | Channels | Rx.NET |
|---|---|---|
| 용도 | Producer-Consumer | 이벤트 스트림 |
| 배압 | 내장 | 별도 구현 |
| 의존성 | BCL | NuGet |
상세 내용:
/dotnet-pubsubskill 참조
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?